Results 1 to 2 of 2

Thread: hello friends

  1. #1
    ms987654321 is offline Member
    Join Date
    Jul 2008
    Posts
    3
    Rep Power
    0

    Default ClassCastException in JETTISON PARSER

    the problem i faced tend me to join this forum.
    the question was to convert a XML file to JsonObject badgerFish convention using Jettison Package the problem is listed down under
    I am using spring as a framework

    ERROR STDERR - Jul 18, 2008 12:47:44 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
    INFO: Interceptor has thrown exception, unwinding now
    java.lang.ClassCastException: java.lang.Long
    at org.codehaus.jettison.mapped.MappedXMLStreamWriter .writeStartElement(MappedXMLStreamWriter.java:255)
    at org.apache.cxf.aegis.xml.stax.ElementWriter.writeS tartElement(ElementWriter.java:121)
    at org.apache.cxf.aegis.xml.stax.ElementWriter.<init> (ElementWriter.java:72)
    at org.apache.cxf.aegis.xml.stax.ElementWriter.getEle mentWriter(ElementWriter.java:157)
    at org.apache.cxf.aegis.type.basic.BeanType.getWriter (BeanType.java:380)
    at org.apache.cxf.aegis.type.basic.BeanType.writeObje ctInternal(BeanType.java:350)
    at org.apache.cxf.aegis.type.basic.BeanType.writeObje ct(BeanType.java:291)
    at org.apache.cxf.aegis.type.basic.ArrayType.writeVal ue(ArrayType.java:267)
    at org.apache.cxf.aegis.type.collection.CollectionTyp e.writeObject(CollectionType.java:104)
    at org.apache.cxf.aegis.type.basic.BeanType.writeObje ctInternal(BeanType.java:357)
    at org.apache.cxf.aegis.type.basic.BeanType.writeObje ct(BeanType.java:291)
    at org.apache.cxf.aegis.type.basic.BeanType.writeObje ctInternal(BeanType.java:357)
    at org.apache.cxf.aegis.type.basic.BeanType.writeObje ct(BeanType.java:291)
    at org.apache.cxf.aegis.databinding.XMLStreamDataWrit er.write(XMLStreamDataWriter.java:109)
    at org.apache.cxf.aegis.databinding.XMLStreamDataWrit er.write(XMLStreamDataWriter.java:45)
    at org.apache.cxf.interceptor.AbstractOutDatabindingI nterceptor.writeParts(AbstractOutDatabindingInterc eptor.java:93)
    at org.apache.cxf.interceptor.BareOutInterceptor.hand leMessage(BareOutInterceptor.java:68)
    at org.apache.cxf.binding.xml.interceptor.XMLMessageO utInterceptor.handleMessage(XMLMessageOutIntercept or.java:71)
    at org.apache.cxf.phase.PhaseInterceptorChain.doInter cept(PhaseInterceptorChain.java:208)
    at org.apache.cxf.interceptor.OutgoingChainIntercepto r.handleMessage(OutgoingChainInterceptor.java:74)
    at org.apache.cxf.phase.PhaseInterceptorChain.doInter cept(PhaseInterceptorChain.java:208)
    at org.apache.cxf.transport.ChainInitiationObserver.o nMessage(ChainInitiationObserver.java:77)
    at org.apache.cxf.transport.servlet.ServletDestinatio n.doMessage(ServletDestination.java:79)
    at org.apache.cxf.transport.servlet.ServletController .invokeDestination(ServletController.java:264)
    at org.apache.cxf.transport.servlet.ServletController .invoke(ServletController.java:123)
    at org.apache.cxf.transport.servlet.AbstractCXFServle t.invoke(AbstractCXFServlet.java:170)
    at org.apache.cxf.transport.servlet.AbstractCXFServle t.doGet(AbstractCXFServlet.java:152)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:265)
    at org.acegisecurity.ui.ExceptionTranslationFilter.do Filter(ExceptionTranslationFilter.java:124)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.ui.basicauth.BasicProcessingFilt er.doFilter(BasicProcessingFilter.java:174)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.context.HttpSessionContextIntegr ationFilter.doFilter(HttpSessionContextIntegration Filter.java:249)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at com.xxxxx.yyy.utils.HttpServletRequestLoggerFilter .doFilter(HttpServletRequestLoggerFilter.java:60)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.util.FilterChainProxy.doFilter(F ilterChainProxy.java:149)
    at org.acegisecurity.util.FilterToBeanProxy.doFilter( FilterToBeanProxy.java:98)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:179)
    at org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:104)
    at org.jboss.web.tomcat.service.jca.CachedConnectionV alve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:241)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:580)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:595)
    Last edited by ms987654321; 08-22-2008 at 12:06 PM. Reason: modify title

  2. #2
    ms987654321 is offline Member
    Join Date
    Jul 2008
    Posts
    3
    Rep Power
    0

    Default ClassCastException in an open source package

    the problem i faced tend me to join this forum.
    the question was to convert a XML file to JsonObject badgerFish convention using Jettison Package the problem is listed down under
    I am using spring as a framework

    ERROR STDERR - Jul 18, 2008 12:47:44 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
    INFO: Interceptor has thrown exception, unwinding now
    java.lang.ClassCastException: java.lang.Long
    at org.codehaus.jettison.mapped.MappedXMLStreamWriter .writeStartElement(MappedXMLStreamWriter.java:255)
    at org.apache.cxf.aegis.xml.stax.ElementWriter.writeS tartElement(ElementWriter.java:121)
    at org.apache.cxf.aegis.xml.stax.ElementWriter.<init> (ElementWriter.java:72)
    at org.apache.cxf.aegis.xml.stax.ElementWriter.getEle mentWriter(ElementWriter.java:157)
    at org.apache.cxf.aegis.type.basic.BeanType.getWriter (BeanType.java:380)
    at org.apache.cxf.aegis.type.basic.BeanType.writeObje ctInternal(BeanType.java:350)
    at org.apache.cxf.aegis.type.basic.BeanType.writeObje ct(BeanType.java:291)
    at org.apache.cxf.aegis.type.basic.ArrayType.writeVal ue(ArrayType.java:267)
    at org.apache.cxf.aegis.type.collection.CollectionTyp e.writeObject(CollectionType.java:104)
    at org.apache.cxf.aegis.type.basic.BeanType.writeObje ctInternal(BeanType.java:357)
    at org.apache.cxf.aegis.type.basic.BeanType.writeObje ct(BeanType.java:291)
    at org.apache.cxf.aegis.type.basic.BeanType.writeObje ctInternal(BeanType.java:357)
    at org.apache.cxf.aegis.type.basic.BeanType.writeObje ct(BeanType.java:291)
    at org.apache.cxf.aegis.databinding.XMLStreamDataWrit er.write(XMLStreamDataWriter.java:109)
    at org.apache.cxf.aegis.databinding.XMLStreamDataWrit er.write(XMLStreamDataWriter.java:45)
    at org.apache.cxf.interceptor.AbstractOutDatabindingI nterceptor.writeParts(AbstractOutDatabindingInterc eptor.java:93)
    at org.apache.cxf.interceptor.BareOutInterceptor.hand leMessage(BareOutInterceptor.java:68)
    at org.apache.cxf.binding.xml.interceptor.XMLMessageO utInterceptor.handleMessage(XMLMessageOutIntercept or.java:71)
    at org.apache.cxf.phase.PhaseInterceptorChain.doInter cept(PhaseInterceptorChain.java:208)
    at org.apache.cxf.interceptor.OutgoingChainIntercepto r.handleMessage(OutgoingChainInterceptor.java:74)
    at org.apache.cxf.phase.PhaseInterceptorChain.doInter cept(PhaseInterceptorChain.java:208)
    at org.apache.cxf.transport.ChainInitiationObserver.o nMessage(ChainInitiationObserver.java:77)
    at org.apache.cxf.transport.servlet.ServletDestinatio n.doMessage(ServletDestination.java:79)
    at org.apache.cxf.transport.servlet.ServletController .invokeDestination(ServletController.java:264)
    at org.apache.cxf.transport.servlet.ServletController .invoke(ServletController.java:123)
    at org.apache.cxf.transport.servlet.AbstractCXFServle t.invoke(AbstractCXFServlet.java:170)
    at org.apache.cxf.transport.servlet.AbstractCXFServle t.doGet(AbstractCXFServlet.java:152)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:265)
    at org.acegisecurity.ui.ExceptionTranslationFilter.do Filter(ExceptionTranslationFilter.java:124)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.ui.basicauth.BasicProcessingFilt er.doFilter(BasicProcessingFilter.java:174)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.context.HttpSessionContextIntegr ationFilter.doFilter(HttpSessionContextIntegration Filter.java:249)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at com.xxxxx.yyy.utils.HttpServletRequestLoggerFilter .doFilter(HttpServletRequestLoggerFilter.java:60)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:275)
    at org.acegisecurity.util.FilterChainProxy.doFilter(F ilterChainProxy.java:149)
    at org.acegisecurity.util.FilterToBeanProxy.doFilter( FilterToBeanProxy.java:98)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:179)
    at org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:104)
    at org.jboss.web.tomcat.service.jca.CachedConnectionV alve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:241)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:580)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:595)[/QUOTE]
    Last edited by ms987654321; 08-22-2008 at 12:09 PM.

Similar Threads

  1. Hi friends
    By vamshikrishnab in forum Introductions
    Replies: 3
    Last Post: 07-21-2008, 03:50 AM
  2. hi friends
    By vineethraj in forum Introductions
    Replies: 3
    Last Post: 01-23-2008, 05:14 AM
  3. hi friends
    By satya kishore in forum Introductions
    Replies: 1
    Last Post: 08-09-2007, 12:16 AM
  4. HELLO TO all friends
    By mrark in forum Introductions
    Replies: 1
    Last Post: 06-27-2007, 04:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •