Modify ↓
Opened 9 years ago
Closed 9 years ago
#11788 closed defect (duplicate)
Can't directly open bzip2 file
Reported by: | naoliv | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | bz2 bzip2 | Cc: |
Description
Trying to open the attached file I see this:
INFO: Open file: /tmp/m/links.osm.bz2 (799152 bytes) ERROR: org.openstreetmap.josm.io.IllegalDataException: Illegal value for attribute 'version' on OSM primitive with ID 3522300102. Got c. (at line 44,136, column 175). 6,750,236 bytes have been read. Cause: org.openstreetmap.josm.io.OsmReader$OsmParsingException: Illegal value for attribute 'version' on OSM primitive with ID 3522300102. Got c. (at line 44,136, column 175). 6,750,236 bytes have been read. Cause: java.lang.NumberFormatException: For input string: "c" org.openstreetmap.josm.io.IllegalDataException: Illegal value for attribute 'version' on OSM primitive with ID 3522300102. Got c. (at line 44,136, column 175). 6,750,236 bytes have been read at org.openstreetmap.josm.io.OsmReader.doParseDataSet(OsmReader.java:624) at org.openstreetmap.josm.io.OsmReader.parseDataSet(OsmReader.java:656) at org.openstreetmap.josm.io.OsmImporter.parseDataSet(OsmImporter.java:137) at org.openstreetmap.josm.io.OsmImporter.loadLayer(OsmImporter.java:127) at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:98) at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:75) at org.openstreetmap.josm.io.FileImporter.importDataHandleExceptions(FileImporter.java:85) at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:333) at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:291) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:93) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:161) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.openstreetmap.josm.io.OsmReader$OsmParsingException: Illegal value for attribute 'version' on OSM primitive with ID 3522300102. Got c. (at line 44,136, column 175). 6,750,236 bytes have been read at org.openstreetmap.josm.io.OsmReader.throwException(OsmReader.java:88) at org.openstreetmap.josm.io.OsmReader.readCommon(OsmReader.java:459) at org.openstreetmap.josm.io.OsmReader.parseNode(OsmReader.java:206) at org.openstreetmap.josm.io.OsmReader.parseOsm(OsmReader.java:151) at org.openstreetmap.josm.io.OsmReader.parseRoot(OsmReader.java:113) at org.openstreetmap.josm.io.OsmReader.parse(OsmReader.java:99) at org.openstreetmap.josm.io.OsmReader.doParseDataSet(OsmReader.java:605) ... 15 more Caused by: java.lang.NumberFormatException: For input string: "c" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at org.openstreetmap.josm.io.OsmReader.readCommon(OsmReader.java:457) ... 20 more
If I bunzip JOSM properly opens it.
The file was originally created with pbzip
, then opened in JOSM, modified some data and saved (in JOSM too, directly as bz2).
The problem is happening now while trying to reopen it.
JOSM
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2015-08-18 01:32:15 Last Changed Author: simon04 Revision: 8670 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Relative URL: ^/trunk URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2015-08-17 19:13:17 +0200 (Mon, 17 Aug 2015) Last Changed Rev: 8670 Identification: JOSM/1.5 (8670 en) Linux Debian GNU/Linux testing (stretch) Memory Usage: 247 MB / 10206 MB (146 MB allocated, but free) Java version: 1.7.0_75, Oracle Corporation, OpenJDK 64-Bit Server VM Java package: openjdk-7-jre:amd64-7u75-2.5.4-2 VM arguments: [-Dawt.useSystemAAFontSettings=on, -Dsun.java2d.opengl=true] Plugins: - Create_grid_of_ways (31241) - OpeningHoursEditor (31241) - PicLayer (31241) - SimplifyArea (31241) - buildings_tools (31361) - conflation (0.1.7) - contourmerge (1013) - download_along (31241) - editgpx (31241) - geotools (31126) - imagery_offset_db (31241) - importvec (31241) - jts (31126) - log4j (31231) - measurement (31289) - merge-overlap (31241) - opendata (31241) - pbf (31241) - pdfimport (31241) - poly (31241) - reverter (31241) - scripting (30710) - todo (29154) - turnrestrictions (31241) - undelete (31241) - utilsplugin2 (31463) Last errors/warnings: - E: org.openstreetmap.josm.io.IllegalDataException: Illegal value for attribute 'version' on OSM primitive with ID 3522300102. Got c. (at line 44,136, column 175). 6,750,236 bytes have been read. Cause: org.openstreetmap.josm.io.OsmReader$OsmParsingException: Illegal value for attribute 'version' on OSM primitive with ID 3522300102. Got c. (at line 44,136, column 175). 6,750,236 bytes have been read. Cause: java.lang.NumberFormatException: For input string: "c"
Attachments (1)
Change History (3)
by , 9 years ago
Attachment: | links.osm.bz2 added |
---|
comment:1 by , 9 years ago
Keywords: | bz2 bzip2 added |
---|
comment:2 by , 9 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Closed as duplicate of #11212.