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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Erik Allais
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
Reply | Threaded
Open this post in threaded view
|

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

jstrachan
On 8/9/07, Erik Allais <[hidden email]> 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/
Reply | Threaded
Open this post in threaded view
|

Re: Running example erro

jstrachan
In reply to this post by Erik Allais
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 <[hidden email]> 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/