Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342437 - Error during deleting last TC in TSE
Summary: Error during deleting last TC in TSE
Status: CLOSED FIXED
Alias: None
Product: Jubula
Classification: Technology
Component: UI (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows Server 2008
: P3 major (vote)
Target Milestone: Indigo M7   Edit
Assignee: Zeb Ford-Reitz CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-11 09:29 EDT by Oliver Goetz CLA
Modified: 2011-04-14 04:43 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Goetz CLA 2011-04-11 09:29:46 EDT
Precondition:

Empty TS. Open TSE.

Workflow:

* Add 2 different TC using DND
* Save TSE
* Delete 2nd TC

The following error occurs:

3004: Unexpected error occurred.
  java.lang.IllegalArgumentException: Entity must be managed to call remove: org.eclipse.jubula.client.core.model.ExecTestCasePO@8672ab7f (ub_grc_checkExistence), try merging the detached and try the remove again.
  	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.performRemove(UnitOfWorkImpl.java:3524)
  	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.remove(EntityManagerImpl.java:473)
  	at org.eclipse.jubula.client.ui.handlers.delete.DeleteTreeItemHandlerTCEditor.execute(DeleteTreeItemHandlerTCEditor.java:67)
  	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.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:820)
  	at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:806)
  	at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:796)
  	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:4066)
  	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
  	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
  	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
  	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
  	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
  	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
  	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  	at com.bredexsw.guidancer.app.Launcher.start(Unknown Source)
  	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:369)
  	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:619)
  	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
  	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
  	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Comment 1 Zeb Ford-Reitz CLA 2011-04-13 08:33:38 EDT
Precondition:

Empty TS. OpenTSE. Reusing unbound_modules_concrete.

Workflow:
 * Add 2 different TCs from unbound_modules_concrete.
 * Save TSE.
 * Expand Test Suite in Test Suite Browser.
 * Delete 1 of the Test Case References.
Comment 3 Oliver Goetz CLA 2011-04-14 04:43:28 EDT
Fix tested manually.