Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9321

Blueprint example and archetype does not work when executed with camel:run

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.16.0
    • 2.16.1, 2.17.0
    • tooling
    • None
    • Unknown

    Description

      When running mvn camel:run in the camel-example-sql-blueprint module or in a generate project with the camel-archetype-blueprint Maven archetype, the following error occurs:

      [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:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:455)
      	at java.lang.Thread.run(Thread.java:745)
      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:265)
      	at org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:226)
      	at org.apache.camel.test.blueprint.Main.doStart(Main.java:107)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.main.MainSupport.run(MainSupport.java:124)
      	at org.apache.camel.main.MainSupport.run(MainSupport.java:353)
      	at org.apache.camel.test.blueprint.Main.main(Main.java:81)
      	... 6 more
      [ERROR] *************************************
      

      This is due to a missing dependency on org.apache.aries.blueprint.core.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            antonin.stefanutti Antonin Stefanutti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: