[ 
https://issues.apache.org/jira/browse/AXIS2-2938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511715
 ] 

Brian DePradine commented on AXIS2-2938:
----------------------------------------

What's the stack trace?

> ServiceClient sendReceiveNonBlocking method does not work
> ---------------------------------------------------------
>
>                 Key: AXIS2-2938
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2938
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Amila Chinthaka Suriarachchi
>            Priority: Critical
>
> I am getting a null pointer when runing this code.
> try {
>             ServiceClient serviceClient = new 
> ServiceClient(configurationContext, null);
>             serviceClient.setTargetEPR(new 
> EndpointReference("http://10.10.32.148/WSAddressingCR_Service_WCF/WSAddressing10.svc/Soap11";));
>             
> serviceClient.getOptions().setAction("http://example.org/action/echoIn";);
>             
> serviceClient.getOptions().setProperty(AddressingConstants.WS_ADDRESSING_VERSION,
>                     AddressingConstants.Final.WSA_NAMESPACE);
>             
> serviceClient.getOptions().setProperty(Constants.Configuration.TRANSPORT_URL,
>                     
> "http://localhost:8085/WSAddressingCR_Service_WCF/WSAddressing10.svc/Soap11";);
>             AxisCallback axisCallback = new AxisCallback() {
>                 public void onMessage(MessageContext messageContext) {
>                     System.out.println("got message");
>                     synchronized(this){
>                         this.notify();
>                     }
>                 }
>                 public void onFault(MessageContext messageContext) {
>                     System.out.println("Got error");
>                     synchronized(this){
>                         this.notify();
>                     }
>                 }
>                 public void onError(Exception exception) {
>                     System.out.println("on error");
>                     synchronized(this){
>                         this.notify();
>                     }
>                 }
>                 public void onComplete() {
>                     System.out.println("complete");
>                     synchronized(this){
>                         this.notify();
>                     }
>                 }
>             };
>             serviceClient.sendReceiveNonBlocking(getOMElment(), axisCallback);
>             synchronized(axisCallback){
>                 try {
>                     axisCallback.wait();
>                 } catch (InterruptedException e) {
>                 }
>             }
>         } catch (AxisFault axisFault) {
>             axisFault.printStackTrace();  //To change body of catch statement 
> use File | Settings | File Templates.
>         }
> as a result of most of the addressing tests with the WCF endpoints which 
> worked week ago fails.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to