Re: [Dev] [ESB] NPE with EIP guide sample.

2015-10-06 Thread Chanaka Fernando
Hi Ajith,

The scenario which you have tested is not correct. If you put 
mediator in the outSequence, since you are cloning the request and send to
2 back ends, ESB will get 2 responses and tries to send back 2 responses to
client and that is causing this exception. What happens is that ESB will
send back the first response and then release the connection. When it tries
to send back the 2nd response, If some other thread has already reused that
connection, the "request" will be null and that is causing the NPE.

If you are putting a  mediator in the outSequence, make sure you
aggregate the responses before sending the response back.

On Mon, Oct 5, 2015 at 9:23 PM, Ajith Vitharana  wrote:

>
>
> On Mon, Oct 5, 2015 at 5:59 AM, Chanaka Fernando 
> wrote:
>
>> Hi Ajith,
>>
>> We have already identified this issue and currently working on a fix.
>> Thanks for reporting this issue.
>>
>
> Thanks for looking to this.
>
> -Ajith
>
>>
>> On Mon, Oct 5, 2015 at 12:56 AM, Ajith Vitharana  wrote:
>>
>>> Hi All
>>>
>>> I did a slight change to sample [1] (used  instead of  at
>>> the outSequence) , now I'm getting following exception.
>>>
>>> [1] https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber
>>>
>>>
>>>
>>> [2015-10-04 15:19:30,891] DEBUG - wire << "[\r][\n]"
>>> [2015-10-04 15:19:30,892] ERROR - PassThroughHttpSender Failed to submit
>>> the response
>>> j*ava.lang.NullPointerException*
>>> * at
>>> org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)*
>>> * at
>>> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)*
>>> * at
>>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)*
>>> * at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)*
>>> at
>>> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
>>> at
>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
>>> at
>>> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>>> at
>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
>>> at
>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297)
>>> at
>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
>>> at
>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>> at
>>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
>>> at
>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>> at java.lang.Thread.run(Thread.java:745)
>>> [2015-10-04 15:19:30,894] ERROR - Axis2Sender
>>> Content-Type:application/soap+xml; charset=UTF-8;
>>> action="urn:getQuoteResponse",>> encoding='utf-8'?>http://www.w3.org/2003/05/soap-envelope;>
>>> Unexpected error sending message back
>>> org.apache.axis2.AxisFault: Failed to submit the response
>>> at
>>> org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610)
>>> at
>>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:269)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>> at
>>> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
>>> at
>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
>>> at
>>> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>>> at
>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
>>> at
>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297)
>>> at
>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
>>> at
>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>> at
>>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
>>> at
>>> 

Re: [Dev] [ESB] NPE with EIP guide sample.

2015-10-06 Thread Chanaka Fernando
Hi Ajith,

I have already added a fix to the NPE and currently testing that. Just
wanted to let you know that this is happening due to a configuration issue.
The code was written assuming that this NPE cannot occur in proper
configurations. But there can be some edge cases where this can become
null. I am currently investigating on those.

On Tue, Oct 6, 2015 at 6:52 PM, Ajith Vitharana  wrote:

>
>
> On Tue, Oct 6, 2015 at 5:06 AM, Chanaka Fernando 
> wrote:
>
>> Hi Ajith,
>>
>> The scenario which you have tested is not correct. If you put 
>> mediator in the outSequence, since you are cloning the request and send to
>> 2 back ends, ESB will get 2 responses and tries to send back 2 responses to
>> client and that is causing this exception. What happens is that ESB will
>> send back the first response and then release the connection. When it tries
>> to send back the 2nd response, If some other thread has already reused that
>> connection, the "request" will be null and that is causing the NPE.
>>
>> If you are putting a  mediator in the outSequence, make sure you
>> aggregate the responses before sending the response back.
>>
>
> Yes. I understood the logic.  But my concerns was returning NPE.
>
> -Ajith
>
>>
>> On Mon, Oct 5, 2015 at 9:23 PM, Ajith Vitharana  wrote:
>>
>>>
>>>
>>> On Mon, Oct 5, 2015 at 5:59 AM, Chanaka Fernando 
>>> wrote:
>>>
 Hi Ajith,

 We have already identified this issue and currently working on a fix.
 Thanks for reporting this issue.

>>>
>>> Thanks for looking to this.
>>>
>>> -Ajith
>>>

 On Mon, Oct 5, 2015 at 12:56 AM, Ajith Vitharana 
 wrote:

> Hi All
>
> I did a slight change to sample [1] (used  instead of 
> at the outSequence) , now I'm getting following exception.
>
> [1]
> https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber
>
>
>
> [2015-10-04 15:19:30,891] DEBUG - wire << "[\r][\n]"
> [2015-10-04 15:19:30,892] ERROR - PassThroughHttpSender Failed to
> submit the response
> j*ava.lang.NullPointerException*
> * at
> org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)*
> * at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)*
> * at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)*
> * at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)*
> at
> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
> at
> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> [2015-10-04 15:19:30,894] ERROR - Axis2Sender
> Content-Type:application/soap+xml; charset=UTF-8;
> action="urn:getQuoteResponse", encoding='utf-8'?>http://www.w3.org/2003/05/soap-envelope;>
> Unexpected error sending message back
> org.apache.axis2.AxisFault: Failed to submit the response
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610)
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:269)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
> at
> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
> at
> 

Re: [Dev] [ESB] NPE with EIP guide sample.

2015-10-06 Thread Ajith Vitharana
On Tue, Oct 6, 2015 at 9:31 AM, Chanaka Fernando  wrote:

> Hi Ajith,
>
> I have already added a fix to the NPE and currently testing that. Just
> wanted to let you know that this is happening due to a configuration issue.
> The code was written assuming that this NPE cannot occur in proper
> configurations. But there can be some edge cases where this can become
> null. I am currently investigating on those.
>

Thanks Chanaka !

-Ajith

>
> On Tue, Oct 6, 2015 at 6:52 PM, Ajith Vitharana  wrote:
>
>>
>>
>> On Tue, Oct 6, 2015 at 5:06 AM, Chanaka Fernando 
>> wrote:
>>
>>> Hi Ajith,
>>>
>>> The scenario which you have tested is not correct. If you put 
>>> mediator in the outSequence, since you are cloning the request and send to
>>> 2 back ends, ESB will get 2 responses and tries to send back 2 responses to
>>> client and that is causing this exception. What happens is that ESB will
>>> send back the first response and then release the connection. When it tries
>>> to send back the 2nd response, If some other thread has already reused that
>>> connection, the "request" will be null and that is causing the NPE.
>>>
>>> If you are putting a  mediator in the outSequence, make sure you
>>> aggregate the responses before sending the response back.
>>>
>>
>> Yes. I understood the logic.  But my concerns was returning NPE.
>>
>> -Ajith
>>
>>>
>>> On Mon, Oct 5, 2015 at 9:23 PM, Ajith Vitharana  wrote:
>>>


 On Mon, Oct 5, 2015 at 5:59 AM, Chanaka Fernando 
 wrote:

> Hi Ajith,
>
> We have already identified this issue and currently working on a fix.
> Thanks for reporting this issue.
>

 Thanks for looking to this.

 -Ajith

>
> On Mon, Oct 5, 2015 at 12:56 AM, Ajith Vitharana 
> wrote:
>
>> Hi All
>>
>> I did a slight change to sample [1] (used  instead of 
>> at the outSequence) , now I'm getting following exception.
>>
>> [1]
>> https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber
>>
>>
>>
>> [2015-10-04 15:19:30,891] DEBUG - wire << "[\r][\n]"
>> [2015-10-04 15:19:30,892] ERROR - PassThroughHttpSender Failed to
>> submit the response
>> j*ava.lang.NullPointerException*
>> * at
>> org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)*
>> * at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)*
>> * at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)*
>> * at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)*
>> at
>> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
>> at
>> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>> at
>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
>> at
>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> [2015-10-04 15:19:30,894] ERROR - Axis2Sender
>> Content-Type:application/soap+xml; charset=UTF-8;
>> action="urn:getQuoteResponse",> encoding='utf-8'?>http://www.w3.org/2003/05/soap-envelope;>
>> Unexpected error sending message back
>> org.apache.axis2.AxisFault: Failed to submit the response
>> at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610)
>> at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:269)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at
>> 

Re: [Dev] [ESB] NPE with EIP guide sample.

2015-10-06 Thread Ajith Vitharana
On Tue, Oct 6, 2015 at 5:06 AM, Chanaka Fernando  wrote:

> Hi Ajith,
>
> The scenario which you have tested is not correct. If you put 
> mediator in the outSequence, since you are cloning the request and send to
> 2 back ends, ESB will get 2 responses and tries to send back 2 responses to
> client and that is causing this exception. What happens is that ESB will
> send back the first response and then release the connection. When it tries
> to send back the 2nd response, If some other thread has already reused that
> connection, the "request" will be null and that is causing the NPE.
>
> If you are putting a  mediator in the outSequence, make sure you
> aggregate the responses before sending the response back.
>

Yes. I understood the logic.  But my concerns was returning NPE.

-Ajith

>
> On Mon, Oct 5, 2015 at 9:23 PM, Ajith Vitharana  wrote:
>
>>
>>
>> On Mon, Oct 5, 2015 at 5:59 AM, Chanaka Fernando 
>> wrote:
>>
>>> Hi Ajith,
>>>
>>> We have already identified this issue and currently working on a fix.
>>> Thanks for reporting this issue.
>>>
>>
>> Thanks for looking to this.
>>
>> -Ajith
>>
>>>
>>> On Mon, Oct 5, 2015 at 12:56 AM, Ajith Vitharana 
>>> wrote:
>>>
 Hi All

 I did a slight change to sample [1] (used  instead of  at
 the outSequence) , now I'm getting following exception.

 [1]
 https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber



 [2015-10-04 15:19:30,891] DEBUG - wire << "[\r][\n]"
 [2015-10-04 15:19:30,892] ERROR - PassThroughHttpSender Failed to
 submit the response
 j*ava.lang.NullPointerException*
 * at
 org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)*
 * at
 org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)*
 * at
 org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)*
 * at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)*
 at
 org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
 at
 org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297)
 at
 org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
 at
 org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)
 [2015-10-04 15:19:30,894] ERROR - Axis2Sender
 Content-Type:application/soap+xml; charset=UTF-8;
 action="urn:getQuoteResponse",>>> encoding='utf-8'?>http://www.w3.org/2003/05/soap-envelope;>
 Unexpected error sending message back
 org.apache.axis2.AxisFault: Failed to submit the response
 at
 org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610)
 at
 org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:269)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
 at
 org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
 at
 org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297)
 at
 org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
 at
 

Re: [Dev] [ESB] NPE with EIP guide sample.

2015-10-05 Thread Chanaka Fernando
Hi Ajith,

We have already identified this issue and currently working on a fix.
Thanks for reporting this issue.

On Mon, Oct 5, 2015 at 12:56 AM, Ajith Vitharana  wrote:

> Hi All
>
> I did a slight change to sample [1] (used  instead of  at
> the outSequence) , now I'm getting following exception.
>
> [1] https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber
>
>
>
> [2015-10-04 15:19:30,891] DEBUG - wire << "[\r][\n]"
> [2015-10-04 15:19:30,892] ERROR - PassThroughHttpSender Failed to submit
> the response
> j*ava.lang.NullPointerException*
> * at
> org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)*
> * at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)*
> * at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)*
> * at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)*
> at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
> at
> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> [2015-10-04 15:19:30,894] ERROR - Axis2Sender
> Content-Type:application/soap+xml; charset=UTF-8;
> action="urn:getQuoteResponse", encoding='utf-8'?>http://www.w3.org/2003/05/soap-envelope;>
> Unexpected error sending message back
> org.apache.axis2.AxisFault: Failed to submit the response
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610)
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:269)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
> at
> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> *Caused by: java.lang.NullPointerException*
> * at
> org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)*
> * at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)*
> * at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)*
> * ... 16 more*
> [2015-10-04 15:19:30,898]  INFO - LogMediator To:
> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
> MessageID: urn:uuid:4acfe16a-ee7d-4ab6-b35b-f0e3946160c9, Direction:
> response, MESSAGE = Executing default "fault" sequence, ERROR_CODE = 0,
> ERROR_MESSAGE = Content-Type:application/soap+xml; charset=UTF-8;
> 

Re: [Dev] [ESB] NPE with EIP guide sample.

2015-10-05 Thread Ajith Vitharana
On Mon, Oct 5, 2015 at 5:59 AM, Chanaka Fernando  wrote:

> Hi Ajith,
>
> We have already identified this issue and currently working on a fix.
> Thanks for reporting this issue.
>

Thanks for looking to this.

-Ajith

>
> On Mon, Oct 5, 2015 at 12:56 AM, Ajith Vitharana  wrote:
>
>> Hi All
>>
>> I did a slight change to sample [1] (used  instead of  at
>> the outSequence) , now I'm getting following exception.
>>
>> [1] https://docs.wso2.com/display/IntegrationPatterns/Durable+Subscriber
>>
>>
>>
>> [2015-10-04 15:19:30,891] DEBUG - wire << "[\r][\n]"
>> [2015-10-04 15:19:30,892] ERROR - PassThroughHttpSender Failed to submit
>> the response
>> j*ava.lang.NullPointerException*
>> * at
>> org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)*
>> * at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)*
>> * at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)*
>> * at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)*
>> at
>> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
>> at
>> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>> at
>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
>> at
>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> [2015-10-04 15:19:30,894] ERROR - Axis2Sender
>> Content-Type:application/soap+xml; charset=UTF-8;
>> action="urn:getQuoteResponse",> encoding='utf-8'?>http://www.w3.org/2003/05/soap-envelope;>
>> Unexpected error sending message back
>> org.apache.axis2.AxisFault: Failed to submit the response
>> at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610)
>> at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:269)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at
>> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
>> at
>> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>> at
>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
>> at
>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> *Caused by: java.lang.NullPointerException*
>> * at
>> org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)*
>> * at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)*
>> * at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)*
>> * ... 16 more*
>> [2015-10-04 15:19:30,898]  INFO - LogMediator To:
>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: ,