Project

General

Profile

Actions

bug #6175

closed

Exception when deleting transient object

Added by Andreas Müller over 6 years ago. Updated over 6 years ago.

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

100%

Estimated time:
Severity:
normal
Found in Version:

Description

What I did

  • Open bulk editor (name or agent)
  • Run a search (with >0 results)
  • Create a new record
  • Immediately delete the record
  • => Transient object exception (unsaved transient instance)
java.lang.Throwable: Error thrown but no associated exception
Error thrown but no associated exception
  login : admin
  editor version : 4.4.0.201611012350
  server : 160.45.63.175 / edit-test
  schema version : 4.0.0.0.201604200000
  os : Windows 7 6.1 amd64
  java : 1.8.0_91
    at eu.etaxonomy.taxeditor.model.MessagingUtils.getDefaultThrowable(MessagingUtils.java:239)
    at eu.etaxonomy.taxeditor.model.MessagingUtils.errorDialog(MessagingUtils.java:323)
    at eu.etaxonomy.taxeditor.model.MessagingUtils.errorDialog(MessagingUtils.java:288)
    at eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler.execute(DeleteHandler.java:364)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
    at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
    at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
    at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
    at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829)
    at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815)
    at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:805)
    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.Display.runDeferredEvents(Display.java:4165)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
    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)

The exception does not seem to occur when not running the search before or with an empty search.


Related issues

Related to EDIT - bug #5692: Delete a person within the bulk editor deletes the person even if not savedClosedKatja Luther

Actions
Related to EDIT - bug #6174: LIE when deleting new nameClosedKatja Luther

Actions
Actions #1

Updated by Andreas Müller over 6 years ago

  • Related to bug #5692: Delete a person within the bulk editor deletes the person even if not saved added
Actions #2

Updated by Andreas Müller over 6 years ago

  • Related to bug #6174: LIE when deleting new name added
Actions #3

Updated by Andreas Müller over 6 years ago

  • Related to bug #6176: Creating a new Reference throws TOE (TransientObjectException) added
Actions #4

Updated by Katja Luther over 6 years ago

I think that this is not related to the getReletatedObjectsCount problem. This was easily fixed by checking if the entity was new or not. This issue could be related to the session problems we had with the bulk editor.

Actions #5

Updated by Katja Luther over 6 years ago

  • Status changed from New to Resolved
  • Assignee changed from Katja Luther to Andreas Müller
  • Target version changed from Unassigned CDM tickets to Release 4.4

This was related to the last change in the bulk editor that the objects which should be deleted are marked as deleted and the deletion itself takes place when the bulk editor is saved. Now I changed it the way that the annotation is only set when the entity is not new otherwise the entity is only removed from the model.

Actions #6

Updated by Katja Luther over 6 years ago

  • % Done changed from 0 to 50
Actions #7

Updated by Katja Luther over 6 years ago

Actions #8

Updated by Katja Luther over 6 years ago

Actions #9

Updated by Katja Luther over 6 years ago

  • Related to deleted (bug #6176: Creating a new Reference throws TOE (TransientObjectException))
Actions #10

Updated by Andreas Müller over 6 years ago

  • Status changed from Resolved to Closed
  • Target version deleted (Release 4.4)
  • % Done changed from 50 to 100

Seems to work now. Remove target version as this issue was only a temporary regression. Fixed in v4.4 snapshot

Actions

Also available in: Atom PDF