axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mat <true.atlan...@gmail.com>
Subject Objects created from Axis - modifyied in another class
Date Thu, 21 Feb 2008 16:27:37 GMT
I am creating an API layer over the Axis generated classes - one of the
methods created off the stub is 'getAlertInterfaces' which returns
'AlertInterface[]'.  When I try to pass the 'AlertInterface' array that
was returned form 'getAlertIntefaces' I get the following exception.
What I am trying to do is create a 'factory' class that converts an
AlertInteface to a 'context'/HashMap. Is there a way to access objects
returned from a stub in other classes?  I feel like this should be a
common problem... 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)


---------------------------------------------------------------------
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