Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

java.lang.ArrayIndexOutOfBoundsException when using pbf file #3702

Open
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Open

Comments

@openstreetmap-trac
Copy link

Reporter: francisco.moraes[at]gmail.com
[Submitted to the original trac issue database at 11.09pm, Wednesday, 20th April 2011]

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)

@openstreetmap-trac
Copy link
Author

Author: openstreetmap[at]firefishy.com
[Added to the original trac issue at 11.26am, Wednesday, 4th May 2011]

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

@openstreetmap-trac
Copy link
Author

Author: francisco.moraes[at]gmail.com
[Added to the original trac issue at 11.52am, Wednesday, 4th May 2011]

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant