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

Branko Peteh updated CXF-2022:
------------------------------

    Attachment: CXF-bug-2022.zip

The attached zip file contains full eclipse project that illustrates the 
problem. The only thing missing are jar files, which were omitted due to size 
constraints, so just put the all the jars into the WebContent/WEB-INF/lib 
directory, and you should be able to build and deploy this project on a tomcat 
server. 

Once that is done, just use a client, say soapui, to send a message to the 
service once it started up. If you send any string, it will be returned, if you 
send 'throw' it will reveal the problem.

> NPE being thrown from JAXBEncoderDecoder
> ----------------------------------------
>
>                 Key: CXF-2022
>                 URL: https://issues.apache.org/jira/browse/CXF-2022
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Sean O'Callaghan
>            Assignee: Sean O'Callaghan
>         Attachments: CXF-bug-2022.zip
>
>
> SchemaInfo sch is being accessed without a check if it is null, hence NPE:
>             SchemaInfo sch =
> part.getMessageInfo().getOperation().getInterface()
>                 .getService().getSchema(namespace);
>             if (!sch.isElementFormQualified()) { // <== NPE
>                 namespace = null;
>             }

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