Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5793

camel-example-sql-blueprint fails when run with README supplied mvn camel:run

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1, jboss-fuse-6.2-patches
    • Aries, Camel, Examples
    • None
    • % %
    • Hide

      unzip -q jboss-fuse-full-6.2.1.redhat-107.zip
      cd jboss-fuse-full-6.2.1.redhat-107/extras
      unzip -q apache-camel-2.15.1.redhat-621107.zip
      cd examples/camel-example-sql-blueprint
      mvn clean install camel:run

      Show
      unzip -q jboss-fuse-full-6.2.1.redhat-107.zip cd jboss-fuse-full-6.2.1.redhat-107/extras unzip -q apache-camel-2.15.1.redhat-621107.zip cd examples/camel-example-sql-blueprint mvn clean install camel:run

      With a clean install of 6.2.1 GA or R2 if you extract the extras/apache-camel go to the examples/camel-example-sql-blueprint directory and follow the instructions in the README to utilize 'mvn camel:run' to run the sample it will hang and eventually timeout with:

      [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:497)
      at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:488)
      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:299)
      at org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:260)
      at org.apache.camel.test.blueprint.Main.doStart(Main.java:114)
      at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      at org.apache.camel.main.MainSupport.run(MainSupport.java:150)
      at org.apache.camel.main.MainSupport.run(MainSupport.java:354)
      at org.apache.camel.test.blueprint.Main.main(Main.java:83)
      ... 6 more
      [ERROR] *************************************

      NOTE however that following the README instructions to install and run it within the Karaf container make it run successfully.

            janstey@redhat.com Jonathan Anstey
            rhn-support-rkieley Roderick Kieley
            Jan Kasztura Jan Kasztura (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: