[ 
https://issues.apache.org/jira/browse/CXF-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

quzhe updated CXF-1829:
-----------------------

    Attachment: my-app2.zip

server side is ok.

but it looks will return a empty soapfault message to client.

so client will create such message:

Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: No NamespaceURI, SOAP 
requires faultcode content to be a QName
        at 
com.sun.xml.messaging.saaj.soap.impl.FaultImpl.setFaultCode(FaultImpl.java:101)
        at 
com.sun.xml.messaging.saaj.soap.impl.FaultImpl.setFaultCode(FaultImpl.java:138)
        at 
org.apache.cxf.jaxws.JaxWsClientProxy.createSoapFault(JaxWsClientProxy.java:243)
        at 
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:194)


I only use localTransport,dont know if http will have this error

> xmlbean binding can not handle Exception
> ----------------------------------------
>
>                 Key: CXF-1829
>                 URL: https://issues.apache.org/jira/browse/CXF-1829
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.1.1
>            Reporter: quzhe
>            Assignee: Sean O'Callaghan
>         Attachments: my-app.zip, my-app2.rar, my-app2.zip
>
>
> hi,All:
> my webservice using xmlbean binding, when service have not throw a exception, 
> it is working fine, but when I add a throw exception, my webservice can not 
> start.
> here is my code:
> service:
> public InsertFmdeclarationResponse 
> insert(InsertFmdeclarationParamDocument.InsertFmdeclarationParam body) throws 
> TestException
> // when I add TestException, it can not working
> exception:
> @WebFault(name="TestException")
> public class TestException extends Exception{
> ...
> }
> the error trace is"
> Caused by: java.lang.NullPointerException
>         at 
> org.apache.cxf.xmlbeans.XmlBeansSchemaInitializer.mapClass(XmlBeansSc
> hemaInitializer.java:165)
>         at 
> org.apache.cxf.xmlbeans.XmlBeansSchemaInitializer.checkForExistence(X
> mlBeansSchemaInitializer.java:217)
>         at 
> org.apache.cxf.xmlbeans.XmlBeansSchemaInitializer.begin(XmlBeansSchem
> aInitializer.java:142)
>         at 
> org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceMode
> lVisitor.java:120)
>         at 
> org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.j
> ava:74)
>         at 
> org.apache.cxf.xmlbeans.XmlBeansDataBinding.initialize(XmlBeansDataBi
> nding.java:102)
> thank you!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to