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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.16.0
    • Fix Version/s: 2.16.1, 2.17.0
    • Component/s: tooling
    • Labels:
      None
    • Estimated Complexity:
      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

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              antonin.stefanutti Antonin Stefanutti
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: