Project

General

Profile

Actions

bug #6163

open

can't add media to observation/specimen anymore

Added by Gabriele Dröge over 7 years ago. Updated 10 months ago.

Status:
New
Priority:
New
Assignee:
Category:
taxeditor
Target version:
Start date:
Due date:
% Done:

30%

Estimated time:
Severity:
normal
Found in Version:

Description

Use case: entering an observation with image

Problems: can't choose "Observation" when using the new Specimen Explorer

Workaround: used the bulk editor, worked so far

Problem: adding a media to a specimen/observation is still not working

Workaround: added this observation as a feature to my taxon

Problem: adding a media worked couple of months ago, but now this error appears. In addition couple of fields are missing to enter the media item (e.g. the image url)

login : g.droege
editor version : 4.3.0
server : api.cybertaxonomy.org / cybertaxonomy.org
schema version : 4.0.0.0.201604200000
os : Windows 7 6.1 amd64
java : 1.7.0_75
java.lang.NullPointerException
    at eu.etaxonomy.taxeditor.ui.section.media.MediaMetaElement.handleEvent(MediaMetaElement.java:123)
    at eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement.propertyChange(AbstractEntityCollectionElement.java:193)
    at eu.etaxonomy.taxeditor.ui.element.AbstractCdmFormElement.firePropertyChangeEvent(AbstractCdmFormElement.java:235)
    at eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement.modifyText(TextWithLabelElement.java:183)
    at eu.etaxonomy.taxeditor.ui.element.LanguageStringWithLabelElement.modifyText(LanguageStringWithLabelElement.java:94)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
    at org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:2610)
    at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:4669)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4531)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
    at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2425)
    at org.eclipse.swt.widgets.Text.callWindowProc(Text.java:255)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
    at org.eclipse.swt.widgets.Text.windowProc(Text.java:2254)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2531)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at eu.etaxonomy.taxeditor.Application.start(Application.java:24)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Actions #1

Updated by Katja Luther over 7 years ago

As a first step, I activated the possibility to add media to occurence data in the bulk editor.

Actions #2

Updated by Gabriele Dröge over 7 years ago

  • Tags set to corvidae
Actions #3

Updated by Andreas Müller over 1 year ago

  • Tags changed from corvidae to corvidae, media, fast
  • Target version changed from Unassigned CDM tickets to Release 5.49

Is this still an open issue?

Actions #4

Updated by Katja Luther 10 months ago

Andreas Müller wrote in #note-3:

Is this still an open issue?

"Use case: entering an observation with image

Problems: can't choose "Observation" when using the new Specimen Explorer"

Is still an open issue.

"Problem: adding a media to a specimen/observation is still not working

Workaround: added this observation as a feature to my taxon"

This is fixed in tree view.

Actions #5

Updated by Andreas Müller 10 months ago

  • Description updated (diff)
  • % Done changed from 0 to 30

What is about the stacktrace issue?

Actions #6

Updated by Andreas Müller 10 months ago

  • Description updated (diff)
Actions #7

Updated by Katja Luther 10 months ago

Andreas Müller wrote in #note-5:

What is about the stacktrace issue?

I can not reproduce this NPE when creating a new media element, either as MediaSpecimen nor as Media attached in media gallery.

Actions #8

Updated by Andreas Müller 10 months ago

  • Description updated (diff)
Actions

Also available in: Atom PDF