Hi Eranda,

Well, I have changed to the port number in RabbitMQ Store configuration.

*Message Processor like below.*

<messageStore name="RabbitMQ" class="org.apache.synapse.
message.store.impl.rabbitmq.RabbitMQStore" xmlns="http://ws.apache.org/
ns/synapse">
   <parameter name="store.rabbitmq.host.name">127.0.0.1</parameter>
   <parameter name="store.rabbitmq.host.port">5672</parameter>
   <parameter name="store.rabbitmq.queue.name">RabbitMS_Queue</parameter>
   <parameter name="store.producer.guaranteed.delivery.enable">
true</parameter>
   <parameter name="store.failover.message.store.name">InMemoryStore</
parameter>
</messageStore>


After that I got below response




[2018-01-07 22:40:24,254] [EI-Core] DEBUG - header >> "POST
/services/MSMP.MSMPHttpSoap12Endpoint HTTP/1.1[\r][\n]"
[2018-01-07 22:40:24,255] [EI-Core] DEBUG - header >> "Content-Type:
application/soap+xml; charset=UTF-8; action="urn:mediate"[\r][\n]"
[2018-01-07 22:40:24,256] [EI-Core] DEBUG - header >> "Cookie:
menuPanel=visible; menuPanelType=main; region1_configure_menu=none;
region3_registry_menu=none; region4_monitor_menu=none;
region5_tools_menu=none;
wso2.carbon.rememberme=admin-0fcf06d6-0bce-4889-bfa4-e90824857bc1;
MSG15153308979020.44872799565610855=true;
MSG15153309964540.9715582563145939=true;
MSG15153310279120.5745849191246893=true;
MSG15153310508710.7582163507024167=true; m=2258:Z3Vlc3Q6Z3Vlc3Q%253D;
requestedURI=../../carbon/admin/index.jsp;
JSESSIONID=B36674C95012F4620A4D327AFD764039;
current-breadcrumb=manage_menu%252Cmediation_menu%252CmessageProcessor_menu%2523[\r][\n]"
[2018-01-07 22:40:24,256] [EI-Core] DEBUG - header >> "User-Agent:
Axis2[\r][\n]"
[2018-01-07 22:40:24,256] [EI-Core] DEBUG - header >> "Host:
senuwan-ThinkPad:8280[\r][\n]"
[2018-01-07 22:40:24,257] [EI-Core] DEBUG - header >> "Transfer-Encoding:
chunked[\r][\n]"
[2018-01-07 22:40:24,257] [EI-Core] DEBUG - header >> "[\r][\n]"
[2018-01-07 22:40:24,257] [EI-Core] DEBUG - content >> "92[\r][\n]"
[2018-01-07 22:40:24,257] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 >> "POST /services/MSMP.MSMPHttpSoap12Endpoint
HTTP/1.1[\r][\n]"
[2018-01-07 22:40:24,258] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 >> "Content-Type: application/soap+xml; charset=UTF-8;
action="urn:mediate"[\r][\n]"
[2018-01-07 22:40:24,258] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 >> "Cookie: menuPanel=visible; menuPanelType=main;
region1_configure_menu=none; region3_registry_menu=none;
region4_monitor_menu=none; region5_tools_menu=none;
wso2.carbon.rememberme=admin-0fcf06d6-0bce-4889-bfa4-e90824857bc1;
MSG15153308979020.44872799565610855=true;
MSG15153309964540.9715582563145939=true;
MSG15153310279120.5745849191246893=true;
MSG15153310508710.7582163507024167=true; m=2258:Z3Vlc3Q6Z3Vlc3Q%253D;
requestedURI=../../carbon/admin/index.jsp;
JSESSIONID=B36674C95012F4620A4D327AFD764039;
current-breadcrumb=manage_menu%252Cmediation_menu%252CmessageProcessor_menu%2523[\r][\n]"
[2018-01-07 22:40:24,258] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 >> "User-Agent: Axis2[\r][\n]"
[2018-01-07 22:40:24,259] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 >> "Host: senuwan-ThinkPad:8280[\r][\n]"
[2018-01-07 22:40:24,259] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 >> "Transfer-Encoding: chunked[\r][\n]"
[2018-01-07 22:40:24,259] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 >> "[\r][\n]"
[2018-01-07 22:40:24,265] [EI-Core] DEBUG - content >> "<?xml version='1.0'
encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="
http://www.w3.org/2003/05/soap-envelope";><soapenv:Body/></soapenv:Envelope>"
[2018-01-07 22:40:24,266] [EI-Core] DEBUG - content >> "[\r][\n]"
[2018-01-07 22:40:24,266] [EI-Core] DEBUG - content >> "0"
[2018-01-07 22:40:24,266] [EI-Core] DEBUG - content >> "[\r][\n]"
[2018-01-07 22:40:24,267] [EI-Core] DEBUG - content >> "[\r][\n]"
[2018-01-07 22:40:24,267] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 >> "92[\r][\n]"
[2018-01-07 22:40:24,267] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope
"><soapenv:Body/></soapenv:Envelope>[\r][\n]"
[2018-01-07 22:40:24,267] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 >> "0[\r][\n]"
[2018-01-07 22:40:24,268] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 >> "[\r][\n]"
[2018-01-07 22:40:24,269] [EI-Core]  INFO - LogMediator To:
/services/MSMP.MSMPHttpSoap12Endpoint, WSAction: urn:mediate, SOAPAction:
urn:mediate, MessageID: urn:uuid:995be5dd-abc8-4870-9319-1acb122ce96d,
Direction: request, Envelope: <?xml version='1.0'
encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="
http://www.w3.org/2003/05/soap-envelope";><soapenv:Body/></soapenv:Envelope>
[2018-01-07 22:40:24,283] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 << "HTTP/1.1 202 Accepted[\r][\n]"
[2018-01-07 22:40:24,283] [EI-Core] DEBUG - header << "HTTP/1.1 202
Accepted[\r][\n]"
[2018-01-07 22:40:24,283] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 << "Date: Sun, 07 Jan 2018 17:10:24 GMT[\r][\n]"
[2018-01-07 22:40:24,283] [EI-Core] DEBUG - header << "HTTP/1.1 202
Accepted[\r][\n]"
[2018-01-07 22:40:24,284] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 << "Transfer-Encoding: chunked[\r][\n]"
[2018-01-07 22:40:24,284] [EI-Core] DEBUG - header << "Date: Sun, 07 Jan
2018 17:10:24 GMT[\r][\n]"
[2018-01-07 22:40:24,284] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 << "[\r][\n]"
[2018-01-07 22:40:24,284] [EI-Core] DEBUG - header << "Transfer-Encoding:
chunked[\r][\n]"
[2018-01-07 22:40:24,284] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 << "0[\r][\n]"
[2018-01-07 22:40:24,284] [EI-Core] DEBUG - header << "[\r][\n]"
[2018-01-07 22:40:24,284] [EI-Core] DEBUG - wire HTTP-Listener I/O
dispatcher-1 << "[\r][\n]"
[2018-01-07 22:40:24,284] [EI-Core] DEBUG - content << "0"
[2018-01-07 22:40:24,284] [EI-Core] DEBUG - content << "[\r]"
[2018-01-07 22:40:24,284] [EI-Core] DEBUG - content << "[\n]"
[2018-01-07 22:40:24,285] [EI-Core] DEBUG - content << "[\r]"
[2018-01-07 22:40:24,285] [EI-Core] DEBUG - content << "[\n]"
[2018-01-07 22:40:24,285] [EI-Core] DEBUG - header << "[\r][\n]"



But Still RabbitMQ message store displayed as "Not Applicable". Status .


Thanks.
​*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : [email protected]
Mobile: 94773212853
Web: http://www.wso2.com



On Sun, Jan 7, 2018 at 10:31 PM, Eranda Rajapakshe <[email protected]> wrote:

> Hi Senuwan,
>
> I think the port you have used to connect to the RabbitMQ server is
> incorrect. Assuming that you have not changed the port of the RabbitMQ, it
> should be *5672. *Update that in RabbitMQ Store configuration and see.
>
> 15672 is the port they use for Management Console.
>
> Thanks,
>
> On Sun, Jan 7, 2018 at 10:10 PM, Senuwan Withana <[email protected]> wrote:
>
>> Hi Team,
>>
>> According to my scenario, I have installed RabbitMQ. I could able to log
>> RabbitMQ management console successfully  by using below url.
>>
>> [1]. http://localhost:15672/#
>>
>> *Message Store like below.*
>>
>> <messageStore name="RabbitMQ" class="org.apache.synapse.mess
>> age.store.impl.rabbitmq.RabbitMQStore" xmlns="http://ws.apache.org/ns
>> /synapse">
>>    <parameter name="store.rabbitmq.host.name">localhost</parameter>
>>    <parameter name="store.rabbitmq.host.port">15672</parameter>
>>    <parameter name="store.rabbitmq.queue.name">RabbitMS_Queue</parameter>
>>    <parameter name="store.producer.guaranteed.delivery.enable">true</
>> parameter>
>>    <parameter name="store.failover.message.store.name
>> ">InMemoryStore</parameter>
>> </messageStore>
>>
>>
>> *Message Processor like below.*
>>
>> <messageStore name="RabbitMQ" class="org.apache.synapse.mess
>> age.store.impl.rabbitmq.RabbitMQStore" xmlns="http://ws.apache.org/ns
>> /synapse">
>>    <parameter name="store.rabbitmq.host.name">localhost</parameter>
>>    <parameter name="store.rabbitmq.host.port">15672</parameter>
>>    <parameter name="store.rabbitmq.queue.name">RabbitMS_Queue</parameter>
>>    <parameter name="store.producer.guaranteed.delivery.enable">true</
>> parameter>
>>    <parameter name="store.failover.message.store.name
>> ">InMemoryStore</parameter>
>> </messageStore>
>>
>>
>>
>> *Sample Proxy like below*
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <proxy xmlns="http://ws.apache.org/ns/synapse";
>>        name="MSMP"
>>        startOnLoad="true"
>>        statistics="disable"
>>        trace="disable"
>>        transports="http,https">
>>    <target>
>>       <inSequence>
>>          <property name="FORCE_SC_ACCEPTED" scope="axis2" value="true"/>
>>          <property name="target.endpoint" value="SimpleStockQuoteService
>> "/>
>>          <log level="full"/>
>>          <store messageStore="RabbitMQ"/>
>>       </inSequence>
>>    </target>
>>    <description/>
>> </proxy>
>>
>>
>> However created Message store is displayed like below;
>>
>>
>> Sample Output :
>>
>>
>> [2018-01-07 20:35:06,688] [EI-Core] DEBUG - header >> "POST
>> /services/MSMP.MSMPHttpSoap12Endpoint HTTP/1.1[\r][\n]"
>> [2018-01-07 20:35:06,691] [EI-Core] DEBUG - header >> "Content-Type:
>> application/soap+xml; charset=UTF-8; action="urn:mediate"[\r][\n]"
>> [2018-01-07 20:35:06,691] [EI-Core] DEBUG - header >> "Cookie:
>> menuPanel=visible; menuPanelType=main; region1_configure_menu=none;
>> region3_registry_menu=none; region4_monitor_menu=none;
>> region5_tools_menu=none; wso2.carbon.rememberme=admin-0
>> fcf06d6-0bce-4889-bfa4-e90824857bc1; 
>> MSG15153308979020.44872799565610855=true;
>> MSG15153309964540.9715582563145939=true; 
>> MSG15153310279120.5745849191246893=true;
>> MSG15153310508710.7582163507024167=true; m=2258:Z3Vlc3Q6Z3Vlc3Q%253D;
>> JSESSIONID=760A7D05AFD555FC5A904276E1B8731F;
>> requestedURI="../../carbon/proxyservices/templates.jsp?regio
>> n=region1&item=proxy_services_menu"; current-breadcrumb=manage_menu
>> %252Cmediation_menu%252CmessageProcessor_menu%2523[\r][\n]"
>> [2018-01-07 20:35:06,692] [EI-Core] DEBUG - header >> "User-Agent:
>> Axis2[\r][\n]"
>> [2018-01-07 20:35:06,693] [EI-Core] DEBUG - header >> "Host:
>> senuwan-ThinkPad:8280[\r][\n]"
>> [2018-01-07 20:35:06,694] [EI-Core] DEBUG - header >> "Transfer-Encoding:
>> chunked[\r][\n]"
>> [2018-01-07 20:35:06,694] [EI-Core] DEBUG - header >> "[\r][\n]"
>> [2018-01-07 20:35:06,695] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "POST /services/MSMP.MSMPHttpSoap12Endpoint
>> HTTP/1.1[\r][\n]"
>> [2018-01-07 20:35:06,697] [EI-Core] DEBUG - content >> "92[\r][\n]"
>> [2018-01-07 20:35:06,698] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Content-Type: application/soap+xml; charset=UTF-8;
>> action="urn:mediate"[\r][\n]"
>> [2018-01-07 20:35:06,707] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Cookie: menuPanel=visible; menuPanelType=main;
>> region1_configure_menu=none; region3_registry_menu=none;
>> region4_monitor_menu=none; region5_tools_menu=none;
>> wso2.carbon.rememberme=admin-0fcf06d6-0bce-4889-bfa4-e90824857bc1;
>> MSG15153308979020.44872799565610855=true; 
>> MSG15153309964540.9715582563145939=true;
>> MSG15153310279120.5745849191246893=true; 
>> MSG15153310508710.7582163507024167=true;
>> m=2258:Z3Vlc3Q6Z3Vlc3Q%253D; JSESSIONID=760A7D05AFD555FC5A904276E1B8731F;
>> requestedURI="../../carbon/proxyservices/templates.jsp?regio
>> n=region1&item=proxy_services_menu"; current-breadcrumb=manage_menu
>> %252Cmediation_menu%252CmessageProcessor_menu%2523[\r][\n]"
>> [2018-01-07 20:35:06,707] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "User-Agent: Axis2[\r][\n]"
>> [2018-01-07 20:35:06,708] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Host: senuwan-ThinkPad:8280[\r][\n]"
>> [2018-01-07 20:35:06,708] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "Transfer-Encoding: chunked[\r][\n]"
>> [2018-01-07 20:35:06,708] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\r][\n]"
>> [2018-01-07 20:35:06,710] [EI-Core] DEBUG - content >> "<?xml
>> version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="
>> http://www.w3.org/2003/05/soap-envelope";><soa
>> penv:Body/></soapenv:Envelope>"
>> [2018-01-07 20:35:06,715] [EI-Core] DEBUG - content >> "[\r][\n]"
>> [2018-01-07 20:35:06,715] [EI-Core] DEBUG - content >> "0"
>> [2018-01-07 20:35:06,715] [EI-Core] DEBUG - content >> "[\r][\n]"
>> [2018-01-07 20:35:06,715] [EI-Core] DEBUG - content >> "[\r][\n]"
>> [2018-01-07 20:35:06,716] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "92[\r][\n]"
>> [2018-01-07 20:35:06,716] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";><soa
>> penv:Body/></soapenv:Envelope>[\r][\n]"
>> [2018-01-07 20:35:06,716] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "0[\r][\n]"
>> [2018-01-07 20:35:06,716] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 >> "[\r][\n]"
>> [2018-01-07 20:35:06,720] [EI-Core]  INFO - LogMediator To:
>> /services/MSMP.MSMPHttpSoap12Endpoint, WSAction: urn:mediate,
>> SOAPAction: urn:mediate, MessageID: 
>> urn:uuid:3e7c884c-a3aa-4219-944c-19c73d02fee1,
>> Direction: request, Envelope: <?xml version='1.0'
>> encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.o
>> rg/2003/05/soap-envelope"><soapenv:Body/></soapenv:Envelope>
>> *[2018-01-07 20:35:11,678] [EI-Core] ERROR - RabbitMQStore Store
>> [RabbitMQ] cannot create connection to the broker.java.io.IOException*
>> [2018-01-07 20:35:11,679] [EI-Core]  WARN - RabbitMQProducer
>> [RabbitMQ-P-4]. Ignored MessageID : urn:uuid:d1ebee4e-7b73-4a47-bd
>> 20-fe2f6bdca3a6
>> [2018-01-07 20:35:11,680] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 << "HTTP/1.1 202 Accepted[\r][\n]"
>> [2018-01-07 20:35:11,680] [EI-Core] DEBUG - header << "HTTP/1.1 202
>> Accepted[\r][\n]"
>> [2018-01-07 20:35:11,681] [EI-Core] DEBUG - header << "HTTP/1.1 202
>> Accepted[\r][\n]"
>> [2018-01-07 20:35:11,680] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 << "Date: Sun, 07 Jan 2018 15:05:11 GMT[\r][\n]"
>> [2018-01-07 20:35:11,681] [EI-Core] DEBUG - header << "Date: Sun, 07 Jan
>> 2018 15:05:11 GMT[\r][\n]"
>> [2018-01-07 20:35:11,681] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 << "Transfer-Encoding: chunked[\r][\n]"
>> [2018-01-07 20:35:11,682] [EI-Core] DEBUG - header << "Transfer-Encoding:
>> chunked[\r][\n]"
>> [2018-01-07 20:35:11,682] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 << "[\r][\n]"
>> [2018-01-07 20:35:11,682] [EI-Core] DEBUG - header << "[\r][\n]"
>> [2018-01-07 20:35:11,682] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 << "0[\r][\n]"
>> [2018-01-07 20:35:11,683] [EI-Core] DEBUG - wire HTTP-Listener I/O
>> dispatcher-2 << "[\r][\n]"
>> [2018-01-07 20:35:11,683] [EI-Core] DEBUG - content << "0"
>> [2018-01-07 20:35:11,683] [EI-Core] DEBUG - content << "[\r]"
>> [2018-01-07 20:35:11,683] [EI-Core] DEBUG - content << "[\n]"
>> [2018-01-07 20:35:11,684] [EI-Core] DEBUG - content << "[\r]"
>> [2018-01-07 20:35:11,684] [EI-Core] DEBUG - content << "[\n]"
>> [2018-01-07 20:35:11,684] [EI-Core] DEBUG - header << "[\r][\n]"
>> <?xml version="1.0" encoding="UTF-8"?>
>> <proxy xmlns="http://ws.apache.org/ns/synapse";
>>        name="MSMP"
>>        startOnLoad="true"
>>        statistics="disable"
>>        trace="disable"
>>        transports="http,https">
>>    <target>
>>       <inSequence>
>>          <property name="FORCE_SC_ACCEPTED" scope="axis2" value="true"/>
>>          <property name="target.endpoint" value="SimpleStockQuoteService
>> "/>
>>          <log level="full"/>
>>          <store messageStore="RabbitMQ"/>
>>       </inSequence>
>>    </target>
>>    <description/>
>> </proxy>
>>
>>
>>
>> What is the reason for below error and why is the message processor
>> always in deactivated mode
>>
>> *[2018-01-07 20:35:11,678] [EI-Core] ERROR - RabbitMQStore Store
>> [RabbitMQ] cannot create connection to the broker.java.io.IOException*
>>
>>
>> ​
>>
>> Waiting for favourable reply.
>>
>>
>> Thanks.
>> *Senuwan Withana*
>> Software Engineer - Support Team | WSO2
>>
>> Email : [email protected]
>> Mobile: 94773212853
>> Web: http://www.wso2.com
>>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Eranda Rajapakshe*
> Software Engineer
> WSO2 Inc.
> Mobile : +94784822608
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to