Java library on EGI


(Mickaël Brasebin) #1

Hi,

I tried to run a task that works locally on EGI with a java library. The dependencies of the task are loaded as a library :

val ProfileTask = ScalaTask("""
  | import fr.ign.cogit.task._
  | val resultFolder=ProfileTask.runDefault(newDir(), folderIn, stepXY, stepZ, maxDist, correlationThreshold, minimalPeriod,  heightAttribute, dirName)""".stripMargin) set (
  libraries += workDirectory / "geoxygene-sig3d-appli-1.9-SNAPSHOT-shaded.jar",
  stepXY := 1,
  stepZ := 1,
  maxDist := 500,
  heightAttribute := "HAUTEUR",
  minimalPeriod := 20,
  correlationThreshold := 0.8,
  inputs += ( folderIn, dirName, stepXY, stepZ, maxDist, heightAttribute, correlationThreshold,minimalPeriod ),
  outputs += (dirName, resultFolder)
)

The error is the following one, when I turned my library as a plugin (and by adapting the OMS script), the issue is solved. The name of my library does not appear in the log.

org.openmole.core.exception.InternalProcessingError: Error for context values in org.openmole.core.workflow.tools.InputOutputCheck$@605f4c9b {correlationThreshold=0.8, dirName=81812, folderIn=/var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/60d0e300-4476-40b1-ad28-b109c3494c86/.tmp/42a716a1-4f0c-4931-870c-497e68c4225f/dirReplica72961489-5cb6-4953-8993-9c53cf4e910e, heightAttribute=HAUTEUR, maxDist=500.0, minimalPeriod=20, openmole$seed=-6882796175126868601, stepXY=1.0, stepZ=1.0}
	at org.openmole.core.workflow.tools.InputOutputCheck$.$anonfun$perform$1(InputOutputCheck.scala:91)
	at org.openmole.core.expansion.FromContext$$anon$9.from(FromContext.scala:162)
	at org.openmole.core.workflow.task.Task.perform(Task.scala:64)
	at org.openmole.core.workflow.task.Task.perform$(Task.scala:62)
	at org.openmole.plugin.task.scala.ScalaTask.perform(ScalaTask.scala:65)
	at org.openmole.core.workflow.job.MoleJob.perform(MoleJob.scala:102)
	at org.openmole.core.workflow.execution.local.LocalExecutor.$anonfun$run$2(LocalExecutor.scala:77)
	at org.openmole.core.workflow.execution.local.LocalExecutor.$anonfun$run$2$adapted(LocalExecutor.scala:73)
	at scala.collection.immutable.List.foreach(List.scala:389)
	at org.openmole.core.workflow.execution.local.LocalExecutor.$anonfun$run$1(LocalExecutor.scala:73)
	at org.openmole.core.workflow.execution.local.LocalExecutor.withRedirectedOutput(LocalExecutor.scala:130)
	at org.openmole.core.workflow.execution.local.LocalExecutor.run(LocalExecutor.scala:70)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.openmole.core.exception.InternalProcessingError: Error while compiling with intepreter in osgi mode with priority bundles [org.openmole.core.expansion], libraries [/var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/60d0e300-4476-40b1-ad28-b109c3494c86/.tmp/42a716a1-4f0c-4931-870c-497e68c4225f/fileafe859db-5694-4af9-811a-22e6c8037c97.bin], classpath [/var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-expansion_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/60d0e300-4476-40b1-ad28-b109c3494c86/.tmp/42a716a1-4f0c-4931-870c-497e68c4225f/fileafe859db-5694-4af9-811a-22e6c8037c97.bin, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-org-apache-log4j_2.12_1.2.17.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-exception_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-squants_2.12_1.3.0.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/com-google-guava-guava_19.0.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-tools_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-network_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-location_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-types_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-file_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-org-objectweb-asm_2.12_5.1.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-org-apache-commons-collections_2.12_4.1.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-org-jasypt-encryption_2.12_1.9.2.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-stream_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-threadprovider_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-tar_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-pluginmanager_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-org-apache-commons-exec_2.12_1.3.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-osgi_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-collection_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-org-apache-commons-math_2.12_3.6.1.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-bytecode_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-logger_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-preference_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-hash_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-cache_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-bouncycastle-bcpkix-jdk15on_1.57.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-monocle_2.12_1.4.0.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-console_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-workspace_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-fileservice_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-org-scala-lang-scala-library_2.12_2.12.4.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-event_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-com-chuusai-shapeless_2.12_2.3.2.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-crypto_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-random_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-bouncycastle-bcprov-jdk15on_1.57.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-scalaz-scalaz-core_2.12_7.2.8.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-org-apache-commons-logging_2.12_1.2.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-lock_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-thread_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-org-apache-commons-configuration2_2.12_2.2.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-org-slf4j_2.12_1.7.10.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-module_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-dsl_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-serializer_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-project_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-org-h2_2.12_1.4.196.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-apache-httpcomponents-httpclient-osgi_4.5.3.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-gridscale_2.12_2.0.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-market_sjs0.6_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-buildinfo_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-osgi-org.osgi.compendium_4.3.1.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-context_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-replication_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-org-apache-commons-codec_2.12_1.10.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-gridscale-http_2.12_2.0.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-outputredirection_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-com-typesafe-slick_2.12_3.2.0.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/com-fasterxml-jackson-core-jackson-annotations_2.8.0.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-logconfig_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-ch-qos-logback_2.12_1.0.9.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-com-thoughtworks-xstream_2.12_1.4.9.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/com-thoughtworks-paranamer-paranamer_2.8.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-apache-httpcomponents-httpcore-osgi_4.4.7.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-outputmanager_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-runtime_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-com-github-scopt_2.12_3.5.0.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/com-fasterxml-jackson-core-jackson-core_2.8.4.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-db_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-services_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-sourcecode_2.12_0.1.3.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/effectaside-effectaside_2.12_0.2.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-workflow_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/log4j-log4j_1.2.17.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-org-json4s_2.12_3.5.0.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/com-typesafe-config_1.2.1.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/com-fasterxml-jackson-core-jackson-databind_2.8.4.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-tool-statistics_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-authentication_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-core-communication_2.12-8.0-SNAPSHOT.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/plugins/org-openmole-library-cats_2.12_1.0.1.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/envplugins/plugin3.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/envplugins/plugin4.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/envplugins/plugin1.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/envplugins/plugin6.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/envplugins/plugin5.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/envplugins/plugin0.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/envplugins/plugin2.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/60d0e300-4476-40b1-ad28-b109c3494c86/.tmp/42a716a1-4f0c-4931-870c-497e68c4225f/pluginf021b520-8742-4f63-ae3a-ff1af4fa518c.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/60d0e300-4476-40b1-ad28-b109c3494c86/.tmp/42a716a1-4f0c-4931-870c-497e68c4225f/pluginfd38a5cc-8420-47ac-a6ac-698a3451fe0d.jar, /var/torque/tmpdir/18097662.lpnhe-gs9091.in2p3.fr/CREAM971814137/DIRAC_l7Q57Zpilot/65253674/ws20787/60d0e300-4476-40b1-ad28-b109c3494c86/.tmp/42a716a1-4f0c-4931-870c-497e68c4225f/plugin00332160-edee-4612-9f8d-42fc9a371c20.jar].
	at org.openmole.core.expansion.ScalaCompilation$.compile(ScalaCompilation.scala:67)
	at org.openmole.core.expansion.ScalaCompilation$.function(ScalaCompilation.scala:92)
	at org.openmole.core.expansion.ScalaCompilation$.closure(ScalaCompilation.scala:100)
	at org.openmole.core.expansion.ScalaCompilation$.static(ScalaCompilation.scala:131)
	at org.openmole.plugin.task.scala.ScalaTask.compile(ScalaTask.scala:77)
	at org.openmole.plugin.task.scala.ScalaTask.$anonfun$process$2(ScalaTask.scala:100)
	at scala.collection.mutable.HashMap.getOrElseUpdate(HashMap.scala:82)
	at org.openmole.tool.cache.KeyValueCache.getOrElseUpdate(KeyValueCache.scala:11)
	at org.openmole.plugin.task.scala.ScalaTask.$anonfun$process$1(ScalaTask.scala:100)
	at org.openmole.core.expansion.FromContext$$anon$8.from(FromContext.scala:156)
	at org.openmole.core.expansion.FromContext.apply(FromContext.scala:195)
	at org.openmole.core.expansion.FromContext.apply$(FromContext.scala:195)
	at org.openmole.core.expansion.FromContext$$anon$8.apply(FromContext.scala:155)
	at org.openmole.plugin.task.jvm.JVMLanguageTask$.$anonfun$process$1(JVMLanguageTask.scala:38)
	at org.openmole.core.expansion.FromContext$$anon$8.from(FromContext.scala:156)
	at org.openmole.core.workflow.tools.InputOutputCheck$.$anonfun$perform$1(InputOutputCheck.scala:88)
	... 12 more
Caused by: javax.script.ScriptException: not found: value fr in 
import org.openmole.core.expansion.CodePackage._

(_input_value_context: org.openmole.core.context.Context, _input_value_RNG: org.openmole.tool.cache.Lazy[scala.util.Random], _input_value_NewFile: org.openmole.core.workspace.NewFile) => {
  object input {
    var folderIn = _input_value_context("folderIn").asInstanceOf[java.io.File]; var dirName = _input_value_context("dirName").asInstanceOf[java.lang.String]; var stepXY = _input_value_context("stepXY").asInstanceOf[Double]; var stepZ = _input_value_context("stepZ").asInstanceOf[Double]; var maxDist = _input_value_context("maxDist").asInstanceOf[Double]; var heightAttribute = _input_value_context("heightAttribute").asInstanceOf[java.lang.String]; var correlationThreshold = _input_value_context("correlationThreshold").asInstanceOf[Double]; var minimalPeriod = _input_value_context("minimalPeriod").asInstanceOf[Int]; var workDirectory = _input_value_context("workDirectory").asInstanceOf[java.io.File]
  }
  import input._
  implicit lazy val openmole$RNG: util.Random = _input_value_RNG()
  implicit lazy val openmole$NewFile = _input_value_NewFile
  
 import fr.ign.cogit.task._
 val resultFolder=ProfileTask.runDefault(newDir(), folderIn, stepXY, stepZ, maxDist, correlationThreshold, minimalPeriod,  heightAttribute, dirName)
  
import scala.collection.JavaConversions.mapAsJavaMap
mapAsJavaMap(Map[String, Any](  "dirName" -> dirName, "resultFolder" -> resultFolder ))

}: java.util.Map[java.lang.String, Any] at line number 24 at column number 9
	at scala.tools.nsc.interpreter.Scripted.$anonfun$compile$2(Scripted.scala:163)
	at scala.tools.nsc.interpreter.Scripted.$anonfun$compile$1(Scripted.scala:162)
	at scala.tools.nsc.interpreter.Scripted.withCompileContext(Scripted.scala:134)
	at scala.tools.nsc.interpreter.Scripted.compile(Scripted.scala:148)
	at scala.tools.nsc.interpreter.Scripted.compile(Scripted.scala:174)
	at org.openmole.core.console.Interpreter.compile(ScalaREPL.scala:335)
	at org.openmole.core.console.Interpreter.eval(ScalaREPL.scala:328)
	at org.openmole.core.expansion.ScalaCompilation$.$anonfun$compile$3(ScalaCompilation.scala:54)
	at scala.util.Try$.apply(Try.scala:209)
	at org.openmole.core.expansion.ScalaCompilation$.compile(ScalaCompilation.scala:53)
	... 27 more 

#2

Hi Michael,

which version of OpenMOLE are you using ? I thought, this bug was fixed a while ago in the dev version.

Romain


(Mickaël Brasebin) #3

Hi,

I use the 8.0-SNAPSHOT version, built the 6 feb 2018.

Mickaël


#4

Okay, so this is a regression. I look into it.


#5

Commit https://github.com/openmole/openmole/commit/d1896a21cb19fb17be874464ab6ba4c67eca64c9 should fix it.


(Mickaël Brasebin) #6

Hello,

I am sorry, I did not see the notification. I tested it this morning and the problem is solved.

Thank you,

Mickaël