[
http://issues.apache.org/jira/browse/AXIS2-1643?page=comments#action_12448407 ]
Nigel Charman commented on AXIS2-1643:
--------------------------------------
I've also been seeing this fault. Here's how I got it using
rampart-1.1-SNAPSHOT and axis2-1.1-SNAPSHOT from 7th November.
1. cd samples/basic
2. ant service.03
3. ant client.04
ant output and SOAP trace from TCPMon follow.
regards,
Nigel
client.04:
[copy] Copying 1 file to
C:\java\apache\rampart-1.1-SNAPSHOT\samples\basic\build\client_repositories\sample04\conf
[copy] Copying 1 file to
C:\java\apache\rampart-1.1-SNAPSHOT\samples\basic\build\client_repositories\sample04\modules
[copy] Copying 1 file to
C:\java\apache\rampart-1.1-SNAPSHOT\samples\basic\build\client_repositories\sample04\modules
[copy] Copying 1 file to
C:\java\apache\rampart-1.1-SNAPSHOT\samples\basic\build\temp_client
[copy] Copying 1 file to
C:\java\apache\rampart-1.1-SNAPSHOT\samples\basic\build\temp_client
[java] 9/11/2006 22:19:41 org.apache.axis2.deployment.DeploymentEngine
prepareRepository
[java] INFO: no services directory found under
C:\java\apache\rampart-1.1-SNAPSHOT\samples\basic\build\client_repositories\samp
le04
[java] 9/11/2006 22:19:41 org.apache.axis2.deployment.DeploymentEngine
doDeploy
[java] INFO: Deploying module : addressing-1.1
[java] 9/11/2006 22:19:43 org.apache.axis2.deployment.DeploymentEngine
doDeploy
[java] INFO: Deploying module : rampart-1.1
[java] Exception in thread "main" java.lang.ClassCastException:
org.apache.axiom.om.impl.llom.OMElementImpl
[java] at
org.apache.axiom.soap.impl.llom.SOAPFaultImpl.getCode(SOAPFaultImpl.java:101)
[java] at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
[java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:573)
[java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:502)
[java] at org.apache.rampart.samples.sample04.Client.main(Unknown
Source)
[java] Java Result: 1
HTTP/1.1 500 Internal server error
Date: Thu, 09 Nov 2006 09:19:44 GMT
Server: Simple-Server/1.1
Content-Length: 1635
Content-Type: text/xml; charset=UTF-8
Connection: Close
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header />
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>Service not found operation terminated !!</faultstring>
<detail>
<Exception>org.apache.axis2.AxisFault: Service not found
operation terminated !!
 at
org.apache.axis2.engine.InstanceDispatcher.fillContextsFromSessionContext(InstanceDispatcher.java:114)
at
org.apache.axis2.engine.InstanceDispatcher.invoke(InstanceDispatcher.java:64)
at org.apache.axis2.engine.Phase.invoke(Phase.java:381)
 at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:521)
 at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:485)
 at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:319)
at
org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:230)
 at
org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.doService(DefaultHttpServiceProcessor.java:179)
at
org.apache.http.protocol.HttpService.handleRequest(HttpService.java:123)
at
org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.run(DefaultHttpServiceProcessor.java:251)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:595)
</Exception>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
> ClassCastException in fault parsing
> -----------------------------------
>
> Key: AXIS2-1643
> URL: http://issues.apache.org/jira/browse/AXIS2-1643
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.1
> Environment: Axis 2 1.1RC2
> Reporter: James Shiell
>
> I'm currently getting a ClassCastException when parsing a SOAP fault. It
> appears that the 'Code' child is being cast to SOAPFaultCode, however the
> implementation class (OMElementImpl) does not implement this interface.
> This occurs in OutInAxisOperation at line 308 (soapFault.getCode()). The
> version of Axiom used is the snapshot supplied with RC2.
> java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl
> at
> org.apache.axiom.soap.impl.llom.SOAPFaultImpl.getCode(SOAPFaultImpl.java:101)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
> at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:573)
> at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:502)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]