Project

General

Profile

bug #9166

ClassCastException when editing media in taxon bulkeditor

Added by Katja Luther 7 days ago. Updated 7 days ago.

Status:
Resolved
Priority:
New
Category:
taxeditor
Target version:
Start date:
07/29/2020
Due date:
% Done:

50%

Severity:
blocker
Found in Version:

Description

while editing media of a taxon in bulkeditor the following exception appears:

last remote method : http://localhost:52913/remoting/common.service
last remote request client time : 2020-07-09T22:57:15.94
last remote request response header time : Thu, 9 Jul 2020 22:57:15 +0200
client error time : 2020-07-09T22:57:56.004
login : admin
editor version : 5.17.0.202007081029
server : localhost (localhost mgd.) / Cyprus production
schema version : 5.15.2.0.20200611
os : Windows Server 2012 R2 6.3 amd64
java : 1.8.0_121
java.lang.ClassCastException: eu.etaxonomy.cdm.model.media.Media cannot be cast to eu.etaxonomy.cdm.model.taxon.TaxonBase
                at eu.etaxonomy.taxeditor.bulkeditor.input.TaxonEditorInput.addSaveCandidate(TaxonEditorInput.java:1)
                at eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditorE4.changed(BulkEditorE4.java:264)
                at eu.etaxonomy.taxeditor.view.e4.AbstractCdmEditorPartE4.changed(AbstractCdmEditorPartE4.java:188)
                at eu.etaxonomy.taxeditor.editor.view.media.e4.MediaViewPartE4.changed(MediaViewPartE4.java:130)
                at eu.etaxonomy.taxeditor.view.e4.AbstractCdmEditorPartE4.changed(AbstractCdmEditorPartE4.java:188)
                at eu.etaxonomy.taxeditor.view.e4.AbstractCdmDataViewerE4.markViewPartDirty(AbstractCdmDataViewerE4.java:110)
                at eu.etaxonomy.taxeditor.view.e4.details.DetailsViewerE4.markViewPartDirty(DetailsViewerE4.java:222)
                at eu.etaxonomy.taxeditor.view.e4.AbstractCdmDataViewerE4$1.dirtyStateChanged(AbstractCdmDataViewerE4.java:80)
                at org.eclipse.ui.forms.AbstractFormPart.markDirty(AbstractFormPart.java:93)
                at eu.etaxonomy.taxeditor.view.detail.CdmSectionPart.propertyChange(CdmSectionPart.java:209)
                at eu.etaxonomy.taxeditor.ui.element.AbstractCdmFormElement.firePropertyChangeEvent(AbstractCdmFormElement.java:255)
                at eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement.modifyText(TextWithLabelElement.java:178)
                at eu.etaxonomy.taxeditor.ui.element.LanguageStringWithLabelElement.modifyText(LanguageStringWithLabelElement.java:93)
                at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:180)
                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
                at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1103)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
                at org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:3122)
                at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:4947)
                at org.eclipse.swt.widgets.Control.windowProc(Control.java:4802)
                at org.eclipse.swt.widgets.Display.windowProc(Display.java:5123)
                at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
                at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2446)
                at org.eclipse.swt.widgets.Text.callWindowProc(Text.java:262)
                at org.eclipse.swt.widgets.Control.windowProc(Control.java:4897)
                at org.eclipse.swt.widgets.Text.windowProc(Text.java:2704)
                at org.eclipse.swt.widgets.Display.windowProc(Display.java:5110)
                at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
                at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2552)
                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3822)
                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
                at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
                at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
                at eu.etaxonomy.taxeditor.Application.start(Application.java:20)
                at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
                at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
                at org.eclipse.equinox.launcher.Main.run(Main.java:1519)

Associated revisions

Revision adea4e3d (diff)
Added by Katja Luther 7 days ago

fix #9166: avoid class cast exception while editing media in taxon bulk editor

Revision 361694e2 (diff)
Added by Katja Luther 7 days ago

fix #9166: avoid class cast exception while editing namedescriptions in taxon bulk editor

History

#1 Updated by Katja Luther 7 days ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50

#2 Updated by Katja Luther 7 days ago

  • Assignee changed from Katja Luther to Andreas Müller
  • Severity changed from normal to blocker

This exception was thrown because the correct handling of the change event for media was missing, this is fixed now.

Please review.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)