On Tue, 24 Feb 2004, Srinivas Vemula wrote:

> Hi All,
>     I had a simple axis service installed on Tomcat and everything was
> working fine. We do not use any custom ser's / de-ser's . Suddenly I am
> seeing  this error pop up.
> Am I missing anything?? Thank you all for your time and help.
>
> Exception in thread "main" AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode:
>  faultString: java.lang.reflect.InvocationTargetException

An InvocationTargetException is only a container for the real exception
encountered while invoking a method by using reflection.

The real exception can be extracted by using getTargetException(), sample
code:

try {
  some axis stuff;
} catch (InvocationTargetException e) {
  Exception realException = e.getTargetException();
  System.out.println("Real exception was: "+realException);
}

Viele Grüsse,
Thorsten

-- 
T. Jungblut
 Gravon - Das Spielerparadies
  http://www.gravon.de/

Reply via email to