Issue #2 new

REST error in UpDownLoading

Pablo Echenique
created an issue

I have cloned brand new jumbo-converters and lensfield just in case, installed them, and issued, frorm lensfield root,

{{{ mvn -e -f ./pom.xml exec:java -Dexec.mainClass=org.xmlcml.cml.rest.UpDownLoader -Dexec.args="-download -url http://neptuno.unizar.es/files/public/datasets/HCO-L-Ala-NH2_g03_BIFIcluster_2007/calcs/homolevel/MP2/6-31G/ -dir /warehouse/dynamic/Quixote/testing"

}}} I get the error:

{{{ + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'exec'. [INFO] ------------------------------------------------------------------------ [INFO] Building Unnamed - wwmm:lensfield-jumbo:jar:0.0.1 [INFO]    task-segment: [exec:java] [INFO] ------------------------------------------------------------------------ [INFO] Preparing exec:java [INFO] No goals needed for project - skipping [INFO] [exec:java {execution: default-cli}] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] An exception occured while executing the Java class. org.xmlcml.cml.rest.UpDownLoader [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: An exception occured while executing the Java class. org.xmlcml.cml.rest.UpDownLoader at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: An exception occured while executing the Java class. org.xmlcml.cml.rest.UpDownLoader at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: java.lang.ClassNotFoundException: org.xmlcml.cml.rest.UpDownLoader 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 java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:284) at java.lang.Thread.run(Thread.java:680) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Tue Feb 08 17:45:13 CET 2011 [INFO] Final Memory: 14M/81M [INFO] ------------------------------------------------------------------------ }}}

Comments (1)

  1. gigadot

    I do not have any problem running your exact command. Cloning latest Jumbo, Jumbo-Converters or Lensfield do not affects Lensfield Jumbo. Lensfield Jumbo does not depend on any of those.

    From your strack trace, the cause of exception is that it cannot find a main class org.xmlcml.cml.rest.UpDownLoader which should be under src/main/java/org/xmlcml/cml/rest/UpDownLoader.java path. If it is not there then, you may not be running on latest Lensfield Jumbo.

    You need to make sure that you have latest Lensfield Jumbo since the org.xmlcml.cml.rest.UpDownLoader only exists in changeset 16 : 9d59d1db22bd and later and it is the only class in the library.

    If this instruction solves your problem, you should mark it as resolved.

  2. Log in to comment