Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#7227 closed defect (duplicate)

josm 4765 fails on ~/.josm/preferences.xml

Reported by: glebius Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

New josm fails to read ~/.josm/preferences.xml created by itself, as well as fails on absent preferences.xml file.

glebius@xxx:~/.josm:|>rm preferences.xml*
glebius@xxx:~/.josm:|>LANG=C java -jar ~/osm/josm/core/dist/josm-custom.jar
Build-Date: 2012-01-06 22:27:37
Revision: 4765
Is-Local-Build: true

Warning: Missing preference file '/home/glebius/.josm/preferences.xml'. Creating a default preference file.
ERROR:
java.lang.NullPointerException

at com.sun.org.apache.xerces.internal.jaxp.validation.StAXValidatorHelper.validate(StAXValidatorHelper.java:95)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:114)
at javax.xml.validation.Validator.validate(Validator.java:127)
at org.openstreetmap.josm.data.Preferences.validateXML(Preferences.java:1436)
at org.openstreetmap.josm.data.Preferences.load(Preferences.java:580)
at org.openstreetmap.josm.data.Preferences.load(Preferences.java:542)
at org.openstreetmap.josm.data.Preferences.init(Preferences.java:678)
at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:192)

Attachments (0)

Change History (3)

comment:1 by anonymous, 13 years ago

With existing file the messagebox test is different ("file had errors"), but trace is the same:

glebius@xxx:~/.josm:|>LANG=C java -jar ~/osm/josm/core/dist/josm-custom.jar
Build-Date: 2012-01-06 22:27:37
Revision: 4765
Is-Local-Build: true

ERROR:
java.lang.NullPointerException

at com.sun.org.apache.xerces.internal.jaxp.validation.StAXValidatorHelper.validate(StAXValidatorHelper.java:95)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:114)
at javax.xml.validation.Validator.validate(Validator.java:127)
at org.openstreetmap.josm.data.Preferences.validateXML(Preferences.java:1436)
at org.openstreetmap.josm.data.Preferences.load(Preferences.java:580)
at org.openstreetmap.josm.data.Preferences.load(Preferences.java:542)
at org.openstreetmap.josm.data.Preferences.init(Preferences.java:678)
at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:192)

comment:2 by stoecker, 13 years ago

Resolution: duplicate
Status: newclosed

comment:3 by stoecker, 13 years ago

Closed as duplicate of #7210.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.