[ 
https://issues.apache.org/jira/browse/AXIS2-1996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485124
 ] 

Dennis Sosnoski commented on AXIS2-1996:
----------------------------------------

With reference to this last problem reported by Tomislav, it doesn't involve a 
NullPointerException so it's clearly a separate issue from the original bug 
report. I don't know the cause of your Unexpected EOF in Prolog message, but if 
you can add a new bug report to Jira with appropriate example code I'll try to 
find out what's going wrong.

> JiBXDataSource.getReader always throws NullPointerException
> -----------------------------------------------------------
>
>                 Key: AXIS2-1996
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1996
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.1.1
>            Reporter: Peter Hornig
>         Assigned To: Dennis Sosnoski
>             Fix For: 1.2
>
>
> JiBXDataSource.getReader  always throws a Null Pointer Exception due to 
> following Code
> ---------------------
>   public XMLStreamReader getReader() throws XMLStreamException {
>         ByteArrayOutputStream bos = new ByteArrayOutputStream();
>         serialize(bos, null);
>         return StAXUtils.createXMLStreamReader(new 
> ByteArrayInputStream(bos.toByteArray()));
>     }
>  /* (non-Javadoc)
>      * @see org.apache.axiom.om.OMDataSource#serialize(java.io.OutputStream, 
> org.apache.axiom.om.OMOutputFormat)
>      */
>     public void serialize(OutputStream output, OMOutputFormat format) throws 
> XMLStreamException {
>         try {
>             IMarshallingContext ctx = 
> bindingFactory.createMarshallingContext();
>             ctx.setOutput(output, format.getCharSetEncoding());
>             marshal(ctx);
>         } catch (JiBXException e) {
>             throw new XMLStreamException("Error in JiBX marshalling", e);
>         }
>     }
> ----------------------
> serialize is called with NULL as a format and serialize uses 
> format.getCharSetEncoding());
> ---------------------------
> The Null Pointer Exception happens when  using axis2 with rampart 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to