Task #11813 (closed)
Bug: abnormal term. on search
Reported by: | jamoore | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | 5.0.0-rc1 |
Component: | Insight | Version: | 5.0.0-beta2-RC3 |
Keywords: | n.a. | Cc: | fs@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
On ubuntu:
- Click on search panel in insight
- search for foo
- Abnormal Termination as below
java.lang.Exception: Abnormal termination due to an uncaught exception. java.lang.NullPointerException at org.openmicroscopy.shoola.util.ui.search.SearchPanel.getGroups(SearchPanel.java:309) at org.openmicroscopy.shoola.util.ui.search.SearchPanel.getSelectedGroups(SearchPanel.java:1442) at org.openmicroscopy.shoola.util.ui.search.SearchComponent.search(SearchComponent.java:456) at org.openmicroscopy.shoola.util.ui.search.SearchPanel$1.keyPressed(SearchPanel.java:368) at java.awt.Component.processKeyEvent(Component.java:6463) at javax.swing.JComponent.processKeyEvent(JComponent.java:2820) at java.awt.Component.processEvent(Component.java:6282) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1895) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:762) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1027) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:899) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:727) at java.awt.Component.dispatchEventImpl(Component.java:4731) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:708) at java.awt.EventQueue$4.run(EventQueue.java:706) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:705) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) Abnormal termination due to an uncaught exception. java.lang.NullPointerException at org.openmicroscopy.shoola.util.ui.search.SearchPanel.getGroups(SearchPanel.java:309) at org.openmicroscopy.shoola.util.ui.search.SearchPanel.getSelectedGroups(SearchPanel.java:1442) at org.openmicroscopy.shoola.util.ui.search.SearchComponent.search(SearchComponent.java:456) at org.openmicroscopy.shoola.util.ui.search.SearchPanel$1.keyPressed(SearchPanel.java:368) at java.awt.Component.processKeyEvent(Component.java:6463) at javax.swing.JComponent.processKeyEvent(JComponent.java:2820) at java.awt.Component.processEvent(Component.java:6282) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1895) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:762) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1027) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:899) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:727) at java.awt.Component.dispatchEventImpl(Component.java:4731) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:708) at java.awt.EventQueue$4.run(EventQueue.java:706) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:705) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) Exception in thread "AWT-EventQueue-0" at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.showErrorDialog(UserNotifierImpl.java:191) at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.notifyError(UserNotifierImpl.java:291) at org.openmicroscopy.shoola.env.AbnormalExitHandler.doTermination(AbnormalExitHandler.java:147) at org.openmicroscopy.shoola.env.AbnormalExitHandler.terminate(AbnormalExitHandler.java:85) at org.openmicroscopy.shoola.env.RootThreadGroup.uncaughtException(RootThreadGroup.java:69) at java.awt.EventDispatchThread.processException(EventDispatchThread.java:264) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:256) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Change History (11)
comment:1 Changed 10 years ago by cblackburn
comment:2 Changed 10 years ago by jburel
- Resolution set to fixed
- Status changed from new to closed
comment:3 Changed 10 years ago by jburel
- Resolution fixed deleted
- Status changed from closed to reopened
I close the wrong ticket
comment:4 Changed 10 years ago by jburel
The "default" group on nightshade is a "System" group. This is the reason of the crash
The Roles value will have to set.
comment:5 Changed 10 years ago by jburel
comment:6 Changed 10 years ago by jburel
- Cc fs@… added
- Owner jburel deleted
- Status changed from reopened to accepted
Roles will probably have to be correctly set. Added safety net in insight
comment:7 Changed 10 years ago by jamoore
Have a DBUserCheck for startup that uses SqlAction to read the values from the DB:
2013-12-12 15:57:51,182 INFO [ ome.services.util.DBPatchCheck] ( main) Verified database patch: OMERO5.0__0 2013-12-12 15:57:51,243 INFO [ ome.services.util.DBUserCheck] ( main) User root.id = 0 2013-12-12 15:57:51,243 INFO [ ome.services.util.DBUserCheck] ( main) User guest.id = 1 2013-12-12 15:57:51,243 INFO [ ome.services.util.DBUserCheck] ( main) Group system.id = 0 2013-12-12 15:57:51,243 INFO [ ome.services.util.DBUserCheck] ( main) Group user.id = 1 2013-12-12 15:57:51,243 INFO [ ome.services.util.DBUserCheck] ( main) Group guest.id = 2
comment:8 Changed 10 years ago by jamoore
comment:9 Changed 10 years ago by jburel
- Resolution set to fixed
- Status changed from accepted to closed
comment:10 Changed 10 years ago by jmoore <josh@…>
(In [8f53109a468ec4568220cdbaaa60d03dd0832c39/ome.git] on branch develop) Add DBUserCheck to create a Roles object from the DB (See #11813)
By default the strings "user", "guest", "root", and "system" are
used to look up the IDs. By setting omero.roles.user.guest etc.
in config.xml, other strings can be used, but this is NOT suggested.
comment:11 Changed 10 years ago by Josh Moore <josh@…>
(In [a25a9bca5eb5942ea4bd8f0d0c9eed1603c52f27/ome.git] on branch develop) Merge pull request #1894 from joshmoore/11813-Roles
Add DBUserCheck to create a Roles object from the DB (See #11813)
I reproduced this as I was doing my testing.