Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #7307 (closed)

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

Bug: Clicking to open tag pane caused crash

Reported by: cblackburn Owned by: jburel
Priority: minor Milestone: OMERO-4.4
Component: Insight Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-12-13 (4)

Description (last modified by cblackburn)

Using the 4.3.3 Mac download of Insight on a local 4.3.3 server I got the following exception when clicking to open the Tag pane. The use had no tags.

Attachments (1)

7307-before.tiff (215.4 KB) - added by jburel 12 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 12 years ago by cblackburn

java.lang.Exception: java.lang.ClassCastException: org.openmicroscopy.shoola.agents.util.browser.TreeFileSet cannot be cast to pojos.TagAnnotationData
	at org.openmicroscopy.shoola.env.data.views.calls.DMRefreshLoader$5.doCall(DMRefreshLoader.java:385)
	at org.openmicroscopy.shoola.env.data.views.BatchCall.doStep(BatchCall.java:144)
	at org.openmicroscopy.shoola.util.concur.tasks.CompositeTask.doStep(CompositeTask.java:226)
	at org.openmicroscopy.shoola.env.data.views.CompositeBatchCall.doStep(CompositeBatchCall.java:126)
	at org.openmicroscopy.shoola.util.concur.tasks.ExecCommand.exec(ExecCommand.java:165)
	at org.openmicroscopy.shoola.util.concur.tasks.ExecCommand.run(ExecCommand.java:274)
	at org.openmicroscopy.shoola.util.concur.tasks.AsyncProcessor$Runner.run(AsyncProcessor.java:91)
	at java.lang.Thread.run(Thread.java:680)

	at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.showErrorDialog(UserNotifierImpl.java:183)
	at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.notifyError(UserNotifierImpl.java:272)
	at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.notifyError(UserNotifierImpl.java:242)
	at org.openmicroscopy.shoola.agents.treeviewer.DataBrowserLoader.handleException(DataBrowserLoader.java:141)
	at org.openmicroscopy.shoola.env.data.events.DSCallAdapter.eventFired(DSCallAdapter.java:84)
	at org.openmicroscopy.shoola.env.data.views.BatchCallMonitor$1.run(BatchCallMonitor.java:124)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
	at java.awt.EventQueue.access$000(EventQueue.java:85)
	at java.awt.EventQueue$1.run(EventQueue.java:638)
	at java.awt.EventQueue$1.run(EventQueue.java:636)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

comment:2 Changed 12 years ago by cblackburn

  • Description modified (diff)

comment:3 Changed 12 years ago by cblackburn

This seems to happen when the empty tree in the Tage pane is fully expanded. Then go to another pane. Clicking on the Tag pane will then cause the exception.

If the tree in Tage pane is collapsed down the same actions do not cause an exception.

comment:4 Changed 12 years ago by cblackburn

Sorry, I was using 4.3.2 client above. The bug is even worse with 4.3.3 client as Insight crashes (Checked on gretzky and local server.) Exception below,

java.lang.Exception: Abnormal termination due to an uncaught exception.
java.lang.ClassCastException: javax.swing.tree.DefaultMutableTreeNode cannot be cast to org.openmicroscopy.shoola.agents.util.browser.TreeImageSet
	at org.openmicroscopy.shoola.agents.treeviewer.browser.BrowserUI.setCountValues(BrowserUI.java:1636)
	at org.openmicroscopy.shoola.agents.treeviewer.browser.BrowserComponent.setExperimenterCount(BrowserComponent.java:1431)
	at org.openmicroscopy.shoola.agents.treeviewer.ExperimenterImagesCounter.update(ExperimenterImagesCounter.java:167)
	at org.openmicroscopy.shoola.env.data.events.DSCallAdapter.eventFired(DSCallAdapter.java:75)
	at org.openmicroscopy.shoola.env.data.views.BatchCallMonitor$1.run(BatchCallMonitor.java:124)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
	at java.awt.EventQueue.access$000(EventQueue.java:85)
	at java.awt.EventQueue$1.run(EventQueue.java:638)
	at java.awt.EventQueue$1.run(EventQueue.java:636)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Abnormal termination due to an uncaught exception.
java.lang.ClassCastException: javax.swing.tree.DefaultMutableTreeNode cannot be cast to org.openmicroscopy.shoola.agents.util.browser.TreeImageSet
	at org.openmicroscopy.shoola.agents.treeviewer.browser.BrowserUI.setCountValues(BrowserUI.java:1636)
	at org.openmicroscopy.shoola.agents.treeviewer.browser.BrowserComponent.setExperimenterCount(BrowserComponent.java:1431)
	at org.openmicroscopy.shoola.agents.treeviewer.ExperimenterImagesCounter.update(ExperimenterImagesCounter.java:167)
	at org.openmicroscopy.shoola.env.data.events.DSCallAdapter.eventFired(DSCallAdapter.java:75)
	at org.openmicroscopy.shoola.env.data.views.BatchCallMonitor$1.run(BatchCallMonitor.java:124)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
	at java.awt.EventQueue.access$000(EventQueue.java:85)
	at java.awt.EventQueue$1.run(EventQueue.java:638)
	at java.awt.EventQueue$1.run(EventQueue.java:636)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception in thread "AWT-EventQueue-0"

	at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.showErrorDialog(UserNotifierImpl.java:182)
	at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.notifyError(UserNotifierImpl.java:271)
	at org.openmicroscopy.shoola.env.AbnormalExitHandler.doTermination(AbnormalExitHandler.java:138)
	at org.openmicroscopy.shoola.env.AbnormalExitHandler.terminate(AbnormalExitHandler.java:83)
	at org.openmicroscopy.shoola.env.AWTExceptionHanlder.handle(AWTExceptionHanlder.java:99)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at java.awt.EventDispatchThread.handleException(EventDispatchThread.java:412)
	at java.awt.EventDispatchThread.processException(EventDispatchThread.java:318)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:312)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

comment:5 Changed 12 years ago by cblackburn

Once I have added a Tag this problem does not seem to occur.

comment:6 Changed 12 years ago by jburel

  • Milestone changed from Unscheduled to OMERO-Beta4.4
  • Sprint set to 2011-12-13 (4)
  • Summary changed from Clicking to open tag pane caused crash to Bug: Clicking to open tag pane caused crash

comment:7 Changed 12 years ago by jburel

  • Remaining Time set to 0.15
  • Status changed from new to accepted

comment:8 Changed 12 years ago by jburel

To test:

  • user w/o tags.
  • Go to the Tag pane
  • Expand the folder "tags used not owned
  • Go to another tab e.g. attachments
  • Go back to the Tag pane.

Changed 12 years ago by jburel

comment:9 Changed 12 years ago by jburel

  • Remaining Time changed from 0.15 to 0
  • Status changed from accepted to closed

comment:10 Changed 12 years ago by saloynton

This does work as expected JM I just wanted to check the 7307-before.tiff and it was not there can you see it on your machine?

comment:11 Changed 12 years ago by jburel

The screenshot was there to show how to reproduce the bug, If no crash then no need for an after screenshot.

comment:12 Changed 12 years ago by Jean-marie Burel <j.burel@…>

  • Resolution set to fixed

(In [fcfa370340cdfad66f7817c6217524d26d393cbd/ome.git]) Fix Exception when no tags (close #7307)

An exception is thrown when the user has no tags and
the tree is refreshed.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.69551 sec.)

We're Hiring!