tilesplitter java Exception

Hi, until now I used the following to split the osm.pbf data: osmosis --rb ../../osm-data/$COUNTRY.osm.pbf --wx - | tilesplitter --mapid=$TILEID --max-nodes=900000 --description="$DESC" --cache=tile-cache With r123, this worked fine, but with the precompiled java jar r164 I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError: crosby/binary/file/BlockReaderAdapter Caused by: java.lang.ClassNotFoundException: crosby.binary.file.BlockReaderAdapter at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: uk.me.parabola.splitter.Main. Program will exit. Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Markus Rex, HRB 16746 (AG Nuernberg)

On 28/02/11 12:08, Thorsten Kukuk wrote: Hi
With r123, this worked fine, but with the precompiled java jar r164 I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: crosby/binary/file/BlockReaderAdapter Caused by: java.lang.ClassNotFoundException: crosby.binary.file.BlockReaderAdapter at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
Unless I'm missing somthing, it should work as long as you use the whole distibution. However, you cannot just take splitter.jar, you need also the lib directory, which is where the up-to-date osmpbf and protobuf jars are. ..Steve

On Mon, Feb 28, Steve Ratcliffe wrote:
On 28/02/11 12:08, Thorsten Kukuk wrote:
Hi
With r123, this worked fine, but with the precompiled java jar r164 I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: crosby/binary/file/BlockReaderAdapter Caused by: java.lang.ClassNotFoundException: crosby.binary.file.BlockReaderAdapter at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
Unless I'm missing somthing, it should work as long as you use the whole distibution.
However, you cannot just take splitter.jar, you need also the lib directory, which is where the up-to-date osmpbf and protobuf jars are.
Yes, found it meanwhile myself, for some reasons I missed to copy one jar from the lib directory. Thanks, Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Markus Rex, HRB 16746 (AG Nuernberg)

On Mon, Feb 28, Thorsten Kukuk wrote:
On Mon, Feb 28, Steve Ratcliffe wrote:
On 28/02/11 12:08, Thorsten Kukuk wrote:
Hi
With r123, this worked fine, but with the precompiled java jar r164 I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: crosby/binary/file/BlockReaderAdapter Caused by: java.lang.ClassNotFoundException: crosby.binary.file.BlockReaderAdapter at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
Unless I'm missing somthing, it should work as long as you use the whole distibution.
However, you cannot just take splitter.jar, you need also the lib directory, which is where the up-to-date osmpbf and protobuf jars are.
Yes, found it meanwhile myself, for some reasons I missed to copy one jar from the lib directory.
Sorry, a little bit too fast: If I supply a osm.pbf file on command line, it works, but no longer via pipe: Exception in thread "main" java.lang.IllegalArgumentException: No .osm files wer e supplied so at least one of --cache or --split-file must be specified at uk.me.parabola.splitter.Main.split(Main.java:145) at uk.me.parabola.splitter.Main.start(Main.java:114) at uk.me.parabola.splitter.Main.main(Main.java:103) Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Markus Rex, HRB 16746 (AG Nuernberg)

Hi
Sorry, a little bit too fast: If I supply a osm.pbf file on command line, it works, but no longer via pipe:
I did not realise that it could ever read pbf files from stdin? Reading osm files from stdin used to be supported, and I am just about to commit a change to re-instate it. There is currently no --cache parameter: the pbf is the new cache format, so you should just convert to pbf with osmosis and use that. Once splitter can write pdf, then I suppose it could be re-instated so that you could convert from osm and get the speed benefit of pbf in the later stages automatically if there was any great calling for that. If you are reading from stdin, you need the --split-file parameter and only one pass can be made (and always have, as far as I am aware). The documentation will need to be updated. ..Steve
participants (2)
-
Steve Ratcliffe
-
Thorsten Kukuk