Hi Denuwanthi,

In sample 460 it works fine as client sending a place order request and not
getting a response from it. But in [1] it sends a stockquote request from
client and waiting for response. Seems like event mediator is not sending
the response to the client. But it functioning correctly as in the document
which you can confirm by looking at axis server logs where you can see
"Generating quote for : foo". I think this is because publish and
subscriber follows one way communication pattern.

[1]-
https://docs.wso2.org/display/IntegrationPatterns/Publish-Subscribe+Channel

Thanks,
Harsha


On Wed, Apr 16, 2014 at 9:35 PM, Denuwanthi De Silva <denuwan...@wso2.com>wrote:

> Hi Samith,
>
> I'm using ESB 4.8.1. This is the log I get:
>
> INFO - LogMediator To: /, WSAction: urn:placeOrder, SOAPAction:
> urn:placeOrder, ReplyTo: http://www.w3.org/2005/08/addressing/none,
> MessageID: urn:uuid:22b40329-d5ed-4093-897d-1c041b2eb381, Direction: request
>
> I don't get any error message on the ESB debug log as in [1].
>
> Sample 460[2] works fine for me. The bug is fixed in 4.8.1.
> I get an error log in Axis2Client as I have mentioned.
>
>
>
>
> [1] https://wso2.org/jira/browse/ESBJAVA-2857
> [2]
> https://docs.wso2.org/display/ESB481/Sample+460%3A+Introduction+to+Eventing+and+Event+Mediator
>
>
> Thanks,
>
>
> On Wed, Apr 16, 2014 at 6:55 PM, Samith Dassanayake <sam...@wso2.com>wrote:
>
>> Hi Denuwanthi,
>>
>> This is caused by a bug in ESB 4.8.0. If you are using the ESB version
>> 4.8.0 this is a known issue[1]. If you check the debug log of the ESB you
>> will see a similar error message as [1], which occurs when executing the
>> sample 460[2]
>>
>> [1] https://wso2.org/jira/browse/ESBJAVA-2857
>> [2]
>> https://docs.wso2.org/display/ESB481/Sample+460%3A+Introduction+to+Eventing+and+Event+Mediator
>>
>>
>> On Wed, Apr 16, 2014 at 4:57 PM, Denuwanthi De Silva <denuwan...@wso2.com
>> > wrote:
>>
>>>
>>> Hi,
>>>
>>> I tried the sample in [1].
>>> When I send a request using Axis2 Client with "ant stockquote -Dtrpurl=
>>> http://localhost:8280 -Dsymbol=foo" command, it gives an AxisFault, as
>>> follows:
>>>
>>>  [java] 14/04/16 14:49:00 ERROR sandesha2.SandeshaModule: Could not load
>>> module policies. Using default values.
>>>      [java] 14/04/16 14:49:00 INFO mail.MailTransportSender: MAILTO
>>> Sender started
>>>      [java] 14/04/16 14:49:00 INFO jms.JMSSender: JMS Sender started
>>>      [java] 14/04/16 14:49:00 INFO jms.JMSSender: JMS Transport Sender
>>> initialized...
>>>      *[java] org.apache.axis2.AxisFault: The input stream for an
>>> incoming message is null.*
>>>      [java]     at
>>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:93)
>>>      [java]     at
>>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:68)
>>>      [java]     at
>>> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:348)
>>>      [java]     at
>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
>>>      [java]     at
>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>>>      [java]     at
>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>>      [java]     at
>>> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
>>>      [java]     at
>>> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
>>>      [java]     at
>>> samples.userguide.StockQuoteClient.executeClient(Unknown Source)
>>>      [java]     at samples.userguide.StockQuoteClient.main(Unknown
>>> Source)
>>>
>>> BUILD SUCCESSFUL
>>>
>>> Can somebody point out what the issue is?
>>>
>>> [1]
>>> https://docs.wso2.org/display/IntegrationPatterns/Publish-Subscribe+Channel
>>> --
>>> Denuwanthi De Silva
>>> Software Engineer;
>>> WSO2 Inc.; http://wso2.com,
>>> Email: denuwan...@wso2.com
>>>
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards
>>
>> Samith Dassanayake
>> Software Engineer, WSO2 Inc.
>> Mobile: +94776207351
>>
>>
>
>
> --
> Denuwanthi De Silva
> Software Engineer;
> WSO2 Inc.; http://wso2.com,
> Email: denuwan...@wso2.com
>
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to