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

Missing dependencies in camel-undertow feature

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.0
    • jboss-fuse-6.3
    • Camel, Karaf
    • % %
    • Hide

      Install and start bundle with route like:

       <route>
              <from uri="direct:start"/>
              <to uri="undertow:http://www.google.com"/>
              </route>
      
      Show
      Install and start bundle with route like: <route> <from uri= "direct:start" /> <to uri= "undertow:http: //www.google.com" /> </route>
    • 7.0 Sprint 14

      When I am using camel-undertow component and install bundle with simple route like

          <route>
              <from uri="direct:start"/>
              <to uri="undertow:http://www.google.com"/>
              </route>
      

      I get

      Exception in thread "SpringOsgiExtenderThread-2" java.lang.NoClassDefFoundError: org/jboss/logging/BasicLogger
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
      
                         ....
      
      Caused by: java.lang.ClassNotFoundException: org.jboss.logging.BasicLogger not found by wrap_mvn_org.jboss.xnio_xnio-api_3.3.6.Final [292]
      	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1556)
      	at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:77)
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1993)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 68 more
      

      This error can be fixed by installing org.jboss.logging/jboss-logging/3.3.0.Final but then I get following:

      Exception in thread "SpringOsgiExtenderThread-2" org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: Endpoint[http://www.google.com]. Reason: java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found
      	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:444)
      	at org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:160)
      	at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:243)
      
                      .....
      
      Caused by: java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found
      	at org.xnio.Xnio.doGetInstance(Xnio.java:255)
      	at org.xnio.Xnio.getInstance(Xnio.java:198)
      	at org.apache.camel.component.undertow.UndertowProducer.doStart(UndertowProducer.java:130)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3275)
      	at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1243)
      	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1204)
      	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:442)
      	... 54 more
      

      I think it should be installed also org.jboss.xnio/xnio-nio or something else which register XnioProvider implementation. After that I install org.jboss.xnio/xnio-nio/3.3.6.Final as a fragment of org.jboss.xnio/xnio-api the exception stops occurred.

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

                Created:
                Updated:
                Resolved: