Hi Team,

*I have added IP base throttling  to my API Manager pack. *





*When I tried throttling scenario Following error messages popup*

[2017-11-23 12:50:30,421]  INFO - DependencyTracker Local entry :
gov:/apimgt/statistics/ga-config.xml was added to the Synapse configuration
successfully
[2017-11-23 12:50:30,484]  INFO - JMSConnectionFactory JMS
ConnectionFactory : jmsEventPublisher initialized
[2017-11-23 12:50:30,514]  INFO - AMQConnection Unable to connect to broker
at tcp://localhost:5672
org.wso2.andes.transport.TransportException: Could not open connection
at
org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:216)
at
org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:74)
at
org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:130)
at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:631)
at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:628)
at java.security.AccessController.doPrivileged(Native Method)
at
org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:628)
at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:409)
at
org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:351)
at
org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:40)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSUtils.createConnection(JMSUtils.java:387)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.createConnection(JMSConnectionFactory.java:268)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory$PoolableJMSConnectionFactory.makeObject(JMSConnectionFactory.java:356)
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.getConnectionFromPool(JMSConnectionFactory.java:286)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSMessageSender.send(JMSMessageSender.java:86)
at
org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter$JMSSender.run(JMSEventAdapter.java:284)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
[2017-11-23 12:50:30,518] DEBUG - wire HTTPS-Sender I/O dispatcher-2 <<
"GET /services/AsiriPatientService/patient HTTP/1.1[\r][\n]"
[2017-11-23 12:50:30,519] DEBUG - wire HTTPS-Sender I/O dispatcher-2 <<
"Authorization: Basic YWRtaW46YWRtaW4=[\r][\n]"
[2017-11-23 12:50:30,519] DEBUG - wire HTTPS-Sender I/O dispatcher-2 <<
"Origin: https://10.100.7.13:9444[\r][\n]";
[2017-11-23 12:50:30,519] DEBUG - wire HTTPS-Sender I/O dispatcher-2 <<
"X-JWT-Assertion:
eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0=.eyJodHRwOlwvXC93c28yLm9yZ1wvY2xhaW1zXC91c2VyaWQiOiIwMzY0MDVkMC03MDM4LTQxNmUtYTVmYy05M2QzZTc4OWEzZWQiLCJodHRwOlwvXC93c28yLm9yZ1wvY2xhaW1zXC91c2VybmFtZSI6InBhdGllbnQiLCJodHRwOlwvXC93c28yLm9yZ1wvY2xhaW1zXC9yb2xlIjpbIkFwcGxpY2F0aW9uXC9wYXRpZW50X3Nzc3NfUFJPRFVDVElPTiIsIkludGVybmFsXC9zdWJzY3JpYmVyIiwiSW50ZXJuYWxcL2NyZWF0b3IiLCJJbnRlcm5hbFwvcHVibGlzaGVyIiwiSW50ZXJuYWxcL2V2ZXJ5b25lIiwicGF0aWVudFJvbGUiXSwiaHR0cDpcL1wvd3NvMi5vcmdcL2NsYWltc1wvYXBwbGljYXRpb250aWVyIjoiVW5saW1pdGVkIiwiaHR0cDp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-Sender I/O dispatcher-2 <<
"Accept: application/json[\r][\n]"
[2017-11-23 12:50:30,519] DEBUG - wire HTTPS-Sender I/O dispatcher-2 <<
"Referer:
https://10.100.7.13:9444/store/apis/info?name=Asiri&version=v1&provider=admin&tenant=carbon.super[\r][\n]
"
[2017-11-23 12:50:30,519] DEBUG - wire HTTPS-Sender I/O dispatcher-2 <<
"Accept-Encoding: gzip, deflate, br[\r][\n]"
[2017-11-23 12:50:30,519] DEBUG - wire HTTPS-Sender I/O dispatcher-2 <<
"Accept-Language: en-GB,en-US;q=0.9,en;q=0.8[\r][\n]"
[2017-11-23 12:50:30,520] DEBUG - wire HTTPS-Sender I/O dispatcher-2 <<
"Host: localhost:8248[\r][\n]"
[2017-11-23 12:50:30,520] DEBUG - wire HTTPS-Sender I/O dispatcher-2 <<
"Connection: Keep-Alive[\r][\n]"
[2017-11-23 12:50:30,520] DEBUG - wire HTTPS-Sender I/O dispatcher-2 <<
"User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[2017-11-23 12:50:30,520] DEBUG - wire HTTPS-Sender I/O dispatcher-2 <<
"[\r][\n]"
org.wso2.andes.AMQConnectionFailureException: Could not open connection
at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:486)
at
org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:351)
at
org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:40)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSUtils.createConnection(JMSUtils.java:387)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.createConnection(JMSConnectionFactory.java:268)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory$PoolableJMSConnectionFactory.makeObject(JMSConnectionFactory.java:356)
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.getConnectionFromPool(JMSConnectionFactory.java:286)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSMessageSender.send(JMSMessageSender.java:86)
at
org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter$JMSSender.run(JMSEventAdapter.java:284)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.wso2.andes.transport.TransportException: Could not open
connection
at
org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:216)
at
org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:74)
at
org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:130)
at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:631)
at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:628)
at java.security.AccessController.doPrivileged(Native Method)
at
org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:628)
at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:409)
... 14 more
[2017-11-23 12:50:30,520] ERROR - JMSConnectionFactory Error acquiring a
Connection from the JMS CF : jmsEventPublisher using properties :
{transport.jms.ConcurrentPublishers=allow,
java.naming.provider.url=repository/conf/jndi.properties,
java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory,
transport.jms.DestinationType=topic,
transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory,
transport.jms.Destination=throttleData}
javax.jms.JMSException: Error creating connection: Could not open connection
at
org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:361)
at
org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:40)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSUtils.createConnection(JMSUtils.java:387)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.createConnection(JMSConnectionFactory.java:268)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory$PoolableJMSConnectionFactory.makeObject(JMSConnectionFactory.java:356)
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.getConnectionFromPool(JMSConnectionFactory.java:286)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSMessageSender.send(JMSMessageSender.java:86)
at
org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter$JMSSender.run(JMSEventAdapter.java:284)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.wso2.andes.AMQConnectionFailureException: Could not open
connection
at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:486)
at
org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:351)
... 13 more
Caused by: org.wso2.andes.transport.TransportException: Could not open
connection
at
org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:216)
at
org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:74)
at
org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:130)
at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:631)
at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:628)
at java.security.AccessController.doPrivileged(Native Method)
at
org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:628)
at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:409)
... 14 more
[2017-11-23 12:50:30,541] ERROR - JMSConnectionFactory Error acquiring a
Connection from the JMS CF : jmsEventPublisher using properties :
{transport.jms.ConcurrentPublishers=allow,
java.naming.provider.url=repository/conf/jndi.properties,
java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory,
transport.jms.DestinationType=topic,
transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory,
transport.jms.Destination=throttleData}
org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterRuntimeException:
Error acquiring a Connection from the JMS CF : jmsEventPublisher using
properties : {transport.jms.ConcurrentPublishers=allow,
java.naming.provider.url=repository/conf/jndi.properties,
java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory,
transport.jms.DestinationType=topic,
transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory,
transport.jms.Destination=throttleData}
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.handleException(JMSConnectionFactory.java:197)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.createConnection(JMSConnectionFactory.java:278)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory$PoolableJMSConnectionFactory.makeObject(JMSConnectionFactory.java:356)
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.getConnectionFromPool(JMSConnectionFactory.java:286)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSMessageSender.send(JMSMessageSender.java:86)
at
org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter$JMSSender.run(JMSEventAdapter.java:284)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.jms.JMSException: Error creating connection: Could not
open connection
at
org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:361)
at
org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:40)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSUtils.createConnection(JMSUtils.java:387)
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.createConnection(JMSConnectionFactory.java:268)
... 10 more
Caused by: org.wso2.andes.AMQConnectionFailureException: Could not open
connection
at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:486)
at
org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:351)
... 13 more
Caused by: org.wso2.andes.transport.TransportException: Could not open
connection
at
org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:216)
at
org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:74)
at
org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:130)
at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:631)
at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:628)
at java.security.AccessController.doPrivileged(Native Method)
at
org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:628)
at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:409)
... 14 more
[2017-11-23 12:50:30,542] ERROR - JMSMessageSender
java.lang.NullPointerException
at
org.wso2.carbon.event.output.adapter.jms.internal.util.JMSMessageSender.send(JMSMessageSender.java:88)
at
org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter$JMSSender.run(JMSEventAdapter.java:284)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
[2017-11-23 12:50:30,794] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >>
"HTTP/1.1 200 OK[\r][\n]"
[2017-11-23 12:50:30,795] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >>
"Content-Type: application/json; charset=UTF-8[\r][\n]"
[2017-11-23 12:50:30,795] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >>
"Date: Thu, 23 Nov 2017 07:20:30 GMT[\r][\n]"
[2017-11-23 12:50:30,795] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >>
"Transfer-Encoding: chunked[\r][\n]"
[2017-11-23 12:50:30,795] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >>
"Connection: Keep-Alive[\r][\n]"
[2017-11-23 12:50:30,795] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >>
"[\r][\n]"
[2017-11-23 12:50:30,795] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >>
"124[\r][\n]"
[2017-11-23 12:50:30,795] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >>
"{"patient":{"patientFullName":"sfsdsdsfdsfds","patientId":"nuasda123","Medical":{"medical":{"@type":"ax225:Medical","condition":"better","treatment":"ECG"}},"patientContact":{"patientContact":{"@type":"ax225:PatientContact","address":"colombo
03","email":"d...@gmail.com","phone":12321321}}}}[\r][\n]"
[2017-11-23 12:50:30,796] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >>
"0[\r][\n]"
[2017-11-23 12:50:30,796] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >>
"[\r][\n]"
[2017-11-23 12:50:30,801] DEBUG - wire HTTPS-Listener I/O dispatcher-3 <<
"HTTP/1.1 200 OK[\r][\n]"
[2017-11-23 12:50:30,801] DEBUG - wire HTTPS-Listener I/O dispatcher-3 <<
"Access-Control-Allow-Origin: *[\r][\n]"


*Please suggest any suggestions  or solutions to over come above mentioned
issue.*


Thanks,
*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : senu...@wso2.com
Mobile: 94773212853
Web: http://www.wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to