Announcement Announcement Module
Collapse
No announcement yet.
Exception while integrating Spring with web services and Open JPA Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception while integrating Spring with web services and Open JPA

    Hi,

    I am getting the below error stack while developing an application where i have used Rest web services, Open JPA with Spring.

    Throwable occurred: org.apache.cxf.interceptor.Fault: Marshalling Error: Array index out of range: -7
    at org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JA XBEncoderDecoder.java:209)
    at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWr iterImpl.java:63)
    at org.apache.cxf.interceptor.AbstractOutDatabindingI nterceptor.writeParts(AbstractOutDatabindingInterc eptor.java:84)
    at org.apache.cxf.interceptor.BareOutInterceptor.hand leMessage(BareOutInterceptor.java:68)
    at org.apache.cxf.phase.PhaseInterceptorChain.doInter cept(PhaseInterceptorChain.java:208)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientIm pl.java:276)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientIm pl.java:222)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(Cli entProxy.java:73)
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWs ClientProxy.java:135)
    at $Proxy17.getEmployee(Unknown Source)
    at com.ws.client.Client.main(Client.java:22)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -7
    at com.sun.xml.bind.v2.util.CollisionCheckStack.findD uplicate(CollisionCheckStack.java:112)
    at com.sun.xml.bind.v2.util.CollisionCheckStack.push( CollisionCheckStack.java:53)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.pushObje ct(XMLSerializer.java:471)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsX siType(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.se rializeBody(ElementBeanInfoImpl.java:244)
    at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.se rializeRoot(ElementBeanInfoImpl.java:251)
    at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.se rializeRoot(ElementBeanInfoImpl.java:33)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsR oot(XMLSerializer.java:461)
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(M arshallerImpl.java:292)
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal (MarshallerImpl.java:221)
    at javax.xml.bind.helpers.AbstractMarshallerImpl.mars hal(AbstractMarshallerImpl.java:86)
    at org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject (JAXBEncoderDecoder.java:360)
    at org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JA XBEncoderDecoder.java:187)
    ... 10 more
    Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Marshalling Error: Array index out of range: -7
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWs ClientProxy.java:175)
    at $Proxy17.getEmployee(Unknown Source)
    at com.ws.client.Client.main(Client.java:22)
    Caused by: org.apache.cxf.interceptor.Fault: Marshalling Error: Array index out of range: -7
    at org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JA XBEncoderDecoder.java:209)
    at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWr iterImpl.java:63)
    at org.apache.cxf.interceptor.AbstractOutDatabindingI nterceptor.writeParts(AbstractOutDatabindingInterc eptor.java:84)
    at org.apache.cxf.interceptor.BareOutInterceptor.hand leMessage(BareOutInterceptor.java:68)
    at org.apache.cxf.phase.PhaseInterceptorChain.doInter cept(PhaseInterceptorChain.java:208)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientIm pl.java:276)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientIm pl.java:222)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(Cli entProxy.java:73)
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWs ClientProxy.java:135)
    ... 2 more
    Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -7
    at com.sun.xml.bind.v2.util.CollisionCheckStack.findD uplicate(CollisionCheckStack.java:112)
    at com.sun.xml.bind.v2.util.CollisionCheckStack.push( CollisionCheckStack.java:53)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.pushObje ct(XMLSerializer.java:471)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsX siType(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.se rializeBody(ElementBeanInfoImpl.java:244)
    at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.se rializeRoot(ElementBeanInfoImpl.java:251)
    at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.se rializeRoot(ElementBeanInfoImpl.java:33)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsR oot(XMLSerializer.java:461)
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(M arshallerImpl.java:292)
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal (MarshallerImpl.java:221)
    at javax.xml.bind.helpers.AbstractMarshallerImpl.mars hal(AbstractMarshallerImpl.java:86)
    at org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject (JAXBEncoderDecoder.java:360)
    at org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JA XBEncoderDecoder.java:187)
    ... 10 more


    Please find the application zip file which is throwing the exception.

    Thanks,
    Rajesh.
Working...
X