[
https://issues.apache.org/jira/browse/CXF-3719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081147#comment-13081147
]
Sergey Beryozkin commented on CXF-3719:
---------------------------------------
thanks for the above analysis, for the moment, please configure JSONProvider
explicitly and use ignoreNamespaces property. I'll work on this issue asap
> NullPointerException When using TransformOutInterceptor
> -------------------------------------------------------
>
> Key: CXF-3719
> URL: https://issues.apache.org/jira/browse/CXF-3719
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.4.1
> Environment: Linux 2.6.29, java 1.6.0_16
> Reporter: Christopher Marshall
>
> I have attempted to remove the namespace prefixes outbound JSON messages by
> using the TransformOutInterceptor. At line 87 it explicitly does
> message.removeContent(OutputStream.class);
> and this eventually causes a NullPointerException in the constructor of
> java.io.Writer. The MessageImpl class has an array called defaultContents
> that would have otherwise had an entry containing
> HTTPConduit$WrappedOutputStream that would have been passed through multiple
> layer to the constructor of java.io.writer.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira