You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2009/07/28 19:49:14 UTC

[jira] Resolved: (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 ]

Daniel Kulp resolved CXF-1829.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.2
         Assignee: Daniel Kulp  (was: Sean O'Callaghan)


This is resolved.  The attached test case throws the proper SystemFault object with 2.2.2

> 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: Daniel Kulp
>             Fix For: 2.2.2
>
>         Attachments: my-app.zip, 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.