cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From garethu <Gareth.U...@hyphen.co.za>
Subject Marshalling Error
Date Thu, 15 Nov 2007 11:28:42 GMT

I have created a web service which is currently returning inconsistent
results. Sometimes it will run fine, returning valid results to the client.
But after every 2 or 3 runs, it returns the following from the Apache
Server:

Nov 15, 2007 1:26:43 PM java.lang.Throwable <init>         
INFO: Interceptor has thrown exception, unwinding now                                    
                               
org.apache.cxf.interceptor.Fault: Marshalling Error: null                                
                               
 at java.lang.Throwable.<init>(Throwable.java:241)                                 
                                     
 at java.lang.RuntimeException.<init>(RuntimeException.java:77)                    
                                     
 at
org.apache.cxf.common.i18n.UncheckedException.<init>(UncheckedException.java:35)   
                                 
 at org.apache.cxf.interceptor.Fault.<init>(Fault.java:43)                         
                                     
 at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:181)             
                           
 at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:42)                  
                               
 at
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:93)
  
 at
org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)  
                           
 at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)   
                           
 at
org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:74)
                 
 at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)   
                           
 at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
                         
 at
org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:79)
                           
 at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:235)
                    
 at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:140)    
                           
 at org.apache.cxf.transport.servlet.CXFServlet.invoke(CXFServlet.java:278)              
                               
 at org.apache.cxf.transport.servlet.CXFServlet.invoke(CXFServlet.java:278)              
               
 at org.apache.cxf.transport.servlet.CXFServlet.doPost(CXFServlet.java:256)              
               
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)                         
               
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)                         
               
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)      
           
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)      
           
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)            
           
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)            
           
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)        
           
 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)              
           
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)               
           
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
    
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)              
               
 at java.lang.Thread.run(Thread.java:595)                                                
               
Caused by: java.lang.ArrayIndexOutOfBoundsException                                      
               
 at java.lang.Throwable.<init>(Throwable.java:181)                                 
                     
 at java.lang.RuntimeException.<init>(RuntimeException.java:32)                    
                     
at java.lang.RuntimeException.<init>(RuntimeException.java:32)                     
                
at
java.lang.IndexOutOfBoundsException.<init>(IndexOutOfBoundsException.java:27)      
             
at
java.lang.ArrayIndexOutOfBoundsException.<init>(ArrayIndexOutOfBoundsException.java:26)
         
at
com.sun.xml.bind.v2.util.CollisionCheckStack.findDuplicate(CollisionCheckStack.java:112) 
       
at
com.sun.xml.bind.v2.util.CollisionCheckStack.push(CollisionCheckStack.java:53)           
       
at
com.sun.xml.bind.v2.runtime.XMLSerializer.pushObject(XMLSerializer.java:471)             
       
at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:574)         
       
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:93)
    
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:127)
   
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:244)
     
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:251)
     
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:33)
      
at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:461)            
       
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:292)             
          
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:148)              
       
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject(JAXBEncoderDecoder.java:188)          
       
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:159)             
       
... 26 more                                                                              
          

Any help will be much appreciated.

Gareth


-- 
View this message in context: http://www.nabble.com/Marshalling-Error-tf4811214.html#a13765785
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message