Got a response on the error here [<a href="http://josm.openstreetmap.de/ticket/4971">http://josm.openstreetmap.de/ticket/4971</a>]. Turns out there is a malformed tag, that doesn't have key or value in it (a null tag)<br>
Here's line 16220 (the offending tag):<br><tag/><br>To compare, here's line 16221 (a properly formed tag):<br><tag k="waterway" v="stream"/><br><br>The josm developer has put in a better error message regarding what the problem is, but josm still will not load the file.<br>
<br>So does this come down to there being a bad tag in the original Canvec data, or does the conversion script need some modifying?<br><br>Adam<br><br><div class="gmail_quote">On Fri, Apr 30, 2010 at 7:02 PM, Sam Vekemans <span dir="ltr"><<a href="mailto:acrosscanadatrails@gmail.com">acrosscanadatrails@gmail.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;">Ideas:<br>
-mention this on the irc #osm-dev chat. As a JOSM develepor might be<br>
able to help further<br>
-zipping : try .bz2 compression, instead of regular zip, maybe it does<br>
something different to the .osm data?<br>
-at that same time (with that new josm revision, WMS didnt work for some people)<br>
-josm doesnt automatically update all the plugins, when you get a new<br>
version of the main exe file,<br>
-Osmosis is the tool to combine .osm files, i havent yet been<br>
sucessful at merging them (on the command line)<br>
-each node would need a new ID, when merging files, maybe there is a<br>
max # of features?<br>
-Also, i'll check with user:MikeyCarter as he has gone ahead and<br>
converted canvec for the Barrie Ontario area, using a customized<br>
method.<br>
<br>
Cheers,<br>
<font color="#888888">Sam<br>
</font><div><div></div><div class="h5"><br>
On 4/30/10, Adam Dunn <<a href="mailto:dunnadam@gmail.com">dunnadam@gmail.com</a>> wrote:<br>
> If I understand correctly, older versions of JOSM would open the file<br>
> 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,<br>
> did some debugging, and see that for 082H04_Sample.osm, the error occurs on<br>
> or near line 16217. It may not be Josm that is at fault, since it seems to<br>
> handle most other osm files quite well.<br>
><br>
> Please see <a href="http://josm.openstreetmap.de/ticket/4971" target="_blank">http://josm.openstreetmap.de/ticket/4971</a> for the bug that I just<br>
> filed.<br>
><br>
> Adam<br>
><br>
> On Fri, Apr 30, 2010 at 10:04 AM, Daniel Bégin <<a href="mailto:jfd553@hotmail.com">jfd553@hotmail.com</a>> wrote:<br>
><br>
>> Hi Adam,<br>
>><br>
>> I looked at Canvec.osm sample files about one month ago and did not get<br>
>> 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>
>><br>
>> Daniel<br>
>><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>
>> 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<br>
>> 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<br>
>> org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:42)<br>
>> at<br>
>> org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:34)<br>
>> at<br>
>><br>
>> org.openstreetmap.josm.io.FileImporter.importDataHandleExceptions(FileImport<br>
>> er.java:57)<br>
>> at<br>
>><br>
>> org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFi<br>
>> leAction.java:263)<br>
>> at<br>
>><br>
>> org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileA<br>
>> ction.java:242)<br>
>> at<br>
>><br>
>> org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.j<br>
>> ava:83)<br>
>> at<br>
>><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<br>
>> 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>
>><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<br>
>> 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 <<br>
>> <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,<br>
>> 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>
>><br>
><br>
<br>
<br>
</div></div><div><div></div><div class="h5">--<br>
Twitter: @Acrosscanada<br>
Blogs: <a href="http://acrosscanadatrails.posterous.com/" target="_blank">http://acrosscanadatrails.posterous.com/</a><br>
<a href="http://Acrosscanadatrails.blogspot.com" target="_blank">http://Acrosscanadatrails.blogspot.com</a><br>
Facebook: <a href="http://www.facebook.com/sam.vekemans" target="_blank">http://www.facebook.com/sam.vekemans</a><br>
Skype: samvekemans<br>
OpenStreetMap IRC: <a href="http://irc.openstreetmap.org" target="_blank">http://irc.openstreetmap.org</a><br>
@Acrosscanadatrails<br>
</div></div></blockquote></div><br>