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
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.