Hello Dies,

Thank you very much for your help.

You are correct, I misinterpreted some of my debugging output; I am
hitting the server.  I took your suggestion and used tcpmon and see
that the SOAP request is properly formed but the response is the
InvocationTargetException mentioned previously.  I cranked the server
logging up to 'DEBUG' but see nothing that would indicate a problem
(it doesn't even tell me that a SOAP Fault was generated).  So, the
server receives the request but faults before it's ever sent to my
service.

Would you have any other suggestions as to things to try or approaches
to further debug this problem?  (I've pasted the server log and tcpmon
request/response below).  I'm stumped...

Thanks again,

Charlton


Server log:
DEBUG http-8080-Processor24 org.apache.commons.modeler.Registry - Managed= Catalina:type=RequestProcessor,worker=http-8080,name=HttpRequest1 DEBUG http-8080-Processor24 org.apache.commons.modeler.Registry - Managed= Catalina:type=RequestProcessor,worker=http-8080,name=HttpRequest1 DEBUG http-8080-Processor24 org.apache.commons.modeler.BaseModelMBean - default constructor DEBUG http-8080-Processor24 org.apache.commons.modeler.BaseModelMBean - default constructor DEBUG http-8080-Processor24 org.apache.commons.modeler.BaseModelMBean - preRegister [EMAIL PROTECTED] Catalina:type=RequestProcessor,worker=http-8080,name=HttpRequest1 DEBUG http-8080-Processor24 org.apache.commons.modeler.BaseModelMBean - preRegister [EMAIL PROTECTED] Catalina:type=RequestProcessor,worker=http-8080,name=HttpRequest1 DEBUG http-8080-Processor24 org.apache.coyote.tomcat5.MapperListener - Handle Catalina:type=RequestProcessor,worker=http-8080,name=HttpRequest1 DEBUG http-8080-Processor24 org.apache.coyote.tomcat5.MapperListener - Handle Catalina:type=RequestProcessor,worker=http-8080,name=HttpRequest1 DEBUG http-8080-Processor24 org.apache.coyote.tomcat5.MapperListener - Handle Catalina:type=RequestProcessor,worker=http-8080,name=HttpRequest1 DEBUG http-8080-Processor24 org.apache.coyote.tomcat5.MapperListener - Handle Catalina:type=RequestProcessor,worker=http-8080,name=HttpRequest1 DEBUG http-8080-Processor24 org.apache.tomcat.util.threads.ThreadPool - Getting new thread data DEBUG http-8080-Processor24 org.apache.tomcat.util.threads.ThreadPool - Getting new thread data DEBUG http-8080-Processor25 org.apache.catalina.core.StandardWrapper - Allocating non-STM instance DEBUG http-8080-Processor25 org.apache.catalina.core.StandardWrapper - Allocating non-STM instance DEBUG http-8080-Processor25 org.apache.catalina.core.StandardWrapper - Returning non-STM instance DEBUG http-8080-Processor25 org.apache.catalina.core.StandardWrapper - Returning non-STM instance

Request (from TCPMonitor):
POST /axis/services/is HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: 127.0.0.1
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 518
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<soapenv:Body>
<ns1:retrieve soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="urn:is">
  <in0 xsi:type="xsd:string">c=us,o=company,ou=div,cn=principal1</in0>
  <in1 xsi:type="xsd:string">urn:info:resource1</in1>
 </ns1:retrieve>
</soapenv:Body>
</soapenv:Envelope>

Response (from TCPMonitor):
HTTP/1.1 500 Internal Server Error
Content-Type: text/xml;charset=utf-8
Date: Tue, 14 Mar 2006 22:06:06 GMT
Server: Apache-Coyote/1.1
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<soapenv:Body>
 <soapenv:Fault>
  <faultcode>soapenv:Server.userException</faultcode>
  <faultstring>java.lang.reflect.InvocationTargetException</faultstring>
  <detail/>
 </soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>


From: Dies Koper <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: Axis fault question
Date: Sat, 11 Mar 2006 13:55:07 +0900

Hello Charlton,

Are you sure you are not hitting the server?
Judging from the stacktrace the stub send the request and got a
response. The response contained a fault: an InvocationTargetException
occurred at the server.
The server is the _Axis server_, it does not need to be your _service_.
In fact, InvocationTargetException probably means the Axis server could
not invoke the method on your service.
You can use tcpmon to confirm your request was send, SOAP message was
correct, and a response (the fault) came from the server, and not
happened in your stub.
To find out more details about why the InvocationTargetException
occurred, you'd have to check the server-side logs.

Regards,
Dies

Charlton Jackson wrote:
> I'm getting the fault below when running an Axis client. Does anyone know
> what could be causing this, or have any ideas as to the kind of things I
> can
> try in an attempt to isolate the problem? I'm not even hitting the server,
> so I'm confused why the client would be doing any deserialization (as
> evidenced by the stack trace) at this point.
>
> Any suggestions would be appreciated.  Thanks,
> ctj
>
>
> Exception in thread "main" 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:260)
>
>        at
> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
>
>        at
> org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.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$FragmentContentDispatcher.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(DeserializationContextImpl.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:2248)
>        at org.apache.axis.client.Call.invoke(Call.java:2171)
>        at org.apache.axis.client.Call.invoke(Call.java:1691)
> at is.service.IsSoapBindingStub.retrieve(IsSoapBindingStub.java:205) > at is.service.ISClientInterface.retrieve(ISClientInterface.java:64)
>        at is.service.ISClient.main(ISClient.java:85)


_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Reply via email to