tutorial1

0 views
Skip to first unread message

Pablo Echenique

unread,
Oct 16, 2010, 1:47:32 PM10/16/10
to Quixote-dev mail list
Following the tutorial in http://quixote.wikispot.org/Tutorial_1

I have tried:

mvn -f /Users/pablo/temp/quixote/lensfieldjumbo/pom.xml exec:java -Dexec.mainClass=org.xmlcml.cml.rest.Client -Dexec.args="-download -url http://neptuno.unizar.es/files/public/datasets/HCO-L-Ala-NH2_g03_BIFIcluster_2007/calcs/homolevel/MP2/6-31G/ -dir /Users/pablo/temp/quixote/testing/tutorial1"

And I get:

...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An exception occured while executing the Java class. org.xmlcml.cml.rest.Client

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48 seconds
[INFO] Finished at: Sat Oct 16 19:41:08 CEST 2010
[INFO] Final Memory: 17M/81M
[INFO] ------------------------------------------------------------------------

Any clues?

Best,

  Pablo.

Peter Murray-Rust

unread,
Oct 16, 2010, 1:53:58 PM10/16/10
to quixote-...@googlegroups.com

No - the command looks fine.

Suggest you run with the -e switch
 mvn -e -f /Users/pablo/temp/quixote/lensfieldjumbo/pom.xml ...

and let me have the stackTrace

P.


Best,

  Pablo.



--
Peter Murray-Rust
Reader in Molecular Informatics
Unilever Centre, Dep. Of Chemistry
University of Cambridge
CB2 1EW, UK
+44-1223-763069

Pablo Echenique

unread,
Oct 16, 2010, 2:01:19 PM10/16/10
to quixote-...@googlegroups.com
Here it is:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An exception occured while executing the Java class. org.xmlcml.cml.rest.Client

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An exception occured while executing the Java class. org.xmlcml.cml.rest.Client
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.Client
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.Client
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:637)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Sat Oct 16 19:59:54 CEST 2010
[INFO] Final Memory: 14M/81M
[INFO] ------------------------------------------------------------------------

Peter Murray-Rust

unread,
Oct 16, 2010, 2:21:03 PM10/16/10
to quixote-...@googlegroups.com
It's not picking up the class org.xmlcml.cml.rest.Client



See if you have a directory target/classes in your project which should contain:
/Users/pablo/temp/quixote/lensfieldjumbo/ ... target/classes/org/xmlcml/cml/rest/Client.class

Have you managed to run any mvn exec commands?

Pablo Echenique

unread,
Oct 16, 2010, 2:26:08 PM10/16/10
to quixote-...@googlegroups.com
It does not exist,
probably I did not compile lensfieldjumbo,
and do not know how to do so.

Peter Murray-Rust

unread,
Oct 16, 2010, 2:39:16 PM10/16/10
to quixote-...@googlegroups.com
On Sat, Oct 16, 2010 at 7:26 PM, Pablo Echenique <echen...@gmail.com> wrote:
It does not exist,
probably I did not compile lensfieldjumbo,
and do not know how to do so.

Is maven installed?

If so go to lensfieldjumbo and issue:
mvn install

and tell me what happens

Pablo Echenique

unread,
Oct 16, 2010, 2:43:30 PM10/16/10
to quixote-...@googlegroups.com
...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/Users/pablo/Dropbox/temp/quixote/lensfieldjumbo/src/main/java/org/xmlcml/cml/rest/Client.java:[345,32] cannot find symbol
symbol  : method getRelativeFilename(java.io.File,java.io.File,java.lang.String)
location: class org.xmlcml.euclid.Util


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Sat Oct 16 20:42:59 CEST 2010
[INFO] Final Memory: 25M/81M
[INFO] ------------------------------------------------------------------------

Peter Murray-Rust

unread,
Oct 17, 2010, 3:49:36 AM10/17/10
to quixote-...@googlegroups.com, Sam Adams
On Sat, Oct 16, 2010 at 7:43 PM, Pablo Echenique <echen...@gmail.com> wrote:
...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/Users/pablo/Dropbox/temp/quixote/lensfieldjumbo/src/main/java/org/xmlcml/cml/rest/Client.java:[345,32] cannot find symbol
symbol  : method getRelativeFilename(java.io.File,java.io.File,java.lang.String)
location: class org.xmlcml.euclid.Util

Sorry about this
 
This is because a test for  getRelativeFilename runs on my machine but fails on our Hudson build system. I have altered the test and recommitted.

SAM Can you check that Hudson has redeployed the build. I still get a yellow dot although there are no test failures.

SAM how can Pablo get the latest CMLXOM into the system?

P.

Pablo Echenique

unread,
Oct 17, 2010, 6:04:16 AM10/17/10
to quixote-...@googlegroups.com, Sam Adams
After

hg pull
hg update
mvn install

I get the same error.

Best,

  Pablo.

Peter Murray-Rust

unread,
Oct 17, 2010, 8:47:58 AM10/17/10
to quixote-...@googlegroups.com, Sam Adams
On Sun, Oct 17, 2010 at 11:04 AM, Pablo Echenique <echen...@gmail.com> wrote:
After

hg pull
hg update
mvn install

The problem is in the cmlxom library. It is meant to be deployed by Hudson. AFAICS it builds and passes tests.

SAM - any thoughts?

 
Reply all
Reply to author
Forward
0 new messages