Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 92275 invoked from network); 8 Dec 2005 21:06:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Dec 2005 21:06:46 -0000 Received: (qmail 96039 invoked by uid 500); 8 Dec 2005 21:06:33 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 95986 invoked by uid 500); 8 Dec 2005 21:06:33 -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 95964 invoked by uid 99); 8 Dec 2005 21:06:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2005 13:06:32 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id EB1AC18B for ; Thu, 8 Dec 2005 22:06:08 +0100 (CET) Message-ID: <1431753790.1134075968960.JavaMail.jira@ajax.apache.org> Date: Thu, 8 Dec 2005 22:06:08 +0100 (CET) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-328) NPE when writing fault In-Reply-To: <1852224687.1134075489237.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-328?page=comments#action_12359772 ] Davanum Srinivas commented on AXIS2-328: ---------------------------------------- craig, engine.createFaultMessageContext is supposed to copy it (~ line 256 in AxisEngine.java). is your faultTo set to something? what is it set to? (anonymous?) -- dims > NPE when writing fault > ---------------------- > > Key: AXIS2-328 > URL: http://issues.apache.org/jira/browse/AXIS2-328 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: core > Versions: 0.93 > Reporter: Craig Chaney > > I get the following walkback when axis attempts to write a fault (for example a mustUnderstand fault): > java.lang.NullPointerException > at java.io.Writer.(Writer.java:70) > at java.io.OutputStreamWriter.(OutputStreamWriter.java:79) > at com.bea.xml.stream.XMLOutputFactoryBase.createXMLStreamWriter(XMLOutputFactoryBase.java:58) > at org.apache.axis2.om.impl.OMOutputImpl.(OMOutputImpl.java:74) > at org.apache.axis2.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:373) > at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:254) > at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:186) > at org.apache.axis2.transport.http.HTTPWorker.processRequest(HTTPWorker.java:184) > at org.apache.axis2.transport.http.server.SimpleConnectionThread.run(SimpleConnectionThread.java:94) > at org.apache.axis2.util.threadpool.ThreadWorker.run(ThreadWorker.java:54) > This can be worked around by setting the TRANSPORT_OUT property on the faultContext near the bottom of the processRequest method (around line 182) in org.apache.axis2.transport.http.HttpWorker -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira