cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Branko Peteh (JIRA)" <>
Subject [jira] Updated: (CXF-2022) NPE being thrown from JAXBEncoderDecoder
Date Wed, 04 Feb 2009 20:49:59 GMT


Branko Peteh updated CXF-2022:


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:
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Sean O'Callaghan
>            Assignee: Sean O'Callaghan
>         Attachments:
> 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.

View raw message