axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cporter <cporterma...@yahoo.com>
Subject Re: Client cannot call Axis2 WebService
Date Mon, 17 Dec 2007 17:58:24 GMT

Update:

The exception was being raised by another package.... and was completely
unrelated to the given stack.

At times, exception messages are a bit misleading unfortunately. 

Chris


cporter wrote:
> 
> Hi all,
> 
> I have the following scenario:
> 
> 1) JBoss 4.0.4.GA with Axis2 hot deployment
> 2) Axis2 webservice accepting 2 params (string and int) and returning a
> string as a result
> 3) Client (Servlet) calling webservice as follows:
> 
> //Set EPR
> IdentityProviderWSStub stub = new
> IdentityProviderWSStub(targetEPR.getAddress());
> 
> //Instantiate WS method call
> IdentityProviderWSStub.GetAuthenticationResp getAuthnResp = new
> IdentityProviderWSStub.GetAuthenticationResp();
> 
> //Set params
> getAuthnResp.setStringifiedAuthnReq(stringifiedAuthRequest); //AuthnReq
> getAuthnResp.setSecurityLevelRequired(securityLevelRequired); //Level of
> Assurance
>         
> //Initialize and wait for result    
> IdentityProviderWSStub.GetAuthenticationRespResponse res =
> stub.getAuthenticationResp(getAuthnResp);
> stringifiedAuthnReqResponse = res.get_return()
> 
> After a series of exceptions... the following topped them all:
> 
> java.lang.AbstractMethodError:
> IdentityProviderWSStub$GetAuthenticationResp$1.serialize(Ljavax/xml/stream/XMLStreamWriter;)V
> 
> org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(OMSourcedElementImpl.java:583)
> 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:779)
> 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:808)
> 
> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:234)
> 
> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:222)
> 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:808)
> 
> org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:418)
> 
> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:55)
> 
> org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
> 
> org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
> 
> org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
> 
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
> 
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
> 
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
> 
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
> 
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
> 
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558)
> 
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176)
> 	org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
> 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305)
> 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201)
> 	org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
> 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
> 
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
> 
> IdentityProviderWSStub.getAuthenticationResp(IdentityProviderWSStub.java:708)
> 
> ServiceProviderServices.getUserAuthentication(ServiceProviderServices.java:255)
> 	ServiceProviderServices.doGet(ServiceProviderServices.java:503)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 
> Can anyone please tell me what this exception is all about? Is the WS call
> being correctly specified?
> 
> I thank you beforehand for your time.
> 
> Best Regards,
> 
> Chris Porter
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Client-cannot-call-Axis2-WebService-tp14257172p14373952.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message