1 Reply Latest reply on Jan 17, 2013 11:10 AM by Claus Ibsen

    ClassCastException - While we enter some special characters in the tab.

    Ashok Kanthan Newbie

      Hi,

       

      The error facing here is, once we enter some special characters in the tab we are getting this exception. The error message is given below.

       

      04:17:29,658 | ERROR | qtp17758008-316 | DefaultErrorHandler              | rg.apache.camel.processor.Logger 249 | 68 - org.apache.camel.camel-core - 2.6.

      0. fuse-00-00 | Failed delivery for exchangeId: ID-vzsjcsebq01-47609-1356087613537-8-123. Exhausted after delivery attempt: 1 caught: java.lang.ClassCastExce

      ption: org.apache.camel.converter.stream.InputStreamCache cannot be cast to org.w3c.dom.Node

      java.lang.ClassCastException: org.apache.camel.converter.stream.InputStreamCache cannot be cast to org.w3c.dom.Node

      BodyType:org.apache.camel.converter.stream.InputStreamCache, Body:, Out: null]

      04:17:29,658 | ERROR | qtp17758008-316  | DefaultErrorHandler              | rg.apache.camel.processor.Logger  249 | 68 - org.apache.camel.camel-core - 2.6.

      0.fuse-00-00 | Failed delivery for exchangeId: ID-vzsjcsebq01-47609-1356087613537-8-123. Exhausted after delivery attempt: 1 caught: java.lang.ClassCastExce

      ption: org.apache.camel.converter.stream.InputStreamCache cannot be cast to org.w3c.dom.Node

      java.lang.ClassCastException: org.apache.camel.converter.stream.InputStreamCache cannot be cast to org.w3c.dom.Node

      at com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:154)[:]

              at com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:136)[:]

              at com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:218)[:]

              at org.apache.camel.builder.xml.XPathBuilder.doInEvaluateAs(XPathBuilder.java:657)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:629)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.builder.xml.XPathBuilder.matches(XPathBuilder.java:126)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:65)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:53)[68:org.apache.camel.camel-core:2.6.0.fu

      se-00-00]

              at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)[68:org.apache.camel.camel-core:2.6.0.fuse-

      00-00]

              at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.Pipeline.process(Pipeline.java:125)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

              at org.apache.camel.component.jetty.CamelContinuationServlet.service(CamelContinuationServlet.java:103)[202:org.apache.camel.camel-jetty:2.6.0.fuse-

      00-00]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[136:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0]

              at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)[146:org.eclipse.jetty.servlet:7.2.2.v20101205]

              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1351)[146:org.eclipse.jetty.servlet:7.2.2.v20101205]

              at org.eclipse.jetty.servlets.MultiPartFilter.doFilter(MultiPartFilter.java:97)[147:org.eclipse.jetty.servlets:7.2.2.v20101205]

              at org.apache.camel.component.jetty.CamelMultipartFilter.doFilter(CamelMultipartFilter.java:41)[202:org.apache.camel.camel-jetty:2.6.0.fuse-00-00]

              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)[146:org.eclipse.jetty.servlet:7.2.2.v20101205]

              at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)[146:org.eclipse.jetty.servlet:7.2.2.v20101205]

              at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)[144:org.eclipse.jetty.server:7.2.2.v20101205]

              at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)[146:org.eclipse.jetty.servlet:7.2.2.v20101205]

              at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)[144:org.eclipse.jetty.server:7.2.2.v20101205]

              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[144:org.eclipse.jetty.server:7.2.2.v20101205]

              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)[144:org.eclipse.jetty.server:7.2.2.v20101205]

              at org.eclipse.jetty.server.Server.handle(Server.java:352)[144:org.eclipse.jetty.server:7.2.2.v20101205]

              at org.eclipse.jetty.server.HttpConnection.handleReqhandleRequest(HttpConnection.java:596)[144:org.eclipse.jetty.server:7.2.2.v20101205]

              at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068)[144:org.eclipse.jetty.server:7.2.2.v20101205]

       

      Friends plz help me out to get rid of this error.

       

      Thanks

      Ashok