Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2811

org.apache.cxf.interceptor.Fault: UNMARSHAL_ERROR ((XMLBeans data binding with the CXF version 2.2.7/2.2.8

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.2.7, 2.2.8
    • Fix Version/s: Invalid
    • Component/s: OtherDatabindings
    • Labels:
      None
    • Environment:

      GlassFish 2.x/3, CXF Version 2.2.7/8 , Ant 1.6 , jdk 1.6

    • Estimated Complexity:
      Unknown

      Description

      This issue was created in the past (early 2009) and said to have been addressed as of 2.1.7 ..but i am not sure if there is anything additional that i am missing to make this work.

      BTW ->I am new user to the cxf library and so i might be missing something.
      This is the steps..
      1) Generate the Webservices with Contract/WSDL First approach.
      2) I used the default databinding and everything works fine (i can test the wsdl and get the response correctly).
      2) Then i change the configuration (cxf-servlet.xml and wsdl2java to) use xmlbeans databinding and when i publish the wsdl to the GlassFish Server, i can see the wsdl (through the browser)
      3) I test the wsdl, and i get the "org.apache.cxf.interceptor.Fault: UNMARSHAL_ERROR". I

      The stacktrace says:
      org.apache.cxf.interceptor.Fault: UNMARSHAL_ERROR
      at org.apache.cxf.xmlbeans.DataReaderImpl.read(DataReaderImpl.java:87)
      at org.apache.cxf.xmlbeans.DataReaderImpl.read(DataReaderImpl.java:45)
      at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:109)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:110)
      at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:98)
      at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:423)
      at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:178)
      at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:142)
      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)
      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)
      at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
      at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
      at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
      at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.cxf.xmlbeans.DataReaderImpl.read(DataReaderImpl.java:84)
      ... 39 more
      Caused by: java.lang.NullPointerException
      at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.attr(Cur.java:3046)
      at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.attr(Cur.java:3063)
      at org.apache.xmlbeans.impl.store.Locale.doNamespaces(Locale.java:906)
      at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1141)
      at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:849)
      at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:832)
      at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
      at org.example.schema.doubleIt.DoubleItDocument$Factory.parse(DoubleItDocument.java:133)
      ... 44 more

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sudarya21 Sundar Ramamurthy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: