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

camel-undertow: Unknown scheme in URI

XMLWordPrintable

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

      See more in attached reproducer:

      1. build attached reproducer
      2. install feature camel-undertow
      3. install reproducer and start it
      4. see fuse log:
        2017-07-26 09:45:17,301 | ERROR | #3 - timer://foo | DefaultErrorHandler              | 51 - org.apache.camel.camel-core - 2.20.0.fuse-000052 | Failed delivery for (MessageId: ID-jbouska-ThinkPad-W541-1501054861708-2-2 on ExchangeId: ID-jbouska-ThinkPad-W541-1501054861708-2-1). Exhausted after delivery attempt: 1 caught: java.lang.IllegalArgumentException: UT001031: Unknown scheme in URI http://localhost:8010/test
        
        Message History
        ---------------------------------------------------------------------------------------------------------------------------------------
        RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
        [route12           ] [route12           ] [timer://foo?fixedRate=true&period=60000                                       ] [         2]
        [route12           ] [to14              ] [direct:start                                                                  ] [         0]
        [route11           ] [to13              ] [undertow:http://localhost:8010/test                                           ] [         2]
        
        Stacktrace
        ---------------------------------------------------------------------------------------------------------------------------------------
        java.lang.IllegalArgumentException: UT001031: Unknown scheme in URI http://localhost:8010/test
        	at io.undertow.client.UndertowClient.getClientProvider(UndertowClient.java:163) [26:io.undertow.core:1.4.18.Final]
        	at io.undertow.client.UndertowClient.connect(UndertowClient.java:132) [26:io.undertow.core:1.4.18.Final]
        	at org.apache.camel.component.undertow.UndertowProducer.process(UndertowProducer.java:152) [63:org.apache.camel.camel-undertow:2.20.0.fuse-000052]
        	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at java.util.TimerThread.mainLoop(Timer.java:555) [?:?]
        	at java.util.TimerThread.run(Timer.java:505) [?:?]
        2017-07-26 09:45:17,302 | WARN  | #3 - timer://foo | TimerConsumer                    | 51 - org.apache.camel.camel-core - 2.20.0.fuse-000052 | Error processing exchange. Exchange[ID-jbouska-ThinkPad-W541-1501054861708-2-1]. Caused by: [java.lang.IllegalArgumentException - UT001031: Unknown scheme in URI http://localhost:8010/test]
        java.lang.IllegalArgumentException: UT001031: Unknown scheme in URI http://localhost:8010/test
        	at io.undertow.client.UndertowClient.getClientProvider(UndertowClient.java:163) [26:io.undertow.core:1.4.18.Final]
        	at io.undertow.client.UndertowClient.connect(UndertowClient.java:132) [26:io.undertow.core:1.4.18.Final]
        	at org.apache.camel.component.undertow.UndertowProducer.process(UndertowProducer.java:152) [63:org.apache.camel.camel-undertow:2.20.0.fuse-000052]
        	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
        	at java.util.TimerThread.mainLoop(Timer.java:555) [?:?]
        	at java.util.TimerThread.run(Timer.java:505) [?:?]
        
      Show
      See more in attached reproducer: build attached reproducer install feature camel-undertow install reproducer and start it see fuse log: 2017-07-26 09:45:17,301 | ERROR | #3 - timer: //foo | DefaultErrorHandler | 51 - org.apache.camel.camel-core - 2.20.0.fuse-000052 | Failed delivery for (MessageId: ID-jbouska-ThinkPad-W541-1501054861708-2-2 on ExchangeId: ID-jbouska-ThinkPad-W541-1501054861708-2-1). Exhausted after delivery attempt: 1 caught: java.lang.IllegalArgumentException: UT001031: Unknown scheme in URI http://localhost:8010/test Message History --------------------------------------------------------------------------------------------------------------------------------------- RouteId ProcessorId Processor Elapsed (ms) [route12 ] [route12 ] [timer: //foo?fixedRate= true &period=60000 ] [ 2] [route12 ] [to14 ] [direct:start ] [ 0] [route11 ] [to13 ] [undertow:http: //localhost:8010/test ] [ 2] Stacktrace --------------------------------------------------------------------------------------------------------------------------------------- java.lang.IllegalArgumentException: UT001031: Unknown scheme in URI http: //localhost:8010/test at io.undertow.client.UndertowClient.getClientProvider(UndertowClient.java:163) [26:io.undertow.core:1.4.18.Final] at io.undertow.client.UndertowClient.connect(UndertowClient.java:132) [26:io.undertow.core:1.4.18.Final] at org.apache.camel.component.undertow.UndertowProducer.process(UndertowProducer.java:152) [63:org.apache.camel.camel-undertow:2.20.0.fuse-000052] at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at java.util.TimerThread.mainLoop(Timer.java:555) [?:?] at java.util.TimerThread.run(Timer.java:505) [?:?] 2017-07-26 09:45:17,302 | WARN | #3 - timer: //foo | TimerConsumer | 51 - org.apache.camel.camel-core - 2.20.0.fuse-000052 | Error processing exchange. Exchange[ID-jbouska-ThinkPad-W541-1501054861708-2-1]. Caused by: [java.lang.IllegalArgumentException - UT001031: Unknown scheme in URI http://localhost:8010/test] java.lang.IllegalArgumentException: UT001031: Unknown scheme in URI http: //localhost:8010/test at io.undertow.client.UndertowClient.getClientProvider(UndertowClient.java:163) [26:io.undertow.core:1.4.18.Final] at io.undertow.client.UndertowClient.connect(UndertowClient.java:132) [26:io.undertow.core:1.4.18.Final] at org.apache.camel.component.undertow.UndertowProducer.process(UndertowProducer.java:152) [63:org.apache.camel.camel-undertow:2.20.0.fuse-000052] at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79) [51:org.apache.camel.camel-core:2.20.0.fuse-000052] at java.util.TimerThread.mainLoop(Timer.java:555) [?:?] at java.util.TimerThread.run(Timer.java:505) [?:?]
    • 7.0 Sprint 15

      When I want to use camel-undertow I get following exception:

      java.lang.IllegalArgumentException: UT001031: Unknown scheme in URI http://localhost:8010/test
      	at io.undertow.client.UndertowClient.getClientProvider(UndertowClient.java:163) [26:io.undertow.core:1.4.18.Final]
      	at io.undertow.client.UndertowClient.connect(UndertowClient.java:132) [26:io.undertow.core:1.4.18.Final]
      	at org.apache.camel.component.undertow.UndertowProducer.process(UndertowProducer.java:152) [63:org.apache.camel.camel-undertow:2.20.0.fuse-000052]
      	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
      	at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
      	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
      	at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
      	at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79) [51:org.apache.camel.camel-core:2.20.0.fuse-000052]
      	at java.util.TimerThread.mainLoop(Timer.java:555) [?:?]
      	at java.util.TimerThread.run(Timer.java:505) [?:?]
      

      My route:

      <route>
      	<from uri="direct:start"/>
      	<to uri="undertow:http://localhost:8010/test"/>
      </route>
      

      I think that the problem is in loading ClientProviders. See UndertowClient#getClientProvider - clientProviders.size() is 0 when the method is invoked.

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

                Created:
                Updated:
                Resolved: