I am listing my solution here in case any one runs into the same
problem. Gurus: was there a recommended way to do this?

 

Cause:

I defined classes to contain data 'structs'. For example: Order.

These were being returned from server to client.

I generated the wsdl and then from the wsdl, created the stubs and
skeletons. However the class Order that was now created, had axis helper
methods. The other Order class, did not. Probably during reflection
invocation, the server got confused about which Order to use and threw
the exception.

So I had to delete the old Order, and use the new generated one in its
place.

 

Has anyone seen this before? Was this the recommended way to handle it?

 

Thanks,

Anil

 

________________________________

From: Anil Philip [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 11, 2007 3:44 PM
To: [email protected]
Subject: InvocationTargetException when calling service. Axis 1.2

 

Hi,

(Axis 1.2, Java 1.5.09)

I am passing in an object containing data, as a parameter in my call:

 

 for example 

 MyService service = new MyServiceLocator();

 Foo port = service.getFoo();

 Order no = new Order();            

 no.setQuantity(2);                     

 port.buy(no);

 

However, I am getting InvocationTargetException

 

Does anyone know why?

 

-

thanks,

Anil Philip

 

init:

deps-jar:

Compiling 1 source file to
C:\Source\Everest\Nepal\WSClients\build\classes

compile:

Exception in thread "main" AxisFault

 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException

 faultSubcode: 

 faultString: java.lang.reflect.InvocationTargetException

 faultActor: 

 faultNode: 

 faultDetail:


        {http://xml.apache.org/axis/}hostname:KTELEWEB01

 

java.lang.reflect.InvocationTargetException

        at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja
va:222)

        at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
a:129)

        at
org.apache.axis.encoding.DeserializationContext.endElement(Deserializati
onContext.java:1087)

        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(
AbstractSAXParser.java:633)

        at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEnd
Element(XMLNSDocumentScannerImpl.java:719)

        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$F
ragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:16
85)

        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
canDocument(XMLDocumentFragmentScannerImpl.java:368)

        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:834)

        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:764)

        at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.jav
a:148)

        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstr
actSAXParser.java:1242)

        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)

        at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationCon
text.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(MustUnderstan
dChecker.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)

 

Reply via email to