Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 575 invoked from network); 18 Jan 2007 23:31:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jan 2007 23:31:55 -0000 Received: (qmail 96502 invoked by uid 500); 18 Jan 2007 23:31:59 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 96232 invoked by uid 500); 18 Jan 2007 23:31:58 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 96221 invoked by uid 99); 18 Jan 2007 23:31:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jan 2007 15:31:58 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jan 2007 15:31:50 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3DD567142A6 for ; Thu, 18 Jan 2007 15:31:30 -0800 (PST) Message-ID: <24458759.1169163090246.JavaMail.jira@brutus> Date: Thu, 18 Jan 2007 15:31:30 -0800 (PST) From: "Dennis Sosnoski (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-1996) JiBXDataSource.getReader always throws NullPointerException In-Reply-To: <10225254.1169112450298.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-1996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465915 ] Dennis Sosnoski commented on AXIS2-1996: ---------------------------------------- I've posted an updated axis2-jibx-1.1.1a.jar (not in any way an official Apache Axis2 release, but just intended to help people encountering this problem) at http://www.sosnoski.com/jibx-wiki/space/axis2-jibx Please try this out to verify the fix. > JiBXDataSource.getReader always throws NullPointerException > ----------------------------------------------------------- > > Key: AXIS2-1996 > URL: https://issues.apache.org/jira/browse/AXIS2-1996 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: databinding > Affects Versions: 1.1.1 > Reporter: Peter Hornig > Assigned To: Dennis Sosnoski > > 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. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org