Modify

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#9975 closed defect (worksforme)

Unsupported version error opening older .osm files

Reported by: katpatuka Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: .osm, file, version, change, unsupported Cc: katpatuka

Description

I get following error trying to open some older .osm files (in version 7054):

ERROR: org.openstreetmap.josm.io.IllegalDataException: 
Unsupported version: 0.5 (at line 2, column 51). 
Cause: org.openstreetmap.josm.io.OsmReader$OsmParsingException: 
Unsupported version: 0.5 (at line 2, column 51)

Files were last saved using version 6502 or earlier. See attachment (file with lighthouse locations in Turkey).

Attachments (1)

fener.osm (3.8 KB ) - added by katpatuka 11 years ago.
file throwing error "Unsupported version: 0.5" while trying to open

Download all attachments as: .zip

Change History (6)

by katpatuka, 11 years ago

Attachment: fener.osm added

file throwing error "Unsupported version: 0.5" while trying to open

comment:1 by skyper, 11 years ago

Just for the record. Can reproduce:

USER@HOST:~$ java -jar josm-latest.jar 
INFO: Running plugin update after JOSM upgrade. Automatic update at startup is enabled.
INFO: loading plugin 'reverter' (version 30416)
INFO: RemoteControl: adding command "revert_changeset" (handled by RevertChangesetHandler)
INFO: loading plugin 'jts' (version 30416)
INFO: loading plugin 'utilsplugin2' (version 30419)
INFO: loading plugin 'undelete' (version 30416)
INFO: loading plugin 'imagery-xml-bounds' (version 30416)
INFO: loading plugin 'mirrored_download' (version 30416)
INFO: loading plugin 'photoadjust' (version 30428)
INFO: loading plugin 'todo' (version 29154)
INFO: loading plugin 'wikipedia' (version 30416)
INFO: loading plugin 'OpeningHoursEditor' (version 30416)
INFO: loading plugin 'notes' (version v0.9.2)
INFO: loading plugin 'terracer' (version 30416)
INFO: loading plugin 'conflation' (version 0.1.6)
INFO: RemoteControl::Accepting connections on port 8111
INFO: RemoteControl::Accepting secure connections on port 8112
INFO: GET https://api.openstreetmap.org/api/0.6/user/details
INFO: Message notifier active (checks every 5 minutes)
INFO: GET https://api.openstreetmap.org/api/0.6/user/details (get number of unread messages)
INFO: Open file: $HOME/fener.osm (3850 bytes)
ERROR: org.openstreetmap.josm.io.IllegalDataException: Unsupported version: 0.5 (at line 2, column 51). Cause: org.openstreetmap.josm.io.OsmReader$OsmParsingException: Unsupported version: 0.5 (at line 2, column 51)
org.openstreetmap.josm.io.IllegalDataException: Unsupported version: 0.5 (at line 2, column 51)
	at org.openstreetmap.josm.io.OsmReader.doParseDataSet(OsmReader.java:611)
	at org.openstreetmap.josm.io.OsmReader.parseDataSet(OsmReader.java:642)
	at org.openstreetmap.josm.io.OsmImporter.parseDataSet(OsmImporter.java:120)
	at org.openstreetmap.josm.io.OsmImporter.loadLayer(OsmImporter.java:110)
	at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:88)
	at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:65)
	at org.openstreetmap.josm.io.FileImporter.importDataHandleExceptions(FileImporter.java:70)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:332)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:277)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:82)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:150)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	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:724)
Caused by: org.openstreetmap.josm.io.OsmReader$OsmParsingException: Unsupported version: 0.5 (at line 2, column 51)
	at org.openstreetmap.josm.io.OsmReader.throwException(OsmReader.java:91)
	at org.openstreetmap.josm.io.OsmReader.parseOsm(OsmReader.java:124)
	at org.openstreetmap.josm.io.OsmReader.parseRoot(OsmReader.java:112)
	at org.openstreetmap.josm.io.OsmReader.parse(OsmReader.java:98)
	at org.openstreetmap.josm.io.OsmReader.doParseDataSet(OsmReader.java:592)
	... 16 more
epository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-05-03 01:32:45
Last Changed Author: bastiK
Revision: 7054
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-05-03 01:07:19 +0200 (Sat, 03 May 2014)
Last Changed Rev: 7054

Identification: JOSM/1.5 (7054 en) Linux Debian GNU/Linux 7.5 (wheezy)
Memory Usage: 175 MB / 881 MB (101 MB allocated, but free)
Java version: 1.7.0_25, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u25-2.3.10-1~deb7u1

comment:2 by Don-vip, 11 years ago

Resolution: worksforme
Status: newclosed

Yes I have disabled support of API 0.5 in r7013. There's no point in keeping it, API 0.6 is live since 2009. Please update your files.

in reply to:  2 comment:3 by katpatuka, 11 years ago

Replying to Don-vip:

Yes I have disabled support of API 0.5 in r7013. There's no point in keeping it, API 0.6 is live since 2009. Please update your files.

So how shall I update my files if I can't open them in version 7054?

I can of course open them in version 6502 - I tried to save them from there again in the hope that they'd be saved in magic API 0.6 version but nope: ver. 7054 still couldn't open them...

Did I miss something or am I just blind?

comment:4 by Don-vip, 11 years ago

You can try to change the version directly in .osm file, differences are minor.

comment:5 by Don-vip, 10 years ago

Ticket #11239 has been marked as a duplicate of this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.