On Sat, Nov 8, 2008 at 12:02 AM, John Cabral <[EMAIL PROTECTED]> wrote:

> I have an error that is being printed out by my Java Axis2 client,
> however, the service is working properly, the service returns the
> expected payload.   Does anyone know the source of this kind of error
> message and how to fix it.  I can't tell if it's cosmetic or an
> indication of something deeper I should be trying to fix.  Below is
> the error message and then a snippet that describes the client.
>
> [START ERROR]
>
> - Unable to sendViaPost to url[
> http://localhost:8080/axis2/services/TestService]
> org.apache.axis2.AxisFault: Transport error: 500 Error: Internal Server
> Error
>        at
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:293)
>        at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192)
>        at
> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
>        at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
>        at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
>        at
> org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWorker.run(AxisEngine.java:516)
>        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)
> - [MessageContext: logID=urn:uuid:FF25FAAE86487F7B661226078018207]
> Transport error: 500 Error: Internal Server Error
>
> [END ERROR]
> [START CLIENT SNIPPET ]
> OMElement result2 = null;
> OMElement requestedPayload = getPayload(result);
>
> Options options = new Options();
> options.setTo(registrationEPR);
> options.setTimeOutInMilliSeconds(360000);
> options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>
> ServiceClient sender = new ServiceClient();
> sender.setOptions(options);
>
> sender.fireAndForget(requestedPayload);

I think the problem is here. Can you check the response code for this in
only operation? This should be 202 accepted if there is no problem.

thanks,
Amila.

>
> result2 = sender.sendReceive(requestedPayload);
> [END CLIENT]
>
> thank you
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Reply via email to