Re: [osmosis-dev] Osmosis java.lang.IndexOutOfBoundsException

2019-11-15 Thread Frederik Ramm
Hi,

I think this was a problem of the Geofabrik download server. We
accidentally generated our "cleaned" files (the GDPR conformant file
without any user data) in a different way last night, completely
dropping the UID/Username fields, instead of replacing them with 0 and
empty strings as we did before.

This tripped up osmosis and also older versions of osm2pgsql (<= 0.94).

The pbf files are replaced with old-style, compatible files now.

Nightly updates and bz2 files were not affected since they don't use the
PBF format.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"

___
osmosis-dev mailing list
osmosis-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osmosis-dev


Re: [osmosis-dev] Osmosis java.lang.IndexOutOfBoundsException

2019-11-15 Thread hvalentim
Same thing happening here (osmosis v. 0.47). Suddenly:

osmosis --read-pbf file=/home/folder/osm/portugal-latest.osm.pbf --buffer
--tag-transform file=/home/folder/osm/folder/tag-transform.xml --write-pbf
file=/home/folder/osm/portugal-latest-transformed.osm.pbf

is ending with:

nov 15, 2019 11:13:03
org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager
waitForCompletion
SEVERE: Thread for task 1-read-pbf failed
java.lang.IndexOutOfBoundsException: Index:0, Size:0
at com.google.protobuf.IntArrayList.ensureIndexInRange(Unknown Source)
at com.google.protobuf.IntArrayList.getInt(Unknown Source)
at
org.openstreetmap.osmosis.osmbinary.Osmformat$DenseInfo.getUid(Osmformat.java:6606)
at
crosby.binary.osmosis.OsmosisBinaryParser.parseDense(OsmosisBinaryParser.java:119)
at
org.openstreetmap.osmosis.osmbinary.BinaryParser.parse(BinaryParser.java:124)
at
org.openstreetmap.osmosis.osmbinary.BinaryParser.handleBlock(BinaryParser.java:68)
at
org.openstreetmap.osmosis.osmbinary.file.FileBlock.process(FileBlock.java:135)
at
org.openstreetmap.osmosis.osmbinary.file.BlockInputStream.process(BlockInputStream.java:34)
at crosby.binary.osmosis.OsmosisReader.run(OsmosisReader.java:45)
at java.base/java.lang.Thread.run(Thread.java:834)
(...)



--
Sent from: http://gis.19327.n8.nabble.com/Osmosis-Development-f5338089.html

___
osmosis-dev mailing list
osmosis-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osmosis-dev