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"

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

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.

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.67180 sec.)

We're Hiring!