Modify

Opened 7 years ago

Closed 7 years ago

#17532 closed defect (othersoftware)

<anyfilename>.osm can not opened if "version"= "-1", created from osmosis

Reported by: thomasmorgenstern@… Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report osmosis Cc:

Description

try to open Testpreview2.osm. Download : http://img2ms.de/Downloads/JOSM-ERROR.rar. Contains file.osm and screenshot. This file is a filter extract, created using OSMOSIS-pbf Version. And OSMOSIS writes in line 454 : <way id="3237246" version="-1" timestamp="1969-12-31T23:59:59Z">
The tag =version with value = "-1" causes : "can not read file.."

What is the expected result? JOSM should ignor the negative value for tag version.

What happens instead? : file is not readable

Please provide any additional information below. Attach a screenshot if possible.

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-03-03 00:16:03 +0100 (Sun, 03 Mar 2019)
Build-Date:2019-03-02 23:16:53
Revision:14824
Relative:URL: ^/trunk

Identification: JOSM/1.5 (14824 de) Windows 10 64-Bit
OS Build number: Windows 10 Pro 1803 (17134)
Memory Usage: 902 MB / 1820 MB (529 MB allocated, but free)
Java version: 1.8.0_161-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1080
Maximum Screen Size: 1920x1080
Program arguments: [F:\OSMEuropa\Sachsen\Testpreview2.osm]
Dataset consistency test: No problems found

Plugins:
+ BuildingGeneralization (23)
+ DirectDownload (34867)
+ FastDraw (34949)
+ HouseNumberTaggingTool (34867)
+ ImproveWay (24)
+ alignways (34867)
+ apache-commons (34506)
+ areaselector (349)
+ austriaaddresshelper (57)
+ colorscheme (34678)
+ continuosDownload (82)
+ ejml (34389)
+ geotools (34513)
+ jaxb
+ jts (34524)
+ log4j (34527)
+ measurement (34867)
+ namemanager (34867)
+ opendata
+ osm-obj-info (51)
+ pbf (34867)
+ turnrestrictions (34867)
+ utilsplugin2 (34932)

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: org.openstreetmap.josm.io.IllegalDataException: Ungültiger Wert "-1" des Attributs 'version' für das Objekt mit der Kennung 3237246. (in Zeile 454, Spalte 67). 46.719 Bytes wurden gelesen. Ursache: org.openstreetmap.josm.io.XmlStreamParsingException: Ungültiger Wert "-1" des Attributs 'version' für das Objekt mit der Kennung 3237246. (in Zeile 454, Spalte 67). 46.719 Bytes wurden gelesen. Ursache: org.openstreetmap.josm.io.IllegalDataException: Ungültiger Wert "-1" des Attributs 'version' für das Objekt mit der Kennung 3237246.
- E: Fehler - <html>Die Datei 'Testpreview2.osm' konnte nicht gelesen werden.<br>Fehlermeldung: <br>Ungültiger Wert "-1" des Attributs 'version' für das Objekt mit der Kennung 3237246. (in Zeile 454, Spalte 67). 46.719 Bytes wurden gelesen</html>
- W: Region [WMTS_BLOCK_v2] Resetting cache
- W: Invalid jar file ''<josm.pref>\plugins\jts.jar.new'' (exists: false, canRead: false)
- W: Invalid jar file ''<josm.pref>\plugins\geotools.jar.new'' (exists: false, canRead: false)
- W: Invalid jar file ''<josm.pref>\plugins\opendata.jar.new'' (exists: false, canRead: false)
- W: Invalid jar file ''<josm.pref>\plugins\utilsplugin2.jar.new'' (exists: false, canRead: false)
- W: Invalid jar file ''<josm.pref>\plugins\jaxb.jar.new'' (exists: false, canRead: false)
- W: Invalid jar file ''<josm.pref>\plugins\apache-commons.jar.new'' (exists: false, canRead: false)

Attachments (2)

Testpreview2.osm (91.4 KB ) - added by thomasmorgenstern@… 7 years ago.
osm-file in xml-format
JOSM-Error.jpg (120.2 KB ) - added by anonymous 7 years ago.
screenshot

Download all attachments as: .zip

Change History (3)

by thomasmorgenstern@…, 7 years ago

Attachment: Testpreview2.osm added

osm-file in xml-format

by anonymous, 7 years ago

Attachment: JOSM-Error.jpg added

screenshot

comment:1 by Don-vip, 7 years ago

Keywords: osmosis added
Resolution: othersoftware
Status: newclosed

Please ask osmosis to write valid version numbers.

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.