Title: Server.UserException / InvocationTargetException with a new webservice
it looks like a generic "something went wrong on the server" (99CR302) - i would check your server logs and see what's there first.
----- Original Message -----
Sent: Sunday, December 11, 2005 10:02 PM
Subject: Server.UserException / InvocationTargetException with a new webservice


Hello,

I am new to TomCat & Axis, and I was following  a tutorial on exposing
AS/400 program as a webservice.

Retrieving the wsdl from
http://localhost:8080/axis/services/InvokeCB6STSwap1?wsdl works fine. The
actual method in the webclass can be called from a simple Java program.

But when I try to call it from a Java Client program, this fails with the
following Stack Trace.

I also tried to generate with WSDL2JAVA, the necessary utility class : the
calling java program was reduced to

          InvokeCB6STSwap1Service service = new
InvokeCB6STSwap1ServiceLocator();
         
          InvokeCB6STSwap1 myService = service.getInvokeCB6STSwap1();
         
          try{
          myService.dowebserviceswap(s1, s2);
          }
         catch(AxisFault x)
          {
            printAxisFault (x);
          }

But this gives the same exception.

(However, the GetQuote sample from the documentation seems to work fine, so the infrastructure should be OK).

Can somebody give me a clue, where to find information ?

Thanks,

Luc

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.reflect.InvocationTargetException
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}hostname:99CR302

java.lang.reflect.InvocationTargetException
        at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
22)
        at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:12
9)
        at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationCo
ntext.java:1087)
        at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.jav
a:559)
        at
org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinde
r.java:853)
        at
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java
:643)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
java:2978)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:9
18)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo
cumentFragmentScannerImpl.java:11
45)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:988)

        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentS
cannerImpl.java:1446)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:333)
        at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:529)
        at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:585)
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
        at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:114
8)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext
.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
        at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796
)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at ClientCB6STSwap.main(ClientCB6STSwap.java:36)

This e-mail may contain information which is privileged or confidential. If you received this e-mail in error, please notify us immediately by e-mail or telephone and delete the e-mail without copying or disclosing its contents to any other person.

Reply via email to