Modify

Opened 18 months ago

Closed 18 months ago

Last modified 18 months ago

#7227 closed defect (duplicate)

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

Reported by: glebius@… Owned by: team
Priority: normal 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 Changed 18 months ago by anonymous

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 Changed 18 months ago by stoecker

  • Resolution set to duplicate
  • Status changed from new to closed

comment:3 Changed 18 months ago by stoecker

Closed as duplicate of #7210.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.