[ 
http://jira.codehaus.org/browse/JIBX-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=254781#action_254781
 ] 

Dennis Sosnoski commented on JIBX-391:
--------------------------------------

The setOutput() methods all assume they're managing the XMLWriter. This is 
awkward code, but is there any reason you can't just use setXmlWriter() to set 
the writer directly (instead of one of the setOutput() methods)?

> UTF-8 custom writers produce NPE
> --------------------------------
>
>                 Key: JIBX-391
>                 URL: http://jira.codehaus.org/browse/JIBX-391
>             Project: JiBX
>          Issue Type: Bug
>          Components: core
>    Affects Versions: JiBX 1.2.2
>            Reporter: Alex Khval
>            Priority: Blocker
>
> Unresolvable NullPointerException in the MarshallingContext class when you 
> develop custom implementation of the UTF8StreamWriter.
> Caused by: java.lang.NullPointerException
>       at 
> org.jibx.runtime.impl.MarshallingContext.setOutput(MarshallingContext.java:240)
>       at 
> org.jibx.runtime.impl.MarshallingContext.startDocument(MarshallingContext.java:459)
>       at 
> org.jibx.runtime.impl.MarshallingContext.marshalDocument(MarshallingContext.java:1082)
>       at 
> com.espacenet.ops.domain.util.jibx.JibxMarshalingUtils.marshal(JibxMarshalingUtils.java:41)
> Additionally, you can't develop any other writer which marshal UTF-8 because 
> it's always replaced by default UTF8StreamWriter.
> Do something with it guys. With this issue open nobody can develop any 
> writers different from default (e.g JSON writer).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to