Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 26601 invoked from network); 2 Apr 2004 19:30:14 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Apr 2004 19:30:14 -0000 Received: (qmail 71833 invoked by uid 500); 2 Apr 2004 19:30:00 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 71810 invoked by uid 500); 2 Apr 2004 19:30:00 -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: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 71801 invoked from network); 2 Apr 2004 19:30:00 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 2 Apr 2004 19:30:00 -0000 Received: (qmail 10360 invoked from network); 2 Apr 2004 19:30:43 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 2 Apr 2004 19:30:43 -0000 Message-ID: <1089106333.1080934243908.JavaMail.apache@nagoya> Date: Fri, 2 Apr 2004 11:30:43 -0800 (PST) From: jira@apache.org To: axis-dev@ws.apache.org Subject: [jira] Closed: (AXIS-1281) Process SOAPFault Detail when context is not set In-Reply-To: <1624389188.1080865244496.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Message: The following issue has been closed. Resolver: Davanum Srinivas Date: Fri, 2 Apr 2004 11:28 AM Fixed. Thanks, dims --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/AXIS-1281 Here is an overview of the issue: --------------------------------------------------------------------- Key: AXIS-1281 Summary: Process SOAPFault Detail when context is not set Type: Bug Status: Closed Priority: Major Resolution: FIXED Project: Axis Components: Serialization/Deserialization Fix Fors: current (nightly) Versions: 1.2 Beta Assignee: Reporter: Yulin Dong Created: Thu, 1 Apr 2004 4:18 PM Updated: Fri, 2 Apr 2004 11:28 AM Environment: Windows Description: This defest is very similar to defect 22363 which only fixed the SOAP Fault part. However, when SOAP Fault Detail exists, the following exception is thrown: java.lang.NullPointerException at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:95) at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1001) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:446) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:306) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1543) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:348) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:539) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1125) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:218) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:568) at org.apache.axis.SOAPPart.getEnvelope(SOAPPart.java:853) at com.novell.wsclient.util.SOAPFaultTest.main(SOAPFaultTest.java:56) Exception in thread "main" Process terminated with exit code 1 To reproduce, build and run the following code: import java.io.*; import javax.xml.soap.*; public class SOAPFaultTest { public static final String soapFault = "" + "" + "" + "" + "soapenv:13001" + "java.lang.Exception: File already exists" + "urn:RiskMetricsDirect:1.0:object-service-service:CreateObject" + "" + "Quantity element does not have a value" + "" + "" + "" + ""; public static void main(String[] args) { try { ByteArrayInputStream bis = new ByteArrayInputStream( soapFault.getBytes() ); MessageFactory msgFactory = MessageFactory.newInstance(); SOAPMessage msg = msgFactory.createMessage ( null, bis ); //now attempt to access the fault if( msg.getSOAPPart().getEnvelope().getBody().hasFault() ) { SOAPFault fault = msg.getSOAPPart().getEnvelope().getBody().getFault(); System.out.println( "Fault: " + fault.getFaultString() ); } } catch (SOAPException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } } --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira