Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 42657 invoked from network); 17 Aug 2005 07:57:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Aug 2005 07:57:10 -0000 Received: (qmail 98794 invoked by uid 500); 17 Aug 2005 07:57:01 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 98785 invoked by uid 500); 17 Aug 2005 07:57:01 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 98771 invoked by uid 99); 17 Aug 2005 07:57:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 00:57:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [61.95.141.133] (HELO rsi-nod-front01.india.rsystems.com) (61.95.141.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 00:57:21 -0700 Received: from rsi-nod-mail1.india.rsystems.com ([10.0.60.12]) by rsi-nod-front01.india.rsystems.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 17 Aug 2005 13:26:58 +0530 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: RE: [SPAM_EMAIL] - RE: RES: Error - java.lang.reflect.InvocationTargetException? - Email has different SMTP TO: and MIME TO: fields in the email addresses Date: Wed, 17 Aug 2005 13:26:57 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SPAM_EMAIL] - RE: RES: Error - java.lang.reflect.InvocationTargetException? - Email has different SMTP TO: and MIME TO: fields in the email addresses Thread-Index: AcWiqmHdjXTw7IZeQzeL1ZoblItkZAADnGZQABD+Y4AAAQuOEA== From: "Mohit.Gupta" To: X-OriginalArrivalTime: 17 Aug 2005 07:56:58.0051 (UTC) FILETIME=[3E018930:01C5A301] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Check the second point suggested by Fabr=EDcio. Whether your classes = need some arguments in their new constructor. The best way is to wrap the service method of your web service in a try = - catch block. And print the stack trace and its causes (which will be = printed automatically). This stack trace will give you a fair idea about = the problem. Thanks, Mohit. -----Original Message----- From: zze-ELSOKHON Tony RD-BIZZ-ISS [mailto:tony.elsokhon@rd.francetelecom.com] Sent: Wednesday, August 17, 2005 1:03 PM To: axis-user@ws.apache.org Subject: [SPAM_EMAIL] - RE: RES: Error - java.lang.reflect.InvocationTargetException? - Email has different SMTP TO: and MIME TO: fields in the email addresses > Javier, > Where I have to put the class? I putted it into > [TOMCAT]webapps\axis\WEB-INF\classes and didn't work. Could you be = more > clear please!?! > Thanks a lot! > Fabr=EDcio Fabricio, The Java 1.4.2 API documentation says: InvocationTargetException is a checked exception that wraps an exception = thrown by an invoked method or constructor. [...] The = "target exception" that is provided at construction time [...] may be = accessed via the Throwable.getCause() method. So the JVM's class loader actually finds the classes used by the service = implementation. If you catch the exception and print the stack trace of its cause, you = will be able to find what Exception was thrown by the secondary classes = used by the service. -----Mensagem original----- De: Javier Gonzalez [mailto:jagonzal@gmail.com]=20 Enviada em: ter=E7a-feira, 16 de agosto de 2005 18:34 Para: axis-user@ws.apache.org Assunto: Re: RES: Error - java.lang.reflect.InvocationTargetException? I'm not sure I'm understanding you two - calling all sorts of Java classes is possible with axis. Are you sure you have all the needed classes in the webapp classpath? Does your class need special parameters for its constructor? On 8/16/05, Fabr=EDcio wrote: > Hi Donald, >=20 > In my case, I really need to have the call to method from another = class. My > web service is a kind of wrapper for a legacy application. And to do = the > call, it's necessary to escort stdin and stderr. And I'm doing this = with two > threads. As: >=20 > cmd =3D "d:\\programs\\cap3\\cap3 " + newPath + "my_seqs"; > process =3D Runtime.getRuntime().exec(cmd); >=20 > StringBuffer inBuffer =3D new StringBuffer(); > InputStream inStream =3D processo.getInputStream(); > new InputStreamHandler( inBuffer, inStream ); >=20 > StringBuffer errBuffer =3D new StringBuffer(); > InputStream errStream =3D processo.getErrorStream(); > new InputStreamHandler( errBuffer , errStream ); >=20 > process.waitFor(); >=20 > The InputStreamHandler is another java class. I really don't know how = to > solve it without the use of these threads (another class). :'-( >=20 > -- >=20 > Fabr=EDcio. >=20 > -----Mensagem original----- > De: Chen, Donald [mailto:dchen@nrgn.com] > Enviada em: ter=E7a-feira, 16 de agosto de 2005 16:14 > Para: fabricio@de9.ime.eb.br; axis-user@ws.apache.org > Assunto: RE: Error - java.lang.reflect.InvocationTargetException? >=20 > Yes, exactly. >=20 > The moment I let the method in the WS call another class, I got the > problem. >=20 > Looks like we are on the same boat. >=20 > Right now, I am trying to rewrite the service provider class to avoid > the unnecessary calling. >=20 > Also, I suspect the Tomcat is not able to find all the necessary jars = to > facilitating the call. >=20 > Let me know what's your finding? >=20 > Don >=20 >=20 > -----Original Message----- > From: fabricio@de9.ime.eb.br [mailto:fabricio@de9.ime.eb.br] > Sent: Tuesday, August 16, 2005 1:31 PM > To: axis-user@ws.apache.org; Chen, Donald > Subject: Re: Error - java.lang.reflect.InvocationTargetException? >=20 > Hi, >=20 > I'm having the same problem and in my case is because my web service > needs to > call a method from a common java class. I need to do this, but I think > that > isn't possible in Axis. Does your web service has a method call to > another > class to? >=20 > -- >=20 > Fabricio. >=20 >=20 > Citando "Chen, Donald" : >=20 > > Hi, there. > > > > I got a "Error - java.lang.reflect.InvocationTargetException" = complain > > when I tried to invoke a web service. > > > > Any idea on how to find out what's going wrong? And what could be = the > > reason(s)? > > > > Thanks. > > > > Don > > PS. Configure: WinXPPro Tomcat5.5/Axis1.2/JRE1.5 > > >=20 >=20 >=20 >=20 > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. >=20 >=20 > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: = 15/8/2005 >=20 >=20 >=20 --=20 Javier Gonzalez Nicolini --=20 No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: = 15/8/2005