currently I’m trying to get my java application running with openmole. My JAR file includes all source code, but not my sqlite input database and additional input, such as a OSM graph.
I uploaded needed files in the folder, where the jar and oms files are stored and kept the relative folder path the same.
The common java command to execute the application is
java -Xms2048M -Xmx2048M -XX:+UseParallelGC -jar application.jar -scenario 1 -iteration 1 - -inputDB C:\userABC\input.sqlite
My oms script looks like this
val i = Val[Array[String]] val o = Val[String] //Defines the task to perform the hello function val javaTask = ScalaTask("val o = package.start.Main.main(i)") set ( libraries += workDirectory / "application.jar", inputs += i, outputs += o, i := Array("-scenario 1 ", "-iteration 1 ", ""-inputDB C:\userABC\input.sqlite""") ) javaTask
When I run the script, openmole goes in the running state but crashes after 10 seconds. The cmd console is closed automatically and the web interface shows anerror message "The request allStates failed. The request saveFile failed."
Any idea what could be wrong?
Thanks for your help.