camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Babak Vahdat (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-7028) tooling - Using the embedded goal of the Camel Maven Plugin ends up with a NPE
Date Wed, 04 Dec 2013 13:43:36 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-7028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13836447#comment-13836447
] 

Babak Vahdat edited comment on CAMEL-7028 at 12/4/13 1:43 PM:
--------------------------------------------------------------

The current workaround for the users is to make use of the {{run}} goal, that's:

{code}
mvn camel:run
{code}



was (Author: bvahdat):
The current workaround for the users is to make use of the {{run}} goal, that's {{mvn camel:run}}.

> tooling - Using the embedded goal of the Camel Maven Plugin ends up with a NPE
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-7028
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7028
>             Project: Camel
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 2.12.2
>            Reporter: Babak Vahdat
>            Assignee: Babak Vahdat
>            Priority: Minor
>             Fix For: 2.11.3, 2.12.3, 2.13.0
>
>
> {code}
> ~/dev/workspace/camel/examples/camel-example-spring>mvn -e camel:embedded
> [INFO] Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Camel :: Example :: Spring 2.13-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] >>> camel-maven-plugin:2.13-SNAPSHOT:embedded (default-cli) @ camel-example-spring
>>>
> [INFO] 
> [INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @ camel-example-spring
---
> [INFO] 
> [INFO] --- maven-remote-resources-plugin:1.4:process (default) @ camel-example-spring
---
> [INFO] 
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ camel-example-spring
---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 5 resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-resources-plugin:2.6:resources (default) @ camel-example-spring ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 5 resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ camel-example-spring
---
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ camel-example-spring
---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /Users/bvahdat/dev/workspace/camel/examples/camel-example-spring/src/test/resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ camel-example-spring
---
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] <<< camel-maven-plugin:2.13-SNAPSHOT:embedded (default-cli) @ camel-example-spring
<<<
> [INFO] 
> [INFO] --- camel-maven-plugin:2.13-SNAPSHOT:embedded (default-cli) @ camel-example-spring
---
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.420s
> [INFO] Finished at: Mon Dec 02 12:19:20 CET 2013
> [INFO] Final Memory: 23M/982M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.camel:camel-maven-plugin:2.13-SNAPSHOT:embedded
(default-cli) on project camel-example-spring: Failed: org.apache.maven.plugin.MojoExecutionException:
Failed: java.lang.NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.camel:camel-maven-plugin:2.13-SNAPSHOT:embedded
(default-cli) on project camel-example-spring: Failed: org.apache.maven.plugin.MojoExecutionException:
Failed: java.lang.NullPointerException
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Failed: org.apache.maven.plugin.MojoExecutionException:
Failed: java.lang.NullPointerException
> 	at org.apache.camel.maven.EmbeddedMojo.execute(EmbeddedMojo.java:117)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> 	... 19 more
> Caused by: org.apache.maven.plugin.MojoExecutionException: Failed: java.lang.NullPointerException
> 	at org.apache.camel.maven.EmbeddedMojo.runCamel(EmbeddedMojo.java:226)
> 	at org.apache.camel.maven.EmbeddedMojo.executeWithoutWrapping(EmbeddedMojo.java:127)
> 	at org.apache.camel.maven.EmbeddedMojo.execute(EmbeddedMojo.java:115)
> 	... 21 more
> Caused by: java.lang.NullPointerException
> 	at org.apache.camel.main.MainSupport$5.doProcess(MainSupport.java:122)
> 	at org.apache.camel.main.MainSupport$ParameterOption.doProcess(MainSupport.java:532)
> 	at org.apache.camel.main.MainSupport$Option.processOption(MainSupport.java:492)
> 	at org.apache.camel.main.MainSupport.parseArguments(MainSupport.java:227)
> 	at org.apache.camel.main.MainSupport.run(MainSupport.java:351)
> 	at org.apache.camel.spring.Main.main(Main.java:73)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.apache.camel.maven.EmbeddedMojo.runCamel(EmbeddedMojo.java:223)
> 	... 23 more
> [ERROR] 
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the
following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> 2013-12-02 12:19:20,786 [Thread-1       ] INFO  MainSupport$HangupInterceptor  - Received
hang up - stopping the main instance.
> 2013-12-02 12:19:20,788 [Thread-1       ] INFO  MainSupport                    - Apache
Camel 2.13-SNAPSHOT stopping
> ~/dev/workspace/camel/examples/camel-example-spring>
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message