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

After install camel-script-jruby feature ruby scripting language does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.3
    • jboss-fuse-6.3
    • Camel
    • None
    • % %
    • Hide

      1) Build attached reproducer
      2) run jboss-fuse
      3) features:install camel-script-jruby
      4) install -s mvn:org.jboss.qe.camel.architecture.scriptinglanguages.ruby/jruby-reproducer/1.0-SNAPSHOT
      Now you will get exception described above.

      5) stop jboss-fuse and start it with bin/fuse clean
      6) features:install camel-script-jruby
      7) update 294 (update org.jruby/jruby-complete/1.7.18)
      8) install -s mvn:org.jboss.qe.camel.architecture.scriptinglanguages.ruby/jruby-reproducer/1.0-SNAPSHOT

      Now it should be deployed successfully.

      Show
      1) Build attached reproducer 2) run jboss-fuse 3) features:install camel-script-jruby 4) install -s mvn:org.jboss.qe.camel.architecture.scriptinglanguages.ruby/jruby-reproducer/1.0-SNAPSHOT Now you will get exception described above. 5) stop jboss-fuse and start it with bin/fuse clean 6) features:install camel-script-jruby 7) update 294 (update org.jruby/jruby-complete/1.7.18) 8) install -s mvn:org.jboss.qe.camel.architecture.scriptinglanguages.ruby/jruby-reproducer/1.0-SNAPSHOT Now it should be deployed successfully.
    • Sprint 5 - towards ER2

      After I install camel-script-jruby feature on jboss-fuse and deploy a test bundle with uses Ruby language I got

      Exception in thread "SpringOsgiExtenderThread-2" org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route helloRoute at: >>> Transform[ruby{'Hello ' + $request.body + '!'}] <<< in route: Route(helloRoute)[[From[direct:rubyTransform]] -> [Transform... because of (LoadError) no such file to load -- jruby/java
      	at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1642)
      	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:138)
      	at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:340)
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)
      	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
      	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:950)
      	at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
      	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
      	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
      	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
      	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route helloRoute at: >>> Transform[ruby{'Hello ' + $request.body + '!'}] <<< in route: Route(helloRoute)[[From[direct:rubyTransform]] -> [Transform... because of (LoadError) no such file to load -- jruby/java
      	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1072)
      	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:196)
      	at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:947)
      	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:3258)
      	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2981)
      	at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:175)
      	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2812)
      	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2808)
      	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2831)
      	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2808)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2777)
      	at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:270)
      	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:136)
      	... 10 more
      Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- jruby/java
      

      But when I update the bundle org.jruby/jruby-complete/1.7.18 which is contained in camel-script-jruby feature before I deploy the test bundle all works fine.

            acosenti Andrea Cosentino
            jbouska@redhat.com Jan Bouska
            Jan Bouska Jan Bouska
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: