You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Suzy Fynes <su...@sentenial.ie> on 2004/10/19 15:02:26 UTC

java.lang.reflect.InvocationTargetException

 
Hi,
 
Can anyone tell me what this exception means when I run my client on a
java web service using axis
 
java.lang.reflect.InvocationTargetException
 
Thanks
Suzy
 
 

Re: java.lang.reflect.InvocationTargetException

Posted by Luca Manganelli <ma...@itc.it>.
Suzy Fynes wrote:

>There doesn't seem to be a stack trace in the tomcat logs , this is all
>I could get
>  
>
Go in tomcat dir then go to:

webapps/axis/WEB-INF/classes

edit log4j.properties as below, then restart Tomcat. Now you'll see the 
log in catalina.out


# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=INFO, CONSOLE
#log4j.rootCategory=INFO, CONSOLE, LOGFILE

# Set the enterprise logger category to FATAL and its only appender to 
CONSOLE
log4j.logger.org.apache.axis.enterprise=INFO, CONSOLE

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=INFO
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n

# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.FileAppender
log4j.appender.LOGFILE.File=axis.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.Threshold=INFO
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n






RE: java.lang.reflect.InvocationTargetException

Posted by Suzy Fynes <su...@sentenial.ie>.
There doesn't seem to be a stack trace in the tomcat logs , this is all
I could get

- Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true
- Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
- Initializing, config='org.apache.struts.taglib.bean.LocalStrings',
returnNull=true
- Initializing, config='org.apache.struts.taglib.logic.LocalStrings',
returnNull=true
- Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true
- Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true
- Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true
- Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true
- Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true

that's from the Catalina.out

thnaks

-----Original Message-----
From: Mahen Perera [mailto:mahens@gmail.com] 
Sent: 19 October 2004 14:39
To: axis-user@ws.apache.org
Subject: Re: java.lang.reflect.InvocationTargetException

Hi suzy,,

send the full stack trace pls,, cos with the info u have provided cant
get any clues.

The invocationtarget exception comes when using reflection to call a
method of a java class. The method which is called using reflection
throws an exception, this is wrapped inside an
invocationtargetexception by the JRE and sent to the user.

So the invocationtargetexception must be coming inside Axis Client
engine or somewhere ard that.

Regards

Mahen


On Tue, 19 Oct 2004 14:02:26 +0100, Suzy Fynes
<su...@sentenial.ie> wrote:
> 
> 
> 
>  
> 
> Hi,
> 
>  
> 
> Can anyone tell me what this exception means when I run my client on a
java
> web service using axis
> 
>  
> 
> java.lang.reflect.InvocationTargetException
> 
>  
> 
> Thanks
> 
> Suzy
> 
>  
> 
>



Re: java.lang.reflect.InvocationTargetException

Posted by Mahen Perera <ma...@gmail.com>.
Hi suzy,,

send the full stack trace pls,, cos with the info u have provided cant
get any clues.

The invocationtarget exception comes when using reflection to call a
method of a java class. The method which is called using reflection
throws an exception, this is wrapped inside an
invocationtargetexception by the JRE and sent to the user.

So the invocationtargetexception must be coming inside Axis Client
engine or somewhere ard that.

Regards

Mahen


On Tue, 19 Oct 2004 14:02:26 +0100, Suzy Fynes
<su...@sentenial.ie> wrote:
> 
> 
> 
>  
> 
> Hi,
> 
>  
> 
> Can anyone tell me what this exception means when I run my client on a java
> web service using axis
> 
>  
> 
> java.lang.reflect.InvocationTargetException
> 
>  
> 
> Thanks
> 
> Suzy
> 
>  
> 
>