Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 789 invoked from network); 17 Mar 2007 20:19:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2007 20:19:27 -0000 Received: (qmail 19228 invoked by uid 500); 17 Mar 2007 20:19:26 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 19207 invoked by uid 500); 17 Mar 2007 20:19:25 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 19192 invoked by uid 99); 17 Mar 2007 20:19:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Mar 2007 13:19:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of davanum@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Mar 2007 13:19:15 -0700 Received: by ug-out-1314.google.com with SMTP id j40so1080240ugd for ; Sat, 17 Mar 2007 13:18:54 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SASb793O+xGpRBnpIlFjTns2Ndjh6j0r+qV1l2PP8z6j0yB+dr1M4abpAvkkzIthuiMZEB+RpnFW2MwAnPjFw09qOLzbtQGefy0ZAVuTJD1bi/ckt0OF12huHZn5z5MBxrieT3i2RL/oXDtQKMT4Z+jqgImdJs4QwnqUH2HBV50= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GZSbtnyOTy07BvDT82AHZmsi3RU/wFcgDLPX1tWkU5sSoF6FFTICFtoonnm39j8FgQAfheO6GuaaY2AItJuC/uc7GmgcWtGeHFkDhtJgCPZAeu2p/r2jWTU+GW2QnvyH6O7BEbZFj51hw7Yz4jFPBu3AzIs6h3I/EFEXkmC96Ew= Received: by 10.70.65.8 with SMTP id n8mr5648074wxa.1174162732060; Sat, 17 Mar 2007 13:18:52 -0700 (PDT) Received: by 10.114.133.10 with HTTP; Sat, 17 Mar 2007 13:18:51 -0700 (PDT) Message-ID: <19e0530f0703171318o60832edw4ad585eb139589d@mail.gmail.com> Date: Sat, 17 Mar 2007 16:18:51 -0400 From: "Davanum Srinivas" Reply-To: dims@apache.org To: axis-user@ws.apache.org Subject: Re: Axis2 parsing failure In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Rich, jira please! -- dims On 3/16/07, Rich Adili wrote: > > > > To debug a SOAP response failure, I copied the response to a text file and > wrote this code. The SOAP message follows. This problem is a bit too deep > for my shallow understanding of Axis. Any ideas why Axis can't cope with > this message? > > java.lang.NullPointerException > > at > com.ctc.wstx.sw.BaseNsStreamWriter.doWriteDefaultNs(BaseNsStreamWriter.java:528) > > at > com.ctc.wstx.sw.SimpleNsStreamWriter.writeDefaultNamespace(SimpleNsStreamWriter.java:111) > > at > com.ctc.wstx.sw.SimpleNsStreamWriter.writeNamespace(SimpleNsStreamWriter.java:119) > > at > org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeNamespace(MTOMXMLStreamWriter.java:146) > > at > org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMSerializerUtil.java:329) > > at > org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMSerializerUtil.java:171) > > at > org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:792) > > at > org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:781) > > at > org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:796) > > at > org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:781) > > at > org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:796) > > at > org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:781) > > at > org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:796) > > at > org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:179) > > at > org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:781) > > at > org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:343) > > at > org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:940) > > at java.lang.String.valueOf(String.java:2131) > > at java.io.PrintStream.print(PrintStream.java:462) > > at java.io.PrintStream.println(PrintStream.java:599) > > at junk.main(junk.java:21) > > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) > > > > import org.apache.axiom.om.OMElement; > > import org.apache.axiom.om.util.StAXUtils; > > import > org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder; > > import javax.xml.stream.XMLStreamReader; > > import java.io.File; > > import java.io.FileInputStream; > > public class junk > > { > > public static void main(String[] args) > > { > > try > > { > > FileInputStream inStream = new FileInputStream(new > File("src/junk.xml")); > > XMLStreamReader xmlreader = > StAXUtils.createXMLStreamReader(inStream, "utf-8"); > > StAXSOAPModelBuilder builder = > > new StAXSOAPModelBuilder(xmlreader, > > > "http://schemas.xmlsoap.org/soap/envelope/"); > > final OMElement docEl = > builder.getDocumentElement(); > > System.err.println(docEl); > > } catch (Exception e) > > { > > e.printStackTrace(); > > } > > } > > } > > > > > > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > > xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" > > > xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" > > > xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> > > > > > > > http://www.xatanet.net/XataNetWebService/xatadispatchwebservice/GetActualDispatchPlanByTripIDResponse > > > > > uuid:0225f814-449e-4b29-9583-66b29f68b0ba > > > uuid:e5d1ad0e-e532-401c-808b-f78a4b509208 > > > http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous > > > > wsu:Id="Timestamp-8cd9c60e-5845-461c-8ab8-4e34082aa215"> > > > 2007-03-17T01:47:35Z > > > 2007-03-17T01:52:35Z > > > > > > > > > > > > xmlns="http://www.xatanet.net/XataNetWebService/xatadispatchwebservice"> > > > > xmlns:xs="http://www.w3.org/2001/XMLSchema" > > > xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> > > name="TripDataConduitDataObject" msdata:IsDataSet="true" > > msdata:UseCurrentLocale="true"> > > > > maxOccurs="unbounded"> > > name="Trip"> > > > > > > > > msdata:AutoIncrement="true" type="xs:int" > > > use="required"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="TripDataConduitDataObjectKey1" > msdata:PrimaryKey="true"> > > xpath=".//Trip"/> > > > > > > > > > > xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" > > > xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"> > > > > msdata:rowOrder="0" TripID="62174" > > CurrentRevisionNumber="1" > IsDispatch="true" IsActive="false" > > IsComplete="false" > IsArchived="false" IsPlanValid="false" > > IsActualValid="false" > XVIN="2079" OrganizationID="365" > > UserDefinedRouteID="MyRoute" > PlanStartDate="2007-03-16T19:27:00.7-05:00" > > > StartDate="2007-03-16T14:27:50.013-05:00" > > > EndDate="2007-03-16T14:27:50.013-05:00" > > > LastMessageDate="2007-03-16T14:27:50.013-05:00" > LastMessageType="" > > TripType="Normal" > LastLocation="" TimeVariance="0" > > > DateLastModified="2007-03-16T19:29:25.493-05:00" > > > DispatchCreationDate="2007-03-16T14:27:50.013-05:00" > DispatchLastXVIN="0" > > DispatchLastStartedDate="0" > ArchiveDate="2007-03-16T14:27:50.013-05:00" > > TripData="<Trip > InternalElementID="1" TripType="Normal" > UserID="1086" > OrganizationID="365"> <Plan > InternalElementID="2" > UserDefinedRouteID="MyRoute" > XVIN="2079" UseRouteTemplate="No" > BeginTime="2007-03-16T19:27:00" > AdjustTripBeginTime="True" > LibraryUpload="True"> <PlanStop > InternalElementID="3" StopNumber="BEG" > XSiteID="0" > SiteID="mylittleplaceinthewoods" > ArrivalLock="False" > ArrivalTime="2007-03-16T19:27:00" > DepartureTime="2007-03-16T19:27:00" > LegOverride="False" LegTime="0" > LegMiles="0"> <PlanCargo > InternalElementID="4" Action="Pick" Units="0" > Weight="300000" BillID="Bill_0" Duration="0" > /> <ValidationLocationError > InternalElementID="5" Description="Site ID must be > specified." Resolution="None" /> <ValidationError > InternalElementID="6" Description="Unable to retrieve > FixedStopTime from site." > /> </PlanStop> </Plan> </Trip> " > > > DateOfQuery="2007-03-17T01:47:35.39-05:00"/> > > > > > > > > > > > > -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org