NoClassDefFoundError: gnu/trove/procedure/TShortIntProcedure

1,239 views
Skip to first unread message

elmuSSo

unread,
Dec 28, 2011, 9:23:42 PM12/28/11
to mapsforge-dev
Hey guys. Im trying to make some osm -> map convertion and I
encountered this error:

H:\Mapowe\osmosis-0.40.1-36-gf164fae\bin>osmosis --rx file=test.osm --
mapfile-wr
iter file=bremen.map bbox=52.4477300,13.2756600,52.4588200,13.2986600
2011-12-29 03:21:18 org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.40.1-36-gf164fae
2011-12-29 03:21:18 org.java.plugin.registry.xml.ManifestParser <init>
INFO: got SAX parser factory -
org.apache.xerces.jaxp.SAXParserFactoryImpl@6b97f
d
2011-12-29 03:21:18 org.java.plugin.registry.xml.PluginRegistryImpl
configure
INFO: configured, stopOnError=false, isValidating=true
2011-12-29 03:21:18 org.java.plugin.registry.xml.PluginRegistryImpl
register
INFO: plug-in and fragment descriptors registered - 1
2011-12-29 03:21:19 org.java.plugin.standard.StandardPluginManager
activatePlugi
n
INFO: plug-in started -
org.openstreetmap.osm...@0.40.0.1-36-g
f164fae
2011-12-29 03:21:19 org.java.plugin.registry.xml.PluginRegistryImpl
register
INFO: plug-in and fragment descriptors registered - 1
2011-12-29 03:21:19 org.java.plugin.standard.StandardPluginManager
activatePlugi
n
INFO: plug-in started -
org.mapsforge.preprocessing.map.osmosis.mapfilewriter@0.
2.4
2011-12-29 03:21:19 org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
2011-12-29 03:21:19
org.mapsforge.preprocessing.map.osmosis.MapFileWriterTask <i
nit>
INFO: mapfile-writer version 0.2.4
2011-12-29 03:21:19 org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
java.lang.NoClassDefFoundError: gnu/trove/procedure/TShortIntProcedure
at
org.mapsforge.preprocessing.map.osmosis.MapFileWriterTask.<init>(MapF
ileWriterTask.java:102)
at
org.mapsforge.preprocessing.map.osmosis.MapFileWriterFactory.createTa
skManagerImpl(MapFileWriterFactory.java:69)
at
org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory.cre
ateTaskManager(TaskManagerFactory.java:60)
at
org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pi
peline.java:50)
at
org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipel
ine.java:112)
at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:86)
at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:
37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Laun
cher.java:329)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:239)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: java.lang.ClassNotFoundException:
gnu.trove.procedure.TShortIntProced
ure
at
org.java.plugin.standard.StandardPluginClassLoader.loadClass(Standard
PluginClassLoader.java:330)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 16 more


I dont know what I should do now. No clues.
Windows 7.
mapsforge-mapfile-writer-0.2.4.jar in /plugins.
trove.jar in /lib/default.

Could you help me with that?

Jürgen Broß

unread,
Dec 30, 2011, 3:41:48 PM12/30/11
to mapsfo...@googlegroups.com
Which version of the trove library do you use? Make sure that you use at
least a 3.x version. Also make sure that no different versions of the
library are installed in the lib/default directory.

Regards


--


Jürgen Broß
Institute of Computer Science
Databases and Information Systems
Freie Universität Berlin
Takustr. 9
D-14195 Berlin, Germany
phone: +49 30 838-75108
email: juerge...@fu-berlin.de

signature.asc

elmuSSo

unread,
Feb 1, 2012, 6:39:05 PM2/1/12
to mapsforge-dev
Cheers for answer. Maybe im putting the file in wrong place? I have
trove 3.0.2. I took trove-3.0.2-src.jar renamed it to trove.jar and
put to my osmosis folder. the same error. Then I put it to /lib/
default/ - the same error. So i think it just can't see the file. So
where should be the most proper place to put trove.jar?

On Dec 30 2011, 9:41 pm, Jürgen Broß <juergen.br...@fu-berlin.de>
wrote:
> > org.openstreetmap.osmosis.core.plugin.C...@0.40.0.1-36-g
> email: juergen.br...@fu-berlin.de
>
>  signature.asc
> < 1KViewDownload

Corey Wallis

unread,
Feb 1, 2012, 6:49:00 PM2/1/12
to mapsfo...@googlegroups.com
Hi,

I think you're using the wrong jar file.

Rather than a renamed version of the source jar file, which just
contains the source code, you need the trove-3.0.2.jar file located in
the lib folder that was created when you extracted the files from the
archive.

In my install I have this in the ~/osmosis-0.40.1/lib/default folder.

Hope this helps.

-Corey

elmuSSo

unread,
Feb 1, 2012, 7:11:03 PM2/1/12
to mapsforge-dev
Corey Wallis: thanks You were right, that was the case. But now I have
another error:

H:\Mapowe\osmosis-0.40.1-36-gf164fae\bin>osmosis --rx file=test.osm --
mapfile-wr
iter file=testt.map
lut 02, 2012 1:06:25 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.40.1-36-gf164fae
lut 02, 2012 1:06:25 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
lut 02, 2012 1:06:25 AM
org.mapsforge.preprocessing.map.osmosis.MapFileWriterTas
k <init>
INFO: mapfile-writer version 0.2.4
lut 02, 2012 1:06:25 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
lut 02, 2012 1:06:25 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
lut 02, 2012 1:06:25 AM
org.openstreetmap.osmosis.core.pipeline.common.ActiveTas
kManager waitForCompletion
SEVERE: Thread for task 1-rx failed
java.lang.NullPointerException
at
org.mapsforge.preprocessing.map.osmosis.MapFileWriterTask.release(Map
FileWriterTask.java:192)
at
org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:128)
at java.lang.Thread.run(Unknown Source)

lut 02, 2012 1:06:25 AM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more
tasks failed
.
at
org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForComple
tion(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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Laun
cher.java:329)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:239)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)


And to be sure that my input file is right, im putting here a sample
of it:

<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6">
<node lat="51.4259902" lon="21.3053779" id="-191477">
</node>
<node lat="51.3750248" lon="21.1993379" id="-73016">
</node>
<node lat="51.399573" lon="21.1741394" id="-147719">

Karsten Groll

unread,
Feb 2, 2012, 2:52:15 PM2/2/12
to mapsfo...@googlegroups.com
It looks like you have created an example file with JOSM. Thus the
generated files are not suitable for Osmosis. Does the conversion of
PBF files work for you? (You can download them at
http://download.geofabrik.de/)

2012/2/2 elmuSSo <elm...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages