Did you get an answer to this issue?

I have a similar problem when an exception is thrown from my
service. When I attempt to get the source exception from the
InvocationTargetException it is null. Which is strange as I
thought that InvocationTargetException should have a root
cause exception.

Kartik wrote:

Yes. I am using J2SE 1.4.1_03-b02 on Windows 2000.
Any clues?  Hope my WSDL is correct.
TUIA,
Kartik

--- Samir Shaikh <[EMAIL PROTECTED]> wrote:

Are you sure you are using jdk1.4+ ?
----- Original Message ----- From: "Kartik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 04, 2003 9:07 AM
Subject: AdminClient throws
java.lang.reflect.InvocationTargetException
while deploy




Hello All.

I am getting a
java.lang.reflect.InvocationTargetException

exception


while trying to deploy a simple service using the
following command:
java org.apache.axis.client.AdminClient -d

deploy.wsdd


This is what I did:
1. Created a WSDL (FirstService.wsdl attached).
2. Generated Java classes/stubs/skeletons from it
using the following command:

java org.apache.axis.wsdl.WSDL2Java \
   -o .                            \
   -s                              \
   -S true                         \
   -Nurn:test                      \
   generated                       \
   FirstService.wsdl

Classes are generated in a directory called
"generated"
List of generated classes:
   src/generated/FirstBindingImpl.java
   src/generated/FirstBindingSkeleton.java
   src/generated/FirstBindingStub.java
   src/generated/FirstPort.java
   src/generated/FirstService.java
   src/generated/FirstServiceLocator.java
   src/generated/Pair.java
   src/generated/deploy.wsdd
   src/generated/undeploy.wsdd


3. Compiled the classes using "javac *.java"

command.


Compilation was successful.

4. Changed to src/generated and tried the

following


command:
java org.apache.axis.client.AdminClient -d

deploy.wsdd


As a result of this command, I got a sinle line

error:


Exception::
java.lang.reflect.InvocationTargetException

I modified the AdminClient.java to print the stack
trace and the attached file (stack-trace.txt)

lists


the trace. Also attached is the typescript for

your


reference.

I tried removing the <complexType> from the WSDL

and


using xsd:string instead in the message part

instead


of gen:Pair. That worked fine. I think my

classpath


settings are okay and only when I use a

complexType


with a custom namespace, I am seeing this problem.

I


could not gather much details from the stack

trace.


May be one of you can! Is there something wrong

in my


WSDL or something wrong in the way I am using
wsdl2java?

TUIA,
Kartik

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site

design software


http://sitebuilder.yahoo.com



----------------------------------------------------------------------------

----



AxisFault
faultCode:

{http://schemas.xmlsoap.org/soap/envelope/}Server.userException

faultSubcode:
faultString:

java.lang.reflect.InvocationTargetException


faultActor:
faultNode:
faultDetail:
       {http://xml.apache.org/axis/}stackTrace:

AxisFault


faultCode:

{http://schemas.xmlsoap.org/soap/envelope/}Server.userException

faultSubcode:
faultString:

java.lang.reflect.InvocationTargetException


faultActor:
faultNode:
faultDetail:

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.xerces.parsers.AbstractSAXParser.endElement(Unknown

Source)

at

org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown

Source)

at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc

her.dispatch(Unknown Source)

at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown

Source)

at

org.apache.xerces.parsers.XML11Configuration.parse(Unknown

Source)

at

org.apache.xerces.parsers.DTDConfiguration.parse(Unknown

Source)

at

org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at

org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown

Source)

at

javax.xml.parsers.SAXParser.parse(SAXParser.java:345)

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.client.Call.invokeEngine(Call.java:2583)

at

org.apache.axis.client.Call.invoke(Call.java:2553)


at

org.apache.axis.client.Call.invoke(Call.java:1672)


at

org.apache.axis.client.AdminClient.process(AdminClient.java:272)

at

org.apache.axis.client.AdminClient.process(AdminClient.java:243)

at

org.apache.axis.client.AdminClient.process(AdminClient.java:252)

at

org.apache.axis.client.AdminClient.process(AdminClient.java:189)

at

org.apache.axis.client.AdminClient.main(AdminClient.java:289)


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.xerces.parsers.AbstractSAXParser.endElement(Unknown

Source)

at

org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown

Source)

at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc

=== message truncated ===


__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com




Reply via email to