axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepal Jayasinghe <dee...@opensource.lk>
Subject Re: [jira] Commented: (AXIS2-849) NullPointerException in OutInAxisOperationClient
Date Mon, 03 Jul 2006 12:41:13 GMT
can you please help me to regenerate the issue

Michele Mazzucco (JIRA) wrote:

>    [ http://issues.apache.org/jira/browse/AXIS2-849?page=comments#action_12418938 ] 
>
>Michele Mazzucco commented on AXIS2-849:
>----------------------------------------
>
>Deepal, no, it is not fixed. I'm running the snapshot of July 3 and I'm still getting:
>
>ERROR QueueSizeServiceHandler:client - java.lang.NullPointerException
>	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:260)
>	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:361)
>	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:341)
>	at ncl.qosp.controller.scheduler.queue.QueueSizeServiceHandler.client(QueueSizeServiceHandler.java:577)
>	at ncl.qosp.controller.scheduler.queue.QueueSizeServiceHandler.send(QueueSizeServiceHandler.java:541)
>	at ncl.qosp.controller.scheduler.queue.QueueSizeServiceHandler.addResource(QueueSizeServiceHandler.java:318)
>	at ncl.qosp.controller.scheduler.queue.QueueSizeTimeScheduler.requireResources(QueueSizeTimeScheduler.java:291)
>	at ncl.qosp.controller.scheduler.queue.QueueSizeServiceHandler.setOptimalValue(QueueSizeServiceHandler.java:269)
>	at ncl.qosp.controller.scheduler.queue.QueueSizeTimeScheduler$ReminderTask.reallocateResources(QueueSizeTimeScheduler.java:531)
>	at ncl.qosp.controller.scheduler.queue.QueueSizeTimeScheduler$ReminderTask.run(QueueSizeTimeScheduler.java:501)
>	at java.util.TimerThread.mainLoop(Timer.java:512)
>	at java.util.TimerThread.run(Timer.java:462)
>
>
>  
>
>> NullPointerException in OutInAxisOperationClient
>>-------------------------------------------------
>>
>>         Key: AXIS2-849
>>         URL: http://issues.apache.org/jira/browse/AXIS2-849
>>     Project: Apache Axis 2.0 (Axis2)
>>        Type: Bug
>>    
>>
>
>  
>
>>  Components: client-api
>>    Versions: 1.0
>> Environment: Windows XP SP2, Java J2SE 1.5.0_03, Axis 2 SNAPSHOT Jun 08, 2006
>>    Reporter: Michele Mazzucco
>>    Assignee: Deepal Jayasinghe
>>    
>>
>
>  
>
>>I'm trying to send a message from a web service A to a web service B, but I get this
exception:
>>ERROR
>>ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeServiceHandler
>>- java.lang.NullPointerException
>>	at
>>org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:260)
>>	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:350)
>>	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:330)
>>	at
>>ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeServiceHandler.client(WeightedAvgRespTimeServiceHandler.java:609)
>>	at
>>ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeServiceHandler.send(WeightedAvgRespTimeServiceHandler.java:560)
>>	at
>>ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeServiceHandler.addResource(WeightedAvgRespTimeServiceHandler.java:333)
>>	at
>>ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeScheduler.requireResources(WeightedAvgRespTimeScheduler.java:296)
>>	at
>>ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeServiceHandler.setOptimalValue(WeightedAvgRespTimeServiceHandler.java:284)
>>	at
>>ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeScheduler$ReminderTask.reallocateResources(WeightedAvgRespTimeScheduler.java:549)
>>	at
>>ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeScheduler$ReminderTask.run(WeightedAvgRespTimeScheduler.java:519)
>>	at java.util.TimerThread.mainLoop(Timer.java:512)
>>	at java.util.TimerThread.run(Timer.java:462)
>>The chunk of code generating the above exception is:
>>EndpointReference targetEPR = new EndpointReference(target);
>>Options options = new Options();
>>options.setTo(targetEPR);
>>options.setAction("urn:echo");
>>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>>options.setUseSeparateListener(true);
>>ServiceClient sender = new ServiceClient();
>>sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
>>sender.setOptions(options);
>>		
>>try {
>>	sender.sendRobust(r.request);
>>} catch (Exception e) {
>>	StringWriter sw = new StringWriter();
>>	PrintWriter pw = new PrintWriter(sw);
>>	e.printStackTrace(pw);
>>	log.error(sw.getBuffer().toString());
>>	pw.close();
>>}
>>Please note that this code works if a sendReceiveNonBlocking() call is
>>used instead of sendRobust().
>>    
>>
>
>  
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 



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


Mime
View raw message