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