java.lang.IllegalArgumentException: InputStream cannot be null

1,506 views
Skip to first unread message

Nelson A. de Oliveira

unread,
Dec 26, 2012, 5:02:18 AM12/26/12
to osm...@googlegroups.com
Trying to update a map (from
http://download.geofabrik.de/openstreetmap/south-america/brazil.osm.pbf)
I am seeing this:

java.lang.IllegalArgumentException: InputStream cannot be null
at javax.xml.parsers.SAXParser.parse(SAXParser.java:191)
at net.osmand.osm.MapRenderingTypes.init(MapRenderingTypes.java:269)
at net.osmand.osm.MapRenderingTypes.getEncodingRuleTypes(MapRenderingTypes.java:84)
at net.osmand.osm.MapRenderingTypes.encodeEntityWithType(MapRenderingTypes.java:141)
at net.osmand.data.preparation.IndexVectorMapCreator.indexMultiPolygon(IndexVectorMapCreator.java:150)
at net.osmand.data.preparation.IndexVectorMapCreator.indexMapRelationsAndMultiPolygons(IndexVectorMapCreator.java:91)
at net.osmand.data.preparation.IndexCreator$5.iterateEntity(IndexCreator.java:545)
at net.osmand.data.preparation.OsmDbAccessor.iterateOverEntities(OsmDbAccessor.java:236)
at net.osmand.data.preparation.IndexCreator.generateIndexes(IndexCreator.java:537)
at net.osmand.swing.OsmExtractionUI$12.run(OsmExtractionUI.java:515)
at net.osmand.swing.ProgressDialog$WorkerThread.run(ProgressDialog.java:87)
java.sql.SQLException: ResultSet closed
at org.sqlite.RS.checkOpen(RS.java:63)
at org.sqlite.RS.markCol(RS.java:77)
at org.sqlite.RS.getLong(RS.java:297)


What could be the problem?
OsmAndMapCreator is latest (from 25 Dec 2012)

Victor Shcherb

unread,
Dec 27, 2012, 6:56:14 AM12/27/12
to osmand
This is an OsmAndMapCreator bug. Workaround is specifying rendering_types.xml manually in the settings.

Victor

2012/12/26 Nelson A. de Oliveira <nao...@gmail.com>
MapRenderingTypes

Victor Shcherb

unread,
Dec 28, 2012, 10:12:45 AM12/28/12
to osmand
Hope now it is fixed.


2012/12/27 Victor Shcherb <victor....@gmail.com>
Reply all
Reply to author
Forward
0 new messages