camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanjbh <san...@gmail.com>
Subject Re: Getting ClassCastException in Camel route while handling response containing java.util.List
Date Thu, 02 Jan 2014 11:52:54 GMT
Hi,

 Here goes the full stack trace.

[              qtp1924936723-17] BooksQueryResult               INFO
 Exchange[ExchangePattern: InOut, BodyType: java.util.ArrayList, Body:
[org.test.cxfws.domain.Book@743479ce, org.test.cxfws.domain.Book@2128fefc,
org.test.cxfws.domain.Book@a7c6366, org.test.cxfws.domain.Book@6c61c2ea,
org.test.cxfws.domain.Book@643c83d]]
[              qtp1924936723-17] outboundSoapResponse           INFO
 Exchange[ExchangePattern: InOut, BodyType: java.util.ArrayList, Body:
[org.test.cxfws.domain.Book@743479ce, org.test.cxfws.domain.Book@2128fefc,
org.test.cxfws.domain.Book@a7c6366, org.test.cxfws.domain.Book@6c61c2ea,
org.test.cxfws.domain.Book@643c83d]]
[              qtp1924936723-17] PhaseInterceptorChain          WARN
 Interceptor for {
http://service.cxfws.test.org/}BookDBServiceService#{http://service.cxfws.test.org/}getBookshas
thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: org.test.cxfws.domain.Book cannot be cast
to java.util.List
at
org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage(WrapperClassOutInterceptor.java:117)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at
org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at
org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:242)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355)
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:319)
at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:193)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handleAsync(Server.java:410)
at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:502)
at
org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassCastException: org.test.cxfws.domain.Book cannot
be cast to java.util.List
at
org.test.cxfws.service.jaxws_asm.GetBooksResponse_WrapperTypeHelper1.createWrapperObject(Unknown
Source)
at
org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage(WrapperClassOutInterceptor.java:101)
... 25 more

Thanks.


On Thu, Jan 2, 2014 at 2:31 PM, hekonsek [via Camel] <
ml-node+s465427n5745424h96@n5.nabble.com> wrote:

> Hi,
>
> > Can someone help me to understand why the ClassCastException.
>
> Please send us the full stack trace you get.
>
> Cheers.
>
> --
> Henryk Konsek
> http://henryk-konsek.blogspot.com
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Getting-ClassCastException-in-Camel-route-while-handling-response-containing-java-util-List-tp5745393p5745424.html
>  To unsubscribe from Getting ClassCastException in Camel route while
> handling response containing java.util.List, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5745393&code=c2FuamJoQGdtYWlsLmNvbXw1NzQ1MzkzfDYzNjc2NTg1MQ==>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Getting-ClassCastException-in-Camel-route-while-handling-response-containing-java-util-List-tp5745393p5745431.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message