axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrowley <mathew.row...@gmail.com>
Subject Passing returned Axis generated objects = org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR
Date Tue, 19 Feb 2008 00:01:06 GMT

I am creating an API layer over the Axis generated classes - one of the
methods created from the wsdl2java class generation was 'getAlertInterfaces'
which returns 'AlertInterface[]'.  When I try to pass the 'AlertInterface'
array that was returned form 'getAlertIntefaces' I get the following
exception:
Is there a way to use returned objects in other classes?  Thanks in advance.



Exception in thread "main" AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used
in a different document than the one that created it.
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace:org.w3c.dom.DOMException:
WRONG_DOCUMENT_ERR: A node is used in a different document than the one that
created it.
	at
com.sun.org.apache.xerces.internal.dom.ParentNode.internalInsertBefore(ParentNode.java:389)
	at
com.sun.org.apache.xerces.internal.dom.ParentNode.insertBefore(ParentNode.java:321)
	at
com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(NodeImpl.java:275)
	at
org.apache.axis.message.SOAPFaultBuilder.onEndChild(SOAPFaultBuilder.java:305)
	at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1090)
	at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
	at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
	at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
	at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
	at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
	at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
	at org.apache.axis.client.Call.invoke(Call.java:2767)
	at org.apache.axis.client.Call.invoke(Call.java:2443)
	at org.apache.axis.client.Call.invoke(Call.java:2366)
	at org.apache.axis.client.Call.invoke(Call.java:1812)
	at
com.cable.comcast.axis.arbor.PeakflowSP.PeakflowSPBindingStub.getAlertInterfaces(PeakflowSPBindingStub.java:448)
	at
com.cable.comcast.nsec.debug.PeakflowSPBindingStubTest.main(PeakflowSPBindingStubTest.java:45)
-- 
View this message in context: http://www.nabble.com/Passing-returned-Axis-generated-objects-%3D-org.w3c.dom.DOMException%3A-WRONG_DOCUMENT_ERR-tp15550802p15550802.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message