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

With camel-ahc-ws component exception received is java.lang.IllegalStateException: Unknown protocol: wss

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • Camel
    • % %
    • Hide
      • Unzip file TestAHC-WSS.zip.
      • Build it using command `mvn clean install`.
      • Run blueprint.xml directly from IDE or using command ` mvn camel:run`, it executes without any issue.
      • Now deploy to JBoss Fuse 6.2.1
        features:install camel-ahc
        features:install camel-ahc-ws 
        osgi:install -s mvn:com.mycompany/ahc-wss/1.0.0-SNAPSHOT
        
      • In fuse.log, we get error
        07:54:41,901 | ERROR | endpoint-connect | WsEndpoint                       | 267 - org.apache.camel.camel-ahc-ws - 2.15.1.redhat-621084 | Failed to connect
        java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: wss
        	at com.ning.http.client.ListenableFuture$CompletedFailure.<init>(ListenableFuture.java:91)[265:com.ning.async-http-client:1.9.17]
        	at com.ning.http.client.providers.jdk.JDKAsyncHttpProvider.execute(JDKAsyncHttpProvider.java:121)[265:com.ning.async-http-client:1.9.17]
        	at com.ning.http.client.AsyncHttpClient.executeRequest(AsyncHttpClient.java:486)[265:com.ning.async-http-client:1.9.17]
        	at com.ning.http.client.AsyncHttpClient$BoundRequestBuilder.execute(AsyncHttpClient.java:225)[265:com.ning.async-http-client:1.9.17]
        	at org.apache.camel.component.ahc.ws.WsEndpoint.connect(WsEndpoint.java:127)[267:org.apache.camel.camel-ahc-ws:2.15.1.redhat-621084]
        	at org.apache.camel.component.ahc.ws.WsEndpoint.getWebSocket(WsEndpoint.java:87)[267:org.apache.camel.camel-ahc-ws:2.15.1.redhat-621084]
        	at org.apache.camel.component.ahc.ws.WsProducer.getWebSocket(WsProducer.java:136)[267:org.apache.camel.camel-ahc-ws:2.15.1.redhat-621084]
        	at org.apache.camel.component.ahc.ws.WsProducer.process(WsProducer.java:52)[267:org.apache.camel.camel-ahc-ws:2.15.1.redhat-621084]
        	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:139)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:165)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:73)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
        	at java.util.TimerThread.mainLoop(Timer.java:555)[:1.7.0_99]
        	at java.util.TimerThread.run(Timer.java:505)[:1.7.0_99]
        
      Show
      Unzip file TestAHC-WSS.zip. Build it using command `mvn clean install`. Run blueprint.xml directly from IDE or using command ` mvn camel:run`, it executes without any issue. Now deploy to JBoss Fuse 6.2.1 features:install camel-ahc features:install camel-ahc-ws osgi:install -s mvn:com.mycompany/ahc-wss/1.0.0-SNAPSHOT In fuse.log, we get error 07:54:41,901 | ERROR | endpoint-connect | WsEndpoint | 267 - org.apache.camel.camel-ahc-ws - 2.15.1.redhat-621084 | Failed to connect java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: wss at com.ning.http.client.ListenableFuture$CompletedFailure.<init>(ListenableFuture.java:91)[265:com.ning.async-http-client:1.9.17] at com.ning.http.client.providers.jdk.JDKAsyncHttpProvider.execute(JDKAsyncHttpProvider.java:121)[265:com.ning.async-http-client:1.9.17] at com.ning.http.client.AsyncHttpClient.executeRequest(AsyncHttpClient.java:486)[265:com.ning.async-http-client:1.9.17] at com.ning.http.client.AsyncHttpClient$BoundRequestBuilder.execute(AsyncHttpClient.java:225)[265:com.ning.async-http-client:1.9.17] at org.apache.camel.component.ahc.ws.WsEndpoint.connect(WsEndpoint.java:127)[267:org.apache.camel.camel-ahc-ws:2.15.1.redhat-621084] at org.apache.camel.component.ahc.ws.WsEndpoint.getWebSocket(WsEndpoint.java:87)[267:org.apache.camel.camel-ahc-ws:2.15.1.redhat-621084] at org.apache.camel.component.ahc.ws.WsProducer.getWebSocket(WsProducer.java:136)[267:org.apache.camel.camel-ahc-ws:2.15.1.redhat-621084] at org.apache.camel.component.ahc.ws.WsProducer.process(WsProducer.java:52)[267:org.apache.camel.camel-ahc-ws:2.15.1.redhat-621084] at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[198:org.apache.camel.camel-core:2.15.1.redhat-621084] at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:139)[198:org.apache.camel.camel-core:2.15.1.redhat-621084] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[198:org.apache.camel.camel-core:2.15.1.redhat-621084] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[198:org.apache.camel.camel-core:2.15.1.redhat-621084] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[198:org.apache.camel.camel-core:2.15.1.redhat-621084] at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[198:org.apache.camel.camel-core:2.15.1.redhat-621084] at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[198:org.apache.camel.camel-core:2.15.1.redhat-621084] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[198:org.apache.camel.camel-core:2.15.1.redhat-621084] at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:165)[198:org.apache.camel.camel-core:2.15.1.redhat-621084] at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:73)[198:org.apache.camel.camel-core:2.15.1.redhat-621084] at java.util.TimerThread.mainLoop(Timer.java:555)[:1.7.0_99] at java.util.TimerThread.run(Timer.java:505)[:1.7.0_99]
    • Sprint 7 - towards CR2

    Description

      • When we run blueprint directly from IDE, It seems to work(atleast doesn't throw errot: Unknown protocl: wss).
      • When deployed to Fuse we get exception
        Caused by: java.lang.IllegalStateException: Unknown protocol: wss
        	at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)[org.apache.felix.framework-4.4.1.jar:]
        	at java.net.URL.<init>(URL.java:625)[:1.7.0_99]
        

      Attachments

        Activity

          People

            janstey@redhat.com Jonathan Anstey
            rhn-support-cpandey Chandra Shekhar Pandey (Inactive)
            Petr Pecka Petr Pecka
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: