Opened 7 years ago

Last modified 7 years ago

#3702 new defect

java.lang.ArrayIndexOutOfBoundsException when using pbf file

Reported by: francisco.moraes@… Owned by: brett@…
Priority: major Milestone:
Component: osmosis Version:
Keywords: java.lang.ArrayIndexOutOfBoundsException Cc:

Description

I downloaded the us-south.osm.pbf from http://download.geofabrik.de/osm/north-america/ and tried to process with osmosis as follows:

osmosis-0.37\bin\osmosis --rb us-south.osm.pbf --wx us-south.osm

I got the following exception:

Apr 20, 2011 9:59:10 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.37
Apr 20, 2011 9:59:10 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Apr 20, 2011 9:59:10 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Apr 20, 2011 9:59:10 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Apr 20, 2011 9:59:20 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager? waitForCompletion
SEVERE: Thread for task 1-rb failed
Throwable occurred: java.lang.ArrayIndexOutOfBoundsException?

at com.google.protobuf.CodedInputStream?.readRawByte(CodedInputStream?.java:716)
at com.google.protobuf.CodedInputStream?.readRawVarint64(CodedInputStream?.java:407)
at com.google.protobuf.CodedInputStream?.readSInt64(CodedInputStream?.java:308)
at crosby.binary.Osmformat$DenseNodes?$Builder.mergeFrom(Osmformat.java:4954)
at crosby.binary.Osmformat$DenseNodes?$Builder.mergeFrom(Osmformat.java:1)
at com.google.protobuf.CodedInputStream?.readMessage(CodedInputStream?.java:257)
at crosby.binary.Osmformat$PrimitiveGroup?$Builder.mergeFrom(Osmformat.java:1908)
at crosby.binary.Osmformat$PrimitiveGroup?$Builder.mergeFrom(Osmformat.java:1)
at com.google.protobuf.CodedInputStream?.readMessage(CodedInputStream?.java:257)
at crosby.binary.Osmformat$PrimitiveBlock?$Builder.mergeFrom(Osmformat.java:1326)
at crosby.binary.Osmformat$PrimitiveBlock?$Builder.mergeFrom(Osmformat.java:1)
at com.google.protobuf.AbstractMessage?$Builder.mergeFrom(AbstractMessage?.java:244)
at com.google.protobuf.AbstractMessage?$Builder.mergeFrom(AbstractMessage?.java:183)
at com.google.protobuf.AbstractMessageLite?$Builder.mergeFrom(AbstractMessageLite?.java:121)
at com.google.protobuf.AbstractMessage?$Builder.mergeFrom(AbstractMessage?.java:640)
at crosby.binary.Osmformat$PrimitiveBlock?.parseFrom(Osmformat.java:1115)

at crosby.binary.BinaryParser?.handleBlock(BinaryParser?.java:50)
at crosby.binary.file.FileBlock?.process(FileBlock?.java:117)
at crosby.binary.file.BlockInputStream?.process(BlockInputStream?.java:15)

at crosby.binary.osmosis.OsmosisReader?.run(OsmosisReader?.java:36)
at java.lang.Thread.run(Thread.java:736)

Apr 20, 2011 9:59:20 PM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
Throwable occurred: org.openstreetmap.osmosis.core.OsmosisRuntimeException?: One
or more tasks failed.

at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)
at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)
at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
at sun.reflect.NativeMethodAccessorImpl?.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl?.invoke(NativeMethodAccessorImpl?.java:48)
at sun.reflect.DelegatingMethodAccessorImpl?.invoke(DelegatingMethodAccessorImpl?.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
at org.codehaus.classworlds.Launcher.main(Launcher.java:31)

Change History (2)

comment:1 Changed 7 years ago by openstreetmap@…

Osmosis 0.37 is now quite old, can you retry with version 0.39?

comment:2 Changed 7 years ago by francisco.moraes@…

The problem is no longer happening after updating my 64-bit JRE to a newer version.

Note: See TracTickets for help on using tickets.