You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Erik Allais <er...@altervisions.com> on 2007/08/09 15:16:19 UTC

Running example erro

hi,

itried to execute the jmstofile example and i got this error after the mvn
exec:java

[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
---------------------------------------------------
constituent[0]: file:/usr/local/maven-2.0.7/lib/maven-core-2.0.7-uber.jar
---------------------------------------------------
java.lang.NullPointerException
        at
org.apache.maven.usability.MojoExecutionExceptionDiagnoser.diagnose(MojoExecutionExceptionDiagnoser.java:64)
        at
org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:84)
        at
org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:727)
        at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:672)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:131)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        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:585)
        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)


Regards,
Erik
-- 
View this message in context: http://www.nabble.com/Running-example-erro-tf4242563s22882.html#a12072237
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Running example erro

Posted by James Strachan <ja...@gmail.com>.
I replied to the other thread:
http://www.nabble.com/Running-example-%28camel-example-jms-file%29-error-tf4242563s22882.html

On 8/9/07, Erik Allais <er...@altervisions.com> wrote:
>
> hi,
>
> itried to execute the jmstofile example and i got this error after the mvn
> exec:java
>
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> ---------------------------------------------------
> constituent[0]: file:/usr/local/maven-2.0.7/lib/maven-core-2.0.7-uber.jar
> ---------------------------------------------------
> java.lang.NullPointerException
>         at
> org.apache.maven.usability.MojoExecutionExceptionDiagnoser.diagnose(MojoExecutionExceptionDiagnoser.java:64)
>         at
> org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:84)
>         at
> org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:727)
>         at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:672)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:131)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>         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:585)
>         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)
>
>
> Regards,
> Erik
> --
> View this message in context: http://www.nabble.com/Running-example-erro-tf4242563s22882.html#a12072237
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>


-- 
James
-------
http://macstrac.blogspot.com/

Re: Running example (camel-example-jms-file) error

Posted by James Strachan <ja...@gmail.com>.
On 8/9/07, Erik Allais <er...@altervisions.com> wrote:
>
> hi,
>
> itried to execute the jmstofile example and i got this error after the mvn
> exec:java

I've just hit this one actually :) I've just updated the comment in
the pom.xml. You need to compile the code first. So either...

  mvn compile exec:java

or

  mvn camel:run

should do the trick.

I've updated the wiki too...
http://cwiki.apache.org/CAMEL/etl-example.html

-- 
James
-------
http://macstrac.blogspot.com/