[Talk-ca] Canvec.osm samples
Daniel Bégin
jfd553 at hotmail.com
Fri Apr 30 18:04:11 BST 2010
Hi Adam,
I looked at Canvec.osm sample files about one month ago and did not get any
problems with an earlier version of JOSM (before 3196). I've just tried
using JOSM 3196 and I got the same error message. I'm running on Windows.
No good explanation to give :-(
Daniel
-----Original Message-----
From: Adam Dunn [mailto:dunnadam at gmail.com]
Sent: April 29, 2010 12:46
To: Sam Vekemans
Cc: Daniel Bégin; Talk-CA OpenStreetMap
Subject: Re: [Talk-ca] Canvec.osm samples
I'm getting NullPointerException in JOSM for all three files, and making
sure the line feeds are unix (since I'm on linux) doesn't help. This is with
JOSM 3208.
Open file: /home/adam/Desktop/021L14_sample.osm (2796211 bytes)
org.openstreetmap.josm.io.IllegalDataException:
java.lang.NullPointerException
at org.openstreetmap.josm.io.OsmReader.parseDataSet(OsmReader.java:586)
at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:42)
at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:34)
at
org.openstreetmap.josm.io.FileImporter.importDataHandleExceptions(FileImport
er.java:57)
at
org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFi
leAction.java:263)
at
org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileA
ction.java:242)
at
org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.j
ava:83)
at
org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:12
9)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
...... more stack that goes into java api libraries
Caused by: java.lang.NullPointerException
at
org.openstreetmap.josm.data.osm.Storage$1.getHashCode(Storage.java:317)
at org.openstreetmap.josm.data.osm.Storage.getBucket(Storage.java:246)
at org.openstreetmap.josm.data.osm.Storage.get(Storage.java:196)
at org.openstreetmap.josm.io.OsmReader$Parser.intern(OsmReader.java:126)
at
org.openstreetmap.josm.io.OsmReader$Parser.startElement(OsmReader.java:273)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Ab
stractSAXParser.java:501)
.... goes further into xerces
I don't know if the stacktrace helps, or if anyone else is having problems
with these files. Other .osm files open up fine on my system. I could submit
this as a bug report to Josm with the sample file, but wanted to check if
anyone else is having problems as well.
Adam
On Thu, Apr 1, 2010 at 11:05 PM, Sam Vekemans <acrosscanadatrails at gmail.com>
wrote:
Thanks,
But its oodles of people who help with the process.
Speaking of which, i'll have the complete Ibycus 3.0 Garmin
MapSource
IMG files available for download as single (grouped) .zip files
available soon.
It will still be at least a year before we get our map to that
level.
Sam
<snip>
For those who are interesting to have a look at sample datasets, you
can download them from
OSM wiki http://wiki.openstreetmap.org/wiki/CanVec#Sample_Datasets
<http://wiki.openstreetmap.org/wiki/CanVec#Sample_Datasets>
NRCan ftp://ftp2.cits.rncan.gc.ca/osm/pub
Have fun (I hope!-)
Daniel
_______________________________________________
Talk-ca mailing list
Talk-ca at openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca
More information about the Talk-ca
mailing list