cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "quzhe (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-1829) xmlbean binding can not handle Exception
Date Sat, 04 Oct 2008 03:29:44 GMT

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

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

    Attachment: my-app2.rar

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


Mime
View raw message