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

camel websocket - java.lang.ClassCastException: org.eclipse.jetty.util.DecoratedObjectFactory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.0
    • fuse-7.0
    • FIS-Camel, FIS-Karaf
    • None
    • % %
    • Fuse 7.0 Sprint 27

      Error:

      2018-03-28 14:48:08,455 | ERROR |  Event Dispatcher: 1 | o.a.c.b.BlueprintCamelContext    | 113 - org.apache.camel.camel-blueprint - 2.21.0.fuse-000055-redhat-2 | Error occurred during starting CamelContext: fabric-camel-demo
      java.lang.RuntimeException: javax.servlet.ServletException: java.lang.ClassCastException: org.eclipse.jetty.util.DecoratedObjectFactory cannot be cast to org.eclipse.jetty.util.DecoratedObjectFactory
      	at org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1600) ~[?:?]
      	at org.eclipse.jetty.servlet.ServletHandler.setServletMappings(ServletHandler.java:1684) ~[?:?]
      	at org.eclipse.jetty.servlet.ServletHandler.addServletWithMapping(ServletHandler.java:1027) ~[?:?]
      	at org.eclipse.jetty.servlet.ServletContextHandler.addServlet(ServletContextHandler.java:437) ~[?:?]
      	at org.apache.camel.component.websocket.WebsocketComponent.createServlet(WebsocketComponent.java:457) ~[?:?]
      	at org.apache.camel.component.websocket.WebsocketComponent.addServlet(WebsocketComponent.java:439) ~[?:?]
      	at org.apache.camel.component.websocket.WebsocketComponent.connect(WebsocketComponent.java:214) ~[?:?]
      	at org.apache.camel.component.websocket.WebsocketEndpoint.connect(WebsocketEndpoint.java:123) ~[?:?]
      	at org.apache.camel.component.websocket.WebsocketProducer.doStart(WebsocketProducer.java:84) ~[?:?]
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[114:org.apache.camel.camel-core:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) ~[114:org.apache.camel.camel-core:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.impl.DeferServiceStartupListener.onCamelContextStarted(DeferServiceStartupListener.java:49) ~[114:org.apache.camel.camel-core:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3861) ~[114:org.apache.camel.camel-core:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3640) ~[114:org.apache.camel.camel-core:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3492) ~[114:org.apache.camel.camel-core:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:209) ~[114:org.apache.camel.camel-core:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3251) ~[114:org.apache.camel.camel-core:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3247) ~[114:org.apache.camel.camel-core:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3270) ~[114:org.apache.camel.camel-core:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3247) ~[114:org.apache.camel.camel-core:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[114:org.apache.camel.camel-core:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3163) ~[114:org.apache.camel.camel-core:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:243) ~[113:org.apache.camel.camel-blueprint:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:283) ~[113:org.apache.camel.camel-blueprint:2.21.0.fuse-000055-redhat-2]
      	at org.apache.camel.blueprint.BlueprintCamelContext.blueprintEvent(BlueprintCamelContext.java:177) [113:org.apache.camel.camel-blueprint:2.21.0.fuse-000055-redhat-2]
      	at org.apache.aries.blueprint.container.BlueprintEventDispatcher$3.call(BlueprintEventDispatcher.java:190) [16:org.apache.aries.blueprint.core:1.9.0]
      	at org.apache.aries.blueprint.container.BlueprintEventDispatcher$3.call(BlueprintEventDispatcher.java:188) [16:org.apache.aries.blueprint.core:1.9.0]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
      	at java.lang.Thread.run(Thread.java:748) [?:?]
      Caused by: javax.servlet.ServletException: java.lang.ClassCastException: org.eclipse.jetty.util.DecoratedObjectFactory cannot be cast to org.eclipse.jetty.util.DecoratedObjectFactory
      	at org.eclipse.jetty.websocket.servlet.WebSocketServlet.init(WebSocketServlet.java:148) ~[?:?]
      	at javax.servlet.GenericServlet.init(GenericServlet.java:244) ~[?:?]
      	at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:643) ~[?:?]
      	at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:422) ~[?:?]
      	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:892) ~[?:?]
      	at org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1596) ~[?:?]
      	... 36 more
      Caused by: java.lang.ClassCastException: org.eclipse.jetty.util.DecoratedObjectFactory cannot be cast to org.eclipse.jetty.util.DecoratedObjectFactory
      	at org.eclipse.jetty.websocket.server.WebSocketServerFactory.doStart(WebSocketServerFactory.java:310) ~[?:?]
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[?:?]
      	at org.eclipse.jetty.websocket.servlet.WebSocketServlet.init(WebSocketServlet.java:142) ~[?:?]
      	at javax.servlet.GenericServlet.init(GenericServlet.java:244) ~[?:?]
      	at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:643) ~[?:?]
      	at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:422) ~[?:?]
      	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:892) ~[?:?]
      	at org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1596) ~[?:?]
      	... 36 more
      

              Unassigned Unassigned
              llowinge@redhat.com Lukas Lowinger
              Lukas Lowinger Lukas Lowinger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: