Bug #1418 (closed)
Opened 15 years ago
Closed 15 years ago
NPE in PreferencesContext on Windows when no /omero/prefs/ is defined
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | blocker | Cc: | cxallan |
Sprint: | n.a. | ||
Total Remaining Time: | n.a. |
Description
Under Linux and Mac, the /omero/prefs/ preferences node is created by the prefs.class during startup (bin/omero admin). On Windows, bin/omero admin creates the node as the current user, but "local user" actually runs the server and so finds no preferences node, which leads to a NPE when this.path is null.
Caused by: java.lang.NullPointerException at java.util.prefs.AbstractPreferences.node(Unknown Source) at ome.system.PreferenceContext.getProperty(PreferenceContext.java:93) at ome.system.PermissionsContext.<init>(PermissionsContext.java:30) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) ... 57 more
Change History (1)
comment:1 Changed 15 years ago by jmoore
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
r4661 should fix this issue. Long-term the better solution may be to have a better control over which user runs the server, since this is an issue we've run into over and over again.