Can not get it to run

65 views
Skip to first unread message

yobiSource

unread,
Nov 12, 2011, 6:26:06 AM11/12/11
to Mapnik to GeoTools Style Conversion
Hello,

At the start of the converting I get the following error.
GUI: java.lang.RuntimeException: Boom
Driver:
[error] java.util.NoSuchElementException: None.get
[error] at scala.None$.get(Option.scala:275)
[error] at scala.None$.get(Option.scala:273)
[error] at me.winslow.d.mn2gt.Driver$.getOperation(CommandLine.scala:
49)
[error] at me.winslow.d.mn2gt.Driver$$anonfun$main
$1.apply(CommandLine.scala:59)
[error] at me.winslow.d.mn2gt.Driver$$anonfun$main
$1.apply(CommandLine.scala:58)
[error] at scala.collection.LinearSeqOptimized
$class.foreach(LinearSeqOptimized.scala:59)
[error] at scala.collection.immutable.List.foreach(List.scala:45)
[error] at me.winslow.d.mn2gt.Driver$.main(CommandLine.scala:58)
[error] at me.winslow.d.mn2gt.Driver.main(CommandLine.scala)
[error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[error] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
[error] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
[error] at java.lang.reflect.Method.invoke(Method.java:616)
[error] at scala.tools.nsc.util.ScalaClassLoader$$anonfun$run
$1.apply(ScalaClassLoader.scala:78)
[error] at scala.tools.nsc.util.ScalaClassLoader
$class.asContext(ScalaClassLoader.scala:24)
[error] at scala.tools.nsc.util.ScalaClassLoader
$URLClassLoader.asContext(ScalaClassLoader.scala:88)
[error] at scala.tools.nsc.util.ScalaClassLoader
$class.run(ScalaClassLoader.scala:78)
[error] at scala.tools.nsc.util.ScalaClassLoader
$URLClassLoader.run(ScalaClassLoader.scala:101)
[error] at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:33)
[error] at scala.tools.nsc.ObjectRunner
$.runAndCatch(ObjectRunner.scala:40)
[error] at scala.tools.nsc.MainGenericRunner.runTarget
$1(MainGenericRunner.scala:56)
[error] at
scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:80)
[error] at scala.tools.nsc.MainGenericRunner
$.main(MainGenericRunner.scala:89)
[error] at
scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
java.lang.RuntimeException: Nonzero exit code returned from runner: 1
at scala.sys.package$.error(package.scala:27)
at scala.Predef$.error(Predef.scala:66)
[error] {file:/home/geouser/mapnik/}default-01abb6/compile:run:
Nonzero exit code returned from runner: 1
[error] Total time: 2 s, completed 12.11.2011 12:21:20

There is no difference what file I enter. (nonexistent file ending in
the same error)
Tested on Ubuntu 11.04 with openjdk and Ubuntu 11.10 sun-java.

What I do wrong?

yobiSource

David Winslow

unread,
Nov 12, 2011, 3:12:22 PM11/12/11
to Mapnik to GeoTools Style Conversion, yobiSource
GUI:
This is my mistake, I added the "Boom" error while I was testing the
error handling and didn't remove it before saving the changes. I've
updated the github project to remove that error, so please use
"git pull" to update your copy of the project and try again.

Driver:
It sounds like you have not specified an 'output' directory. I think
you shouldn't have to (just creating a directory named 'output' adjacent
to the mapnik xml should be a reasonable default) but there was a bug in
the command-line argument parsing that prevents this from working. I
have updated the git repo with a fix for this as well.

Thanks for letting me know about these problems, I hope you're able to
use mn2gt after this.

--
David Winslow
OpenGeo - http://opengeo.org/

yobiSource

unread,
Nov 12, 2011, 4:40:46 PM11/12/11
to Mapnik to GeoTools Style Conversion
Thank you, now it works. (Driver and GUI)

Note: I compiled in the wrong folder by mistake and he could not
download sbt-assembly.
After changed the version to 0.7.2 in the file plugins.sbt it worked.
(only the compile)

yobiSource
Reply all
Reply to author
Forward
0 new messages