You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "quzhe (JIRA)" <ji...@apache.org> on 2008/10/01 07:29:46 UTC
[jira] Updated: (CXF-1829) xmlbean binding can not handle Exception
[ https://issues.apache.org/jira/browse/CXF-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
quzhe updated CXF-1829:
-----------------------
Attachment: my-app.zip
a maven project for test
> 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
>
>
> 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.