Hi
We encountered with the same problem and found that in case of
java.lang.Error was thrown on the server side axis just ignores the cause
and answers to client with just InvocationTargetException without the cause.
It is inconsistency in axis because in case of java.lang.Exception client
aware to the cause. The example of java.lang.Error is OutOfMemoryErrror and
StackOverflowError. I don't see any reason not to transfer the cause to the
client side. 
The question to axis guys: are there any plans to fix the error notification

tnx
anatoly

-----Original Message-----
From: Greg Cawthorn [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 10, 2005 5:49 PM
To: [EMAIL PROTECTED]
Subject: java.lang.reflect.InvocationTargetException invoking web service

I am attempting to invoke a simlpe web service on Tomcat 5.0.25 with the
Axis 1.1 webapp. The service has a single method which has one parameter,
which I am serializing using Axis' BeanSerializer and BeanDeserializer
classes. I have a <beanMapping> element declared for this class in my WSDD,
and my generated WSDL includes definitions of these types. 

For some reason I get an InvocationTargetException when I try to invoke the
service, which appears to be caused when attempting to deserialize the
argument. Does anyone have an idea of what I have done wrong or how I can
fix this?


java.lang.reflect.InvocationTargetException
        at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
60)
        at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:16
9)
        at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onContextImpl.java:1015)
        at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
        at org.apache.crimson.parser.Parser2.content(Unknown Source)
        at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
        at org.apache.crimson.parser.Parser2.content(Unknown Source)
        at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
        at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
        at org.apache.crimson.parser.Parser2.parse(Unknown Source)
        at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:242)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
        at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:675
)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)

        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
        at org.apache.axis.client.Call.invoke(Call.java:2553)
        at org.apache.axis.client.Call.invoke(Call.java:2248)
        at org.apache.axis.client.Call.invoke(Call.java:2171)
        at org.apache.axis.client.Call.invoke(Call.java:1691)
        at
com.voxsurf.voice.telemail.ws.VxsAxisTelemailPort.sendTelemail(VxsAxisTelema
ilPort.java:79)
        at
com.voxsurf.voice.telemail.VxsTelemailService.submitTelemail(VxsTelemailServ
ice.java:89)
        at
com.voxsurf.voice.telemail.ws.VxsTelemailClient.sendTelemail(VxsTelemailClie
nt.java:131)
        at
com.voxsurf.voice.telemail.ws.VxsTelemailClient.main(VxsTelemailClient.java:
54)

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Reply via email to