Camel:run failed to run in JBoss Fuse 6.3

Solution Verified - Updated -

Issue

In JBoss Fuse 6.2, if the project is built in blueprint dsl, we can use camel-maven-plugin to run it locally.
mvn clean install camel:run

However, in 6.3 it doesn't seem to work.

camel-maven-plugin 630310 ->

[ERROR] *************************************
[ERROR] Error occurred while running main from: org.apache.camel.test.blueprint.Main
[ERROR] 
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:458)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Gave up waiting for service (objectClass=org.apache.camel.CamelContext)
        at org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:320)
        at org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:281)
        at org.apache.camel.test.blueprint.Main.doStart(Main.java:111)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at org.apache.camel.main.MainSupport.run(MainSupport.java:138)
        at org.apache.camel.main.MainSupport.run(MainSupport.java:390)
        at org.apache.camel.test.blueprint.Main.main(Main.java:82)
        ... 6 more
[ERROR] *************************************

camel-maven-plugin 630329 ->

In main loop, we have serious trouble: java.lang.NullPointerException                                                 
java.lang.NullPointerException                             
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:307)                      
In main loop, we have serious trouble: java.lang.NullPointerException                                                 
java.lang.NullPointerException                             
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:307)                      

Environment

Red Hat Fuse 6.3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.