Can you print stack trace of the exception to see what is causing it ?

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/reflect/InvocationTargetEx
ception.html

Rachana 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Michael Katai
> Sent: Monday, September 10, 2007 4:16 PM
> To: [email protected]
> Subject: [gt-user] TopicTree in WS
> 
> Hello!
> 
> I will write a notification producer with java-ws-core, where 
> the class has the following skelleton:
> 
> public class PeerInstance implements Resource, 
> ResourceProperties, TopicListAccessor {
>   public PeerInstance()
>   {
>     instance1 = new myClass();
>     instance2 = myOtherClass.getInstance();
>   }
> }
> 
> public class myClass
> {
>   public static myClass getInstance() throws Exception
>   {
>     return new myClass();
>   }
> }
> 
> The instantiation of instance1 works fine, but the 
> getInstance-call crashes
> with:
> Failed to start container:  [Caused by:
> java.lang.reflect.InvocationTargetException]
> 
> Has anybody an idea why?
> And is there another tutorial in addition to 
> http://gdp.globus.org/gt4-tutorial/download/progtutorial-pdf_0
> .2.1.tar.gz ?
> 
> thanks for your help,
>   michael
> 

Reply via email to