[OSM-dev] java.lang.NumberFormatException: null error with osmosis 0.30.3

Maarten Deen mdeen at xs4all.nl
Wed Apr 29 17:54:10 BST 2009


Karl Newman wrote:
> On Wed, Apr 29, 2009 at 6:32 AM, Maarten Deen <mdeen at xs4all.nl 
> <mailto:mdeen at xs4all.nl>> wrote:

>     Sample file that I try to import is this:
> 
>     <?xml version='1.0' standalone='no'?>
>     <osm version='0.6' generator='xapi: OSM Extended API 2.0'
>     mlns:xapi='http://www.informationfreeway.org/xapi/0.6'
>     xapi:uri='/api/0.6/node[amenity=atm][bbox=3.4,50.7,7.2,53.6]'
>     api:planetDate='200904241825' xapi:copyright='2009 OpenStreetMap
>     contributors'
>     xapi:instance='zappyHyper'>
>       <node id='30839681' lat='52.6035219' lon='4.687596' user='Maarten
>     Deen'xapi:users='florisje,Maarten Deen'
>     timestamp='2009-03-01T11:48:12Z'>
>         <tag k='addr:city' v='Heiloo'/>
>         <tag k='addr:country' v='NL'/>
>         <tag k='addr:housenumber' v='10-12'/>
>         <tag k='addr:postcode' v='1852KX'/>
>         <tag k='addr:street' v='Het Hoekstuk'/>
>         <tag k='amenity' v='atm'/>
>         <tag k='name' v='ABN AMRO'/>
>       </node>
>     </osm>
> 
>     Any idea what is going wrong here? The same error pops up with 0.30.
> 
> Looks like your node element is missing the required (for 0.6 files) 
> "version" attribute.

Ok. I downloaded the node from the api and I see the difference. I got this from 
one of the xapi servers. Guess they're not yet fully 0.6 compliant then.
Or is there a way of getting osmosis to disregard the fact that there is no 
version attribute?

Regards,
Maarten





More information about the dev mailing list