wso2 / product-apim

Welcome to the WSO2 API Manager source code! For info on working with the WSO2 API Manager repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
837 stars 781 forks source link

Throttle Policy Fail #7305

Closed loeb-ift closed 4 years ago

loeb-ift commented 4 years ago

Env. WSO2 APIM 3.1 alpha deployment.toml edited

change hostname;

[hostname] = "$hostname";

Add the proxy port

[transport.https.properties] proxyPort = "443"

Security for admin password

[super_admin] username = "admin" password = "$admin_password" create_admin_account = true

All base on H2 database only

Modify Endpoint

http_endpoint = "http://apigateway.$hostname.com" https_endpoint = "https://apigateway.$hostname.com"

Add new policy Go /admin/api-policy-list; Edit Advanced Throttle Policy -> Name : Deny_All { Default Limits Request Count Request Count: 1 Unit Time: 1 year(s) }

Following Steps Use AB % ab -n 1000 -c 100 -H 'Authorization: Bearer 170619d6-2467-3476-bbd3-90b3eaf4f778' https://apigateway.$hostname.com/hotpages2/1.0.0

This is ApacheBench, Version 2.3 <$Revision: 1843412 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking apigateway.chinatimes.com (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Completed 400 requests Completed 500 requests Completed 600 requests Completed 700 requests Completed 800 requests Completed 900 requests Completed 1000 requests Finished 1000 requests

Server Software: nginx/1.10.3 Server Hostname: apigateway.$hostname.com Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES256-GCM-SHA384,2048,256 Server Temp Key: X25519 253 bits TLS Server Name: apigateway.hostname.com

Document Path: /hotpages2/1.0.0 Document Length: 8718 bytes

Concurrency Level: 100 Time taken for tests: 15.808 seconds Complete requests: 1000 Failed requests: 0 Total transferred: 9308294 bytes HTML transferred: 8718000 bytes Requests per second: 63.26 [#/sec] (mean) Time per request: 1580.784 [ms] (mean) Time per request: 15.808 [ms] (mean, across all concurrent requests) Transfer rate: 575.04 [Kbytes/sec] received

Connection Times (ms) min mean[+/-sd] median max Connect: 31 282 153.4 254 1201 Processing: 41 1239 482.9 1200 2982 Waiting: 41 1238 482.7 1199 2980 Total: 95 1520 490.5 1478 3413

Percentage of the requests served within a certain time (ms) 50% 1478 66% 1627 75% 1806 80% 1916 90% 2312

tail -f wso2-apigw-errors.log

2020-01-22T06:54:41,766 [-] [DataBridge-Core-pool-1-thread-4] ERROR OutputAdapterRuntime Event dropped at Output Adapter 'jmsEventPublisher' for tenant id '-1234', Cannot acquire JNDI context, JMS Connection factory : TopicConnectionFactory or default destinationName : throttleData for JMS CF : jmsEventPublisher using : {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: Cannot acquire JNDI context, JMS Connection factory : TopicConnectionFactory or default destinationName : throttleData for JMS CF : jmsEventPublisher using : {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.(JMSConnectionFactory.java:93) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter.initPublisher(JMSEventAdapter.java:202) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter.connect(JMSEventAdapter.java:135) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.core.internal.OutputAdapterRuntime.publish(OutputAdapterRuntime.java:68) [org.wso2.carbon.event.output.adapter.core_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.core.internal.CarbonOutputEventAdapterService.publish(CarbonOutputEventAdapterService.java:148) [org.wso2.carbon.event.output.adapter.core_5.2.20.jar:?] at org.wso2.carbon.event.publisher.core.internal.EventPublisher.process(EventPublisher.java:428) [org.wso2.carbon.event.publisher.core_5.2.20.jar:?] at org.wso2.carbon.event.publisher.core.internal.EventPublisher.sendEvent(EventPublisher.java:230) [org.wso2.carbon.event.publisher.core_5.2.20.jar:?] at org.wso2.carbon.event.publisher.core.internal.EventPublisher.onEvent(EventPublisher.java:300) [org.wso2.carbon.event.publisher.core_5.2.20.jar:?] at org.wso2.carbon.event.stream.core.internal.EventJunction.sendEvents(EventJunction.java:194) [org.wso2.carbon.event.stream.core_5.2.20.jar:?] at org.wso2.carbon.event.processor.core.internal.listener.SiddhiOutputStreamListener.receive(SiddhiOutputStreamListener.java:104) [org.wso2.carbon.event.processor.core_2.2.11.jar:?] at org.wso2.siddhi.core.stream.output.StreamCallback.receiveEvents(StreamCallback.java:98) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.output.StreamCallback.receive(StreamCallback.java:69) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJunction.java:127) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:328) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.callback.InsertIntoStreamCallback.send(InsertIntoStreamCallback.java:52) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.OutputRateLimiter.sendToCallBacks(OutputRateLimiter.java:80) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.PassThroughOutputRateLimiter.process(PassThroughOutputRateLimiter.java:40) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.processNoGroupBy(QuerySelector.java:121) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.process(QuerySelector.java:86) [siddhi-core_3.2.6.jar:?] at org.wso2.carbon.apimgt.throttling.siddhi.extension.EmitOnStateChange.process(EmitOnStateChange.java:80) [org.wso2.carbon.apimgt.throttling.siddhi.extension_6.6.10.jar:?] at org.wso2.siddhi.core.query.processor.stream.StreamProcessor.processEventChunk(StreamProcessor.java:45) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.processor.stream.AbstractStreamProcessor.process(AbstractStreamProcessor.java:103) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.processAndClear(ProcessStreamReceiver.java:178) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.process(ProcessStreamReceiver.java:88) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.receive(ProcessStreamReceiver.java:113) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJunction.java:127) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:328) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.callback.InsertIntoStreamCallback.send(InsertIntoStreamCallback.java:52) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.OutputRateLimiter.sendToCallBacks(OutputRateLimiter.java:80) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.PassThroughOutputRateLimiter.process(PassThroughOutputRateLimiter.java:40) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.processInBatchGroupBy(QuerySelector.java:251) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.process(QuerySelector.java:78) [siddhi-core_3.2.6.jar:?] at org.wso2.carbon.apimgt.throttling.siddhi.extension.ThrottleStreamProcessor.process(ThrottleStreamProcessor.java:175) [org.wso2.carbon.apimgt.throttling.siddhi.extension_6.6.10.jar:?] at org.wso2.siddhi.core.query.processor.stream.StreamProcessor.processEventChunk(StreamProcessor.java:45) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.processor.stream.AbstractStreamProcessor.process(AbstractStreamProcessor.java:103) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.stream.single.EntryValveProcessor.process(EntryValveProcessor.java:47) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.processor.filter.FilterProcessor.process(FilterProcessor.java:56) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.processAndClear(ProcessStreamReceiver.java:178) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.process(ProcessStreamReceiver.java:88) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.receive(ProcessStreamReceiver.java:113) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJunction.java:127) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:328) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.callback.InsertIntoStreamCallback.send(InsertIntoStreamCallback.java:52) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.OutputRateLimiter.sendToCallBacks(OutputRateLimiter.java:80) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.PassThroughOutputRateLimiter.process(PassThroughOutputRateLimiter.java:40) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.processNoGroupBy(QuerySelector.java:121) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.process(QuerySelector.java:86) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.processAndClear(ProcessStreamReceiver.java:178) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.process(ProcessStreamReceiver.java:88) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.receive(ProcessStreamReceiver.java:174) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendData(StreamJunction.java:219) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.access$200(StreamJunction.java:47) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:348) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.input.InputDistributor.send(InputDistributor.java:49) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.input.InputEntryValve.send(InputEntryValve.java:59) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.input.InputHandler.send(InputHandler.java:51) [siddhi-core_3.2.6.jar:?] at org.wso2.carbon.event.processor.core.internal.listener.SiddhiInputEventDispatcher.sendEvent(SiddhiInputEventDispatcher.java:39) [org.wso2.carbon.event.processor.core_2.2.11.jar:?] at org.wso2.carbon.event.processor.core.internal.listener.AbstractSiddhiInputEventDispatcher.consumeEvent(AbstractSiddhiInputEventDispatcher.java:105) [org.wso2.carbon.event.processor.core_2.2.11.jar:?] at org.wso2.carbon.event.stream.core.internal.EventJunction.sendEvents(EventJunction.java:183) [org.wso2.carbon.event.stream.core_5.2.20.jar:?] at org.wso2.carbon.event.processor.core.internal.listener.SiddhiOutputStreamListener.receive(SiddhiOutputStreamListener.java:104) [org.wso2.carbon.event.processor.core_2.2.11.jar:?] at org.wso2.siddhi.core.stream.output.StreamCallback.receiveEvents(StreamCallback.java:98) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.output.StreamCallback.receive(StreamCallback.java:69) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJunction.java:127) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:328) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.callback.InsertIntoStreamCallback.send(InsertIntoStreamCallback.java:52) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.OutputRateLimiter.sendToCallBacks(OutputRateLimiter.java:80) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.PassThroughOutputRateLimiter.process(PassThroughOutputRateLimiter.java:40) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.processNoGroupBy(QuerySelector.java:121) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.process(QuerySelector.java:86) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.processAndClear(ProcessStreamReceiver.java:178) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.process(ProcessStreamReceiver.java:88) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.receive(ProcessStreamReceiver.java:174) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendData(StreamJunction.java:219) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.access$200(StreamJunction.java:47) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:348) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.input.InputDistributor.send(InputDistributor.java:49) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.input.InputEntryValve.send(InputEntryValve.java:59) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.input.InputHandler.send(InputHandler.java:51) [siddhi-core_3.2.6.jar:?] at org.wso2.carbon.event.processor.core.internal.listener.SiddhiInputEventDispatcher.sendEvent(SiddhiInputEventDispatcher.java:39) [org.wso2.carbon.event.processor.core_2.2.11.jar:?] at org.wso2.carbon.event.processor.core.internal.listener.AbstractSiddhiInputEventDispatcher.consumeEvent(AbstractSiddhiInputEventDispatcher.java:105) [org.wso2.carbon.event.processor.core_2.2.11.jar:?] at org.wso2.carbon.event.stream.core.internal.EventJunction.sendEvent(EventJunction.java:146) [org.wso2.carbon.event.stream.core_5.2.20.jar:?] at org.wso2.carbon.event.receiver.core.internal.management.InputEventDispatcher.onEvent(InputEventDispatcher.java:27) [org.wso2.carbon.event.receiver.core_5.2.20.jar:?] at org.wso2.carbon.event.receiver.core.internal.EventReceiver.sendEvent(EventReceiver.java:294) [org.wso2.carbon.event.receiver.core_5.2.20.jar:?] at org.wso2.carbon.event.receiver.core.internal.EventReceiver.processTypedEvent(EventReceiver.java:257) [org.wso2.carbon.event.receiver.core_5.2.20.jar:?] at org.wso2.carbon.event.receiver.core.internal.EventReceiver$TypedEventSubscription.onEvent(EventReceiver.java:358) [org.wso2.carbon.event.receiver.core_5.2.20.jar:?] at org.wso2.carbon.event.input.adapter.core.internal.InputAdapterRuntime.onEvent(InputAdapterRuntime.java:110) [org.wso2.carbon.event.input.adapter.core_5.2.20.jar:?] at org.wso2.carbon.event.input.adapter.wso2event.internal.ds.WSO2EventAdapterServiceDS$1.receive(WSO2EventAdapterServiceDS.java:100) [org.wso2.carbon.event.input.adapter.wso2event_5.2.20.jar:?] at org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:81) [org.wso2.carbon.databridge.core_5.2.20.jar:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_231] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_231] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_231] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_231] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_231] Caused by: javax.naming.ConfigurationException: Failed to parse entry: User information not found on url between indicies 7 and 1 amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672' ^ due to : User information not found on url at index 7: amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672' at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createFactory(PropertiesFileInitialContextFactory.java:318) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createConnectionFactories(PropertiesFileInitialContextFactory.java:187) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.getInitialContext(PropertiesFileInitialContextFactory.java:153) ~[andes_3.3.11.jar:?] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) ~[?:1.8.0_231] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) ~[?:1.8.0_231] at javax.naming.InitialContext.init(InitialContext.java:244) ~[?:1.8.0_231] at javax.naming.InitialContext.(InitialContext.java:216) ~[?:1.8.0_231] at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.(JMSConnectionFactory.java:84) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] ... 92 more Caused by: org.wso2.andes.url.URLSyntaxException: User information not found on url at index 7: amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672' at org.wso2.andes.url.URLHelper.parseError(URLHelper.java:141) ~[andes_3.3.11.jar:?] at org.wso2.andes.url.URLHelper.parseError(URLHelper.java:136) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.url.URLParser.parseURL(URLParser.java:131) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.url.URLParser.(URLParser.java:51) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.AMQConnectionURL.(AMQConnectionURL.java:65) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.AMQConnectionFactory.(AMQConnectionFactory.java:83) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createFactory(PropertiesFileInitialContextFactory.java:312) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createConnectionFactories(PropertiesFileInitialContextFactory.java:187) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.getInitialContext(PropertiesFileInitialContextFactory.java:153) ~[andes_3.3.11.jar:?] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) ~[?:1.8.0_231] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) ~[?:1.8.0_231] at javax.naming.InitialContext.init(InitialContext.java:244) ~[?:1.8.0_231] at javax.naming.InitialContext.(InitialContext.java:216) ~[?:1.8.0_231] at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.(JMSConnectionFactory.java:84) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] ... 92 more 2020-01-22T06:55:00,003 [-] [Siddhi-carbon.super_resource_james_policy_default-scheduler-thread-2] ERROR OutputAdapterRuntime Event dropped at Output Adapter 'jmsEventPublisher-1.0.0' for tenant id '-1234', Cannot acquire JNDI context, JMS Connection factory : TopicConnectionFactory or default destinationName : throttleData for JMS CF : jmsEventPublisher-1.0.0 using : {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: Cannot acquire JNDI context, JMS Connection factory : TopicConnectionFactory or default destinationName : throttleData for JMS CF : jmsEventPublisher-1.0.0 using : {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.(JMSConnectionFactory.java:93) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter.initPublisher(JMSEventAdapter.java:202) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter.connect(JMSEventAdapter.java:135) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.core.internal.OutputAdapterRuntime.publish(OutputAdapterRuntime.java:68) [org.wso2.carbon.event.output.adapter.core_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.core.internal.CarbonOutputEventAdapterService.publish(CarbonOutputEventAdapterService.java:148) [org.wso2.carbon.event.output.adapter.core_5.2.20.jar:?] at org.wso2.carbon.event.publisher.core.internal.EventPublisher.process(EventPublisher.java:428) [org.wso2.carbon.event.publisher.core_5.2.20.jar:?] at org.wso2.carbon.event.publisher.core.internal.EventPublisher.sendEvent(EventPublisher.java:230) [org.wso2.carbon.event.publisher.core_5.2.20.jar:?] at org.wso2.carbon.event.publisher.core.internal.EventPublisher.onEvent(EventPublisher.java:300) [org.wso2.carbon.event.publisher.core_5.2.20.jar:?] at org.wso2.carbon.event.stream.core.internal.EventJunction.sendEvents(EventJunction.java:194) [org.wso2.carbon.event.stream.core_5.2.20.jar:?] at org.wso2.carbon.event.processor.core.internal.listener.SiddhiOutputStreamListener.receive(SiddhiOutputStreamListener.java:104) [org.wso2.carbon.event.processor.core_2.2.11.jar:?] at org.wso2.siddhi.core.stream.output.StreamCallback.receiveEvents(StreamCallback.java:98) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.output.StreamCallback.receive(StreamCallback.java:69) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJunction.java:127) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:328) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.callback.InsertIntoStreamCallback.send(InsertIntoStreamCallback.java:52) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.OutputRateLimiter.sendToCallBacks(OutputRateLimiter.java:80) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.PassThroughOutputRateLimiter.process(PassThroughOutputRateLimiter.java:40) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.processNoGroupBy(QuerySelector.java:121) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.process(QuerySelector.java:86) [siddhi-core_3.2.6.jar:?] at org.wso2.carbon.apimgt.throttling.siddhi.extension.EmitOnStateChange.process(EmitOnStateChange.java:80) [org.wso2.carbon.apimgt.throttling.siddhi.extension_6.6.10.jar:?] at org.wso2.siddhi.core.query.processor.stream.StreamProcessor.processEventChunk(StreamProcessor.java:45) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.processor.stream.AbstractStreamProcessor.process(AbstractStreamProcessor.java:103) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.processAndClear(ProcessStreamReceiver.java:178) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.process(ProcessStreamReceiver.java:88) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.receive(ProcessStreamReceiver.java:113) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJunction.java:127) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:328) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.callback.InsertIntoStreamCallback.send(InsertIntoStreamCallback.java:52) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.OutputRateLimiter.sendToCallBacks(OutputRateLimiter.java:80) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.PassThroughOutputRateLimiter.process(PassThroughOutputRateLimiter.java:40) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.processInBatchGroupBy(QuerySelector.java:251) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.process(QuerySelector.java:78) [siddhi-core_3.2.6.jar:?] at org.wso2.carbon.apimgt.throttling.siddhi.extension.ThrottleStreamProcessor.process(ThrottleStreamProcessor.java:175) [org.wso2.carbon.apimgt.throttling.siddhi.extension_6.6.10.jar:?] at org.wso2.siddhi.core.query.processor.stream.StreamProcessor.processEventChunk(StreamProcessor.java:45) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.processor.stream.AbstractStreamProcessor.process(AbstractStreamProcessor.java:103) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.stream.single.EntryValveProcessor.process(EntryValveProcessor.java:47) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.util.Scheduler.sendTimerEvents(Scheduler.java:133) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.util.SystemTimeBasedScheduler$EventCaller.run(SystemTimeBasedScheduler.java:80) [siddhi-core_3.2.6.jar:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_231] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_231] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_231] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_231] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_231] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_231] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_231] Caused by: javax.naming.ConfigurationException: Failed to parse entry: User information not found on url between indicies 7 and 1 amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672' ^ due to : User information not found on url at index 7: amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672' at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createFactory(PropertiesFileInitialContextFactory.java:318) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createConnectionFactories(PropertiesFileInitialContextFactory.java:187) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.getInitialContext(PropertiesFileInitialContextFactory.java:153) ~[andes_3.3.11.jar:?] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) ~[?:1.8.0_231] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) ~[?:1.8.0_231] at javax.naming.InitialContext.init(InitialContext.java:244) ~[?:1.8.0_231] at javax.naming.InitialContext.(InitialContext.java:216) ~[?:1.8.0_231] at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.(JMSConnectionFactory.java:84) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] ... 44 more Caused by: org.wso2.andes.url.URLSyntaxException: User information not found on url at index 7: amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672' at org.wso2.andes.url.URLHelper.parseError(URLHelper.java:141) ~[andes_3.3.11.jar:?] at org.wso2.andes.url.URLHelper.parseError(URLHelper.java:136) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.url.URLParser.parseURL(URLParser.java:131) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.url.URLParser.(URLParser.java:51) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.AMQConnectionURL.(AMQConnectionURL.java:65) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.AMQConnectionFactory.(AMQConnectionFactory.java:83) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createFactory(PropertiesFileInitialContextFactory.java:312) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createConnectionFactories(PropertiesFileInitialContextFactory.java:187) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.getInitialContext(PropertiesFileInitialContextFactory.java:153) ~[andes_3.3.11.jar:?] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) ~[?:1.8.0_231] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) ~[?:1.8.0_231] at javax.naming.InitialContext.init(InitialContext.java:244) ~[?:1.8.0_231] at javax.naming.InitialContext.(InitialContext.java:216) ~[?:1.8.0_231] at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.(JMSConnectionFactory.java:84) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] ... 44 more 2020-01-22T07:00:19,538 [-] [https-jsse-nio-9443-exec-41] WARN refresh:jag Something went wrong while refreshing the token 2020-01-22T07:00:19,540 [-] [https-jsse-nio-9443-exec-41] ERROR refresh:jag {} 2020-01-22T07:00:19,559 [-] [https-jsse-nio-9443-exec-2] ERROR AMDefaultKeyManagerImpl Invalid OAuth Token : Invalid Access Token. ACTIVE access token is not found. 2020-01-22T07:00:19,560 [-] [https-jsse-nio-9443-exec-2] ERROR WebAppAuthenticatorImpl Provided access token is invalid 2020-01-22T07:04:03,195 [-] [https-jsse-nio-9443-exec-22] ERROR LocalEntryAdmin Entry with the key 0e5a8023-6bb9-4693-a43f-77d270549e6f does not exist 2020-01-22T07:04:03,204 [-] [https-jsse-nio-9443-exec-22] ERROR LocalEntryAdmin Entry with the key 0e5a8023-6bb9-4693-a43f-77d270549e6f does not exist 2020-01-22T07:08:41,388 [-] [https-jsse-nio-9443-exec-16] ERROR AMDefaultKeyManagerImpl Invalid OAuth Token : Invalid Access Token. ACTIVE access token is not found. 2020-01-22T07:08:41,397 [-] [PassThroughMessageProcessor-43] WARN APIAuthenticationHandler API authentication failure due to Invalid Credentials 2020-01-22T07:09:41,127 [-] [https-jsse-nio-9443-exec-45] ERROR LocalEntryAdmin Entry with the key 0e5a8023-6bb9-4693-a43f-77d270549e6f does not exist 2020-01-22T07:09:41,327 [-] [DataBridge-Core-pool-1-thread-9] ERROR OutputAdapterRuntime Event dropped at Output Adapter 'cacheInvalidationJMSPublisher' for tenant id '-1234', Cannot acquire JNDI context, JMS Connection factory : TopicConnectionFactory or default destinationName : cacheInvalidation for JMS CF : cacheInvalidationJMSPublisher using : {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=cacheInvalidation} org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterRuntimeException: Cannot acquire JNDI context, JMS Connection factory : TopicConnectionFactory or default destinationName : cacheInvalidation for JMS CF : cacheInvalidationJMSPublisher using : {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=cacheInvalidation} at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.(JMSConnectionFactory.java:93) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter.initPublisher(JMSEventAdapter.java:202) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter.connect(JMSEventAdapter.java:135) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.core.internal.OutputAdapterRuntime.publish(OutputAdapterRuntime.java:68) [org.wso2.carbon.event.output.adapter.core_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.core.internal.CarbonOutputEventAdapterService.publish(CarbonOutputEventAdapterService.java:148) [org.wso2.carbon.event.output.adapter.core_5.2.20.jar:?] at org.wso2.carbon.event.publisher.core.internal.EventPublisher.process(EventPublisher.java:428) [org.wso2.carbon.event.publisher.core_5.2.20.jar:?] at org.wso2.carbon.event.publisher.core.internal.EventPublisher.sendEvent(EventPublisher.java:230) [org.wso2.carbon.event.publisher.core_5.2.20.jar:?] at org.wso2.carbon.event.publisher.core.internal.EventPublisher.onEvent(EventPublisher.java:300) [org.wso2.carbon.event.publisher.core_5.2.20.jar:?] at org.wso2.carbon.event.stream.core.internal.EventJunction.sendEvent(EventJunction.java:157) [org.wso2.carbon.event.stream.core_5.2.20.jar:?] at org.wso2.carbon.event.receiver.core.internal.management.InputEventDispatcher.onEvent(InputEventDispatcher.java:27) [org.wso2.carbon.event.receiver.core_5.2.20.jar:?] at org.wso2.carbon.event.receiver.core.internal.EventReceiver.sendEvent(EventReceiver.java:294) [org.wso2.carbon.event.receiver.core_5.2.20.jar:?] at org.wso2.carbon.event.receiver.core.internal.EventReceiver.processTypedEvent(EventReceiver.java:257) [org.wso2.carbon.event.receiver.core_5.2.20.jar:?] at org.wso2.carbon.event.receiver.core.internal.EventReceiver$TypedEventSubscription.onEvent(EventReceiver.java:358) [org.wso2.carbon.event.receiver.core_5.2.20.jar:?] at org.wso2.carbon.event.input.adapter.core.internal.InputAdapterRuntime.onEvent(InputAdapterRuntime.java:110) [org.wso2.carbon.event.input.adapter.core_5.2.20.jar:?] at org.wso2.carbon.event.input.adapter.wso2event.internal.ds.WSO2EventAdapterServiceDS$1.receive(WSO2EventAdapterServiceDS.java:100) [org.wso2.carbon.event.input.adapter.wso2event_5.2.20.jar:?] at org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:81) [org.wso2.carbon.databridge.core_5.2.20.jar:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_231] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_231] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_231] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_231] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_231] Caused by: javax.naming.ConfigurationException: Failed to parse entry: User information not found on url between indicies 7 and 1 amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672' ^ due to : User information not found on url at index 7: amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672' at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createFactory(PropertiesFileInitialContextFactory.java:318) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createConnectionFactories(PropertiesFileInitialContextFactory.java:187) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.getInitialContext(PropertiesFileInitialContextFactory.java:153) ~[andes_3.3.11.jar:?] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) ~[?:1.8.0_231] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) ~[?:1.8.0_231] at javax.naming.InitialContext.init(InitialContext.java:244) ~[?:1.8.0_231] at javax.naming.InitialContext.(InitialContext.java:216) ~[?:1.8.0_231] at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.(JMSConnectionFactory.java:84) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] ... 20 more Caused by: org.wso2.andes.url.URLSyntaxException: User information not found on url at index 7: amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672' at org.wso2.andes.url.URLHelper.parseError(URLHelper.java:141) ~[andes_3.3.11.jar:?] at org.wso2.andes.url.URLHelper.parseError(URLHelper.java:136) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.url.URLParser.parseURL(URLParser.java:131) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.url.URLParser.(URLParser.java:51) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.AMQConnectionURL.(AMQConnectionURL.java:65) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.AMQConnectionFactory.(AMQConnectionFactory.java:83) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createFactory(PropertiesFileInitialContextFactory.java:312) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createConnectionFactories(PropertiesFileInitialContextFactory.java:187) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.getInitialContext(PropertiesFileInitialContextFactory.java:153) ~[andes_3.3.11.jar:?] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) ~[?:1.8.0_231] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) ~[?:1.8.0_231] at javax.naming.InitialContext.init(InitialContext.java:244) ~[?:1.8.0_231] at javax.naming.InitialContext.(InitialContext.java:216) ~[?:1.8.0_231] at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.(JMSConnectionFactory.java:84) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] ... 20 more 2020-01-22T07:10:19,156 [-] [DataBridge-Core-pool-1-thread-10] ERROR OutputAdapterRuntime Event dropped at Output Adapter 'jmsEventPublisher' for tenant id '-1234', Cannot acquire JNDI context, JMS Connection factory : TopicConnectionFactory or default destinationName : throttleData for JMS CF : jmsEventPublisher using : {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: Cannot acquire JNDI context, JMS Connection factory : TopicConnectionFactory or default destinationName : throttleData for JMS CF : jmsEventPublisher using : {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.(JMSConnectionFactory.java:93) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter.initPublisher(JMSEventAdapter.java:202) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter.connect(JMSEventAdapter.java:135) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.core.internal.OutputAdapterRuntime.publish(OutputAdapterRuntime.java:68) [org.wso2.carbon.event.output.adapter.core_5.2.20.jar:?] at org.wso2.carbon.event.output.adapter.core.internal.CarbonOutputEventAdapterService.publish(CarbonOutputEventAdapterService.java:148) [org.wso2.carbon.event.output.adapter.core_5.2.20.jar:?] at org.wso2.carbon.event.publisher.core.internal.EventPublisher.process(EventPublisher.java:428) [org.wso2.carbon.event.publisher.core_5.2.20.jar:?] at org.wso2.carbon.event.publisher.core.internal.EventPublisher.sendEvent(EventPublisher.java:230) [org.wso2.carbon.event.publisher.core_5.2.20.jar:?] at org.wso2.carbon.event.publisher.core.internal.EventPublisher.onEvent(EventPublisher.java:300) [org.wso2.carbon.event.publisher.core_5.2.20.jar:?] at org.wso2.carbon.event.stream.core.internal.EventJunction.sendEvents(EventJunction.java:194) [org.wso2.carbon.event.stream.core_5.2.20.jar:?] at org.wso2.carbon.event.processor.core.internal.listener.SiddhiOutputStreamListener.receive(SiddhiOutputStreamListener.java:104) [org.wso2.carbon.event.processor.core_2.2.11.jar:?] at org.wso2.siddhi.core.stream.output.StreamCallback.receiveEvents(StreamCallback.java:98) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.output.StreamCallback.receive(StreamCallback.java:69) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJunction.java:127) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:328) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.callback.InsertIntoStreamCallback.send(InsertIntoStreamCallback.java:52) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.OutputRateLimiter.sendToCallBacks(OutputRateLimiter.java:80) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.PassThroughOutputRateLimiter.process(PassThroughOutputRateLimiter.java:40) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.processNoGroupBy(QuerySelector.java:121) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.process(QuerySelector.java:86) [siddhi-core_3.2.6.jar:?] at org.wso2.carbon.apimgt.throttling.siddhi.extension.EmitOnStateChange.process(EmitOnStateChange.java:80) [org.wso2.carbon.apimgt.throttling.siddhi.extension_6.6.10.jar:?] at org.wso2.siddhi.core.query.processor.stream.StreamProcessor.processEventChunk(StreamProcessor.java:45) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.processor.stream.AbstractStreamProcessor.process(AbstractStreamProcessor.java:103) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.processAndClear(ProcessStreamReceiver.java:178) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.process(ProcessStreamReceiver.java:88) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.receive(ProcessStreamReceiver.java:113) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJunction.java:127) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:328) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.callback.InsertIntoStreamCallback.send(InsertIntoStreamCallback.java:52) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.OutputRateLimiter.sendToCallBacks(OutputRateLimiter.java:80) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.PassThroughOutputRateLimiter.process(PassThroughOutputRateLimiter.java:40) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.processInBatchGroupBy(QuerySelector.java:251) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.process(QuerySelector.java:78) [siddhi-core_3.2.6.jar:?] at org.wso2.carbon.apimgt.throttling.siddhi.extension.ThrottleStreamProcessor.process(ThrottleStreamProcessor.java:175) [org.wso2.carbon.apimgt.throttling.siddhi.extension_6.6.10.jar:?] at org.wso2.siddhi.core.query.processor.stream.StreamProcessor.processEventChunk(StreamProcessor.java:45) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.processor.stream.AbstractStreamProcessor.process(AbstractStreamProcessor.java:103) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.stream.single.EntryValveProcessor.process(EntryValveProcessor.java:47) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.processor.filter.FilterProcessor.process(FilterProcessor.java:56) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.processAndClear(ProcessStreamReceiver.java:178) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.process(ProcessStreamReceiver.java:88) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.receive(ProcessStreamReceiver.java:113) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJunction.java:127) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:328) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.callback.InsertIntoStreamCallback.send(InsertIntoStreamCallback.java:52) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.OutputRateLimiter.sendToCallBacks(OutputRateLimiter.java:80) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.PassThroughOutputRateLimiter.process(PassThroughOutputRateLimiter.java:40) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.processNoGroupBy(QuerySelector.java:121) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.process(QuerySelector.java:86) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.processAndClear(ProcessStreamReceiver.java:178) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.process(ProcessStreamReceiver.java:88) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.receive(ProcessStreamReceiver.java:174) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendData(StreamJunction.java:219) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.access$200(StreamJunction.java:47) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:348) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.input.InputDistributor.send(InputDistributor.java:49) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.input.InputEntryValve.send(InputEntryValve.java:59) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.input.InputHandler.send(InputHandler.java:51) [siddhi-core_3.2.6.jar:?] at org.wso2.carbon.event.processor.core.internal.listener.SiddhiInputEventDispatcher.sendEvent(SiddhiInputEventDispatcher.java:39) [org.wso2.carbon.event.processor.core_2.2.11.jar:?] at org.wso2.carbon.event.processor.core.internal.listener.AbstractSiddhiInputEventDispatcher.consumeEvent(AbstractSiddhiInputEventDispatcher.java:105) [org.wso2.carbon.event.processor.core_2.2.11.jar:?] at org.wso2.carbon.event.stream.core.internal.EventJunction.sendEvents(EventJunction.java:183) [org.wso2.carbon.event.stream.core_5.2.20.jar:?] at org.wso2.carbon.event.processor.core.internal.listener.SiddhiOutputStreamListener.receive(SiddhiOutputStreamListener.java:104) [org.wso2.carbon.event.processor.core_2.2.11.jar:?] at org.wso2.siddhi.core.stream.output.StreamCallback.receiveEvents(StreamCallback.java:98) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.output.StreamCallback.receive(StreamCallback.java:69) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendEvent(StreamJunction.java:127) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:328) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.callback.InsertIntoStreamCallback.send(InsertIntoStreamCallback.java:52) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.OutputRateLimiter.sendToCallBacks(OutputRateLimiter.java:80) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.output.ratelimit.PassThroughOutputRateLimiter.process(PassThroughOutputRateLimiter.java:40) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.processNoGroupBy(QuerySelector.java:121) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.selector.QuerySelector.process(QuerySelector.java:86) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.processAndClear(ProcessStreamReceiver.java:178) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.process(ProcessStreamReceiver.java:88) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.query.input.ProcessStreamReceiver.receive(ProcessStreamReceiver.java:174) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.sendData(StreamJunction.java:219) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction.access$200(StreamJunction.java:47) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.StreamJunction$Publisher.send(StreamJunction.java:348) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.input.InputDistributor.send(InputDistributor.java:49) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.input.InputEntryValve.send(InputEntryValve.java:59) [siddhi-core_3.2.6.jar:?] at org.wso2.siddhi.core.stream.input.InputHandler.send(InputHandler.java:51) [siddhi-core_3.2.6.jar:?] at org.wso2.carbon.event.processor.core.internal.listener.SiddhiInputEventDispatcher.sendEvent(SiddhiInputEventDispatcher.java:39) [org.wso2.carbon.event.processor.core_2.2.11.jar:?] at org.wso2.carbon.event.processor.core.internal.listener.AbstractSiddhiInputEventDispatcher.consumeEvent(AbstractSiddhiInputEventDispatcher.java:105) [org.wso2.carbon.event.processor.core_2.2.11.jar:?] at org.wso2.carbon.event.stream.core.internal.EventJunction.sendEvent(EventJunction.java:146) [org.wso2.carbon.event.stream.core_5.2.20.jar:?] at org.wso2.carbon.event.receiver.core.internal.management.InputEventDispatcher.onEvent(InputEventDispatcher.java:27) [org.wso2.carbon.event.receiver.core_5.2.20.jar:?] at org.wso2.carbon.event.receiver.core.internal.EventReceiver.sendEvent(EventReceiver.java:294) [org.wso2.carbon.event.receiver.core_5.2.20.jar:?] at org.wso2.carbon.event.receiver.core.internal.EventReceiver.processTypedEvent(EventReceiver.java:257) [org.wso2.carbon.event.receiver.core_5.2.20.jar:?] at org.wso2.carbon.event.receiver.core.internal.EventReceiver$TypedEventSubscription.onEvent(EventReceiver.java:358) [org.wso2.carbon.event.receiver.core_5.2.20.jar:?] at org.wso2.carbon.event.input.adapter.core.internal.InputAdapterRuntime.onEvent(InputAdapterRuntime.java:110) [org.wso2.carbon.event.input.adapter.core_5.2.20.jar:?] at org.wso2.carbon.event.input.adapter.wso2event.internal.ds.WSO2EventAdapterServiceDS$1.receive(WSO2EventAdapterServiceDS.java:100) [org.wso2.carbon.event.input.adapter.wso2event_5.2.20.jar:?] at org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:81) [org.wso2.carbon.databridge.core_5.2.20.jar:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_231] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_231] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_231] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_231] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_231] Caused by: javax.naming.ConfigurationException: Failed to parse entry: User information not found on url between indicies 7 and 1 amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672' ^ due to : User information not found on url at index 7: amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672' at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createFactory(PropertiesFileInitialContextFactory.java:318) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createConnectionFactories(PropertiesFileInitialContextFactory.java:187) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.getInitialContext(PropertiesFileInitialContextFactory.java:153) ~[andes_3.3.11.jar:?] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) ~[?:1.8.0_231] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) ~[?:1.8.0_231] at javax.naming.InitialContext.init(InitialContext.java:244) ~[?:1.8.0_231] at javax.naming.InitialContext.(InitialContext.java:216) ~[?:1.8.0_231] at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.(JMSConnectionFactory.java:84) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?] ... 92 more Caused by: org.wso2.andes.url.URLSyntaxException: User information not found on url at index 7: amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672' at org.wso2.andes.url.URLHelper.parseError(URLHelper.java:141) ~[andes_3.3.11.jar:?] at org.wso2.andes.url.URLHelper.parseError(URLHelper.java:136) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.url.URLParser.parseURL(URLParser.java:131) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.url.URLParser.(URLParser.java:51) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.AMQConnectionURL.(AMQConnectionURL.java:65) ~[andes_3.3.11.jar:?] at org.wso2.andes.client.AMQConnectionFactory.(AMQConnectionFactory.java:83) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createFactory(PropertiesFileInitialContextFactory.java:312) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.createConnectionFactories(PropertiesFileInitialContextFactory.java:187) ~[andes_3.3.11.jar:?] at org.wso2.andes.jndi.PropertiesFileInitialContextFactory.getInitialContext(PropertiesFileInitialContextFactory.java:153) ~[andes_3.3.11.jar:?] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) ~[?:1.8.0_231] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) ~[?:1.8.0_231] at javax.naming.InitialContext.init(InitialContext.java:244) ~[?:1.8.0_231] at javax.naming.InitialContext.(InitialContext.java:216) ~[?:1.8.0_231] at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSConnectionFactory.(JMSConnectionFactory.java:84) ~[org.wso2.carbon.event.output.adapter.jms_5.2.20.jar:?]

loeb-ift commented 4 years ago

@tmkasun would you please give any suggestion?

chamilaadhi commented 4 years ago

Hi, Can you first verify whether this system works by doing a couple of requests manually (say using curl) and verify whether throttling is working. (This is to verify whether the configurations are done correctly and whether the new policy is applied correctly and there are no errors on the carbon logs).

loeb-ift commented 4 years ago

I did use curl well ,it works functionally, Both works fine on devportal try out and terminal. as following curl -i -k -X GET https://gateway.$HOSTNAME.com/hotpages2/1.0.0 -H {apikeys or accesstoken}

loeb-ift commented 4 years ago

$ curl -i -k -X GET "https://apigateway.$HOSTNAME.com/hotpages2/1.0.0" -H "accept: /" -H "Authorization: Bearer a6adf558-8617-3cda-9952-f2dca85d3226" HTTP/1.1 200 OK Server: nginx/1.10.3 Date: Fri, 24 Jan 2020 03:40:10 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Access-Control-Expose-Headers: Alt-Svc: quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000 Cache-Control: public, max-age=180 Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET Access-Control-Allow-Headers: authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,Authorization Age: 93 Via: 1.1 google

chamilaadhi commented 4 years ago

Hi I noticed following error in your provided log.

Caused by: javax.naming.ConfigurationException: Failed to parse entry: User information not found on url between indicies 7 and 1
amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672'
^ due to : User information not found on url at index 7: amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672'

Seems like there is some configuration issue in your setup. As you can see the password is not properly set ({$admin_password}). So can you attach the /repository/conf/api-manager.xml, /repository/conf/jndi.properties and /repository/conf/deployment.toml files in gateway node please? (remove any sensitive information)

loeb-ift commented 4 years ago
jdbc/WSO2AM_DB Synapse false true https://localhost:${mgt.transport.https.port}${carbon.context}services/ ${admin.username} ${admin.password} false false X-JWT-Assertion http://wso2.org/claims SHA256withRSA org.wso2.carbon.apimgt.keymgt.token.JWTGenerator org.wso2.carbon.apimgt.gateway.handlers.security.jwt.generator.APIMgtGatewayJWTGeneratorImpl Production and Sandbox This is a hybrid gateway that handles both production and sandbox token traffic. https://localhost:${mgt.transport.https.port}/services/ ${admin.username} ${admin.password} https://apigateway.chinatimes.com,http://apigateway.chinatimes.com ws://localhost:9099,wss://localhost:8099 true true false false true true true 300 true false {tcp://localhost:7612} ${admin.username} ${admin.password} org.wso2.carbon.apimgt.usage.client.impl.APIUsageStatisticsRestClientImpl https://localhost:7444 ${admin.username} ${admin.password} false true org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher false org.wso2.apimgt.statistics.request 3.0.0 org.wso2.apimgt.statistics.fault 3.0.0 org.wso2.apimgt.statistics.throttle 3.0.0 org.wso2.apimgt.statistics.workflow 1.0.0 org.wso2.analytics.apim.alertStakeholderInfo 1.0.1 org.wso2.botDetectionData.request.stream 1.0.0 https://localhost:${mgt.transport.https.port}${carbon.context}services/ ${admin.username} ${admin.password} WSClient 100 50 org.wso2.carbon.apimgt.keymgt.handlers.DefaultKeyValidationHandler true am_application_scope ^device_.* openid /oauth2/token https://localhost:${https.nio.port}/revoke false false 5000 true http://wso2.org/claims/organization true false https://localhost:${mgt.transport.https.port}/devportal https://localhost:${mgt.transport.https.port}${carbon.context}services/ ${admin.username} ${admin.password} false false true true true false gateway_certificate_alias false https://localhost:${mgt.transport.https.port}/publisher false true true * GET,PUT,POST,DELETE,PATCH,OPTIONS authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction false /api/am/store/{version}/tenants GET,HEAD /api/am/publisher/{version}/swagger.json GET,HEAD /api/am/store/{version}/swagger.json GET,HEAD /api/am/admin/{version}/swagger.json GET,HEAD /api/am/publisher/{version}/swagger.yaml GET,HEAD /api/am/store/{version}/swagger.yaml GET,HEAD /api/am/admin/{version}/swagger.yaml GET,HEAD /api/am/store/{version}/apis GET,HEAD /api/am/store/{version}/apis/{apiId} GET,HEAD /api/am/store/{version}/apis/{apiId}/swagger GET,HEAD /api/am/store/{version}/apis/{apiId}/wsdl GET,HEAD /api/am/store/{version}/apis/{apiId}/comments GET,HEAD /api/am/store/{version}/apis/{apiId}/graphql-schema GET /api/am/store/{version}/apis/{apiId}/documents GET,HEAD /api/am/store/{version}/apis/{apiId}/documents/{documentId} GET,HEAD /api/am/store/{version}/apis/{apiId}/documents/{documentId}/content GET,HEAD /api/am/store/{version}/apis/{apiId}/thumbnail GET,HEAD /api/am/store/{version}/api-products GET,HEAD /api/am/store/{version}/api-products/{apiId} GET,HEAD /api/am/store/{version}/api-products/{apiId}/swagger GET,HEAD /api/am/store/{version}/api-products/{apiId}/documents GET,HEAD /api/am/store/{version}/api-products/{apiId}/documents/{documentId} GET,HEAD /api/am/store/{version}/api-products/{apiId}/documents/{documentId}/content GET,HEAD /api/am/store/{version}/api-products/{apiId}/thumbnail GET,HEAD /api/am/store/{version}/tags GET,HEAD /api/am/store/{version}/tiers/{tierLevel} GET,HEAD /api/am/store/{version}/tiers/{tierLevel}/{tierName} GET,HEAD /api/am/store/{version}/search GET /api/am/store/{version}/settings GET /api/am/publisher/{version}/settings GET /api/am/store/{version}/api-categories GET /api/am/store/{version}/apis GET /api/am/store/{version}/apis/generate-sdk POST /api/am/store/{version}/apis/{apiId}/documents GET /api/am/store/{version}/applications GET /api/am/store/{version}/applications/generate-keys POST /api/am/store/{version}/subscriptions GET,POST /api/am/store/{version}/tags GET /api/am/store/{version}/tiers/{tierLevel} GET /api/am/store/{version}/tiers/{tierLevel}/{tierName} GET /api/am/publisher/{version}/apis GET,POST /api/am/publisher/{version}/apis/{apiId} GET,DELETE,PUT /api/am/publisher/{version}/apis/{apiId}/swagger GET,PUT /api/am/publisher/{version}/apis/{apiId}/thumbnail GET,POST /api/am/publisher/{version}/apis/{apiId}/change-lifecycle POST /api/am/publisher/{version}/apis/{apiId}/copy-api POST /api/am/publisher/{version}/applications/{applicationId} GET /api/am/publisher/{version}/apis/{apiId}/documents GET,POST /api/am/publisher/{version}/apis/{apiId}/documents/{documentId}/content GET,POST /api/am/publisher/{version}/apis/{apiId}/documents/{documentId} GET,PUT,DELETE /api/am/publisher/{version}/environments GET /api/am/publisher/{version}/subscriptions GET /api/am/publisher/{version}/subscriptions/block-subscription POST /api/am/publisher/{version}/subscriptions/{subscriptionId} GET /api/am/publisher/{version}/subscriptions/unblock-subscription POST /api/am/publisher/{version}/tiers/{tierLevel} GET,POST /api/am/publisher/{version}/tiers/{tierLevel}/{tierName} GET,PUT,DELETE /api/am/publisher/{version}/tiers/update-permission POST true Binary tcp://${carbon.local.ip}:${receiver.url.port} ssl://${carbon.local.ip}:${auth.url.port} admin $PASSWORD true 1000 200 200 1000 200 true https://localhost:${mgt.transport.https.port}${carbon.context}services/ admin $PASSWORD true true TopicConnectionFactory topic org.wso2.andes.jndi.PropertiesFileInitialContextFactory amqp://${admin.username}:${admin.password}@clientid/carbon?brokerlist='tcp://${carbon.local.ip}:${jms.port}' true false false false false https://localhost:9445/bpmn ${admin.username} ${admin.password} https://localhost:${mgt.transport.https.port}/api/am/admin/v0.16/workflows/update-workflow-status https://localhost:${https.nio.port}/token https://localhost:${mgt.transport.https.port}/client-registration/v0.14/register ${admin.username} ${admin.password} org.wso2 org.wso2.client. org.wso2.client.model. org.wso2.client.api. android,java,javascript,jmeter org.wso2.carbon.apimgt.impl.monetization.DefaultMonetizationImpl days 1 false zipkin localhost 9411 false
loeb-ift commented 4 years ago

[server] hostname = "apiservice.$HOSTNAME.com" node_ip = "127.0.0.1"

Add the proxy port

[transport.https.properties] proxyPort = "443"

offset=0

mode = "single" #single or ha base_path = "${carbon.protocol}://${carbon.host}:${carbon.management.port}"

discard_empty_caches = false

server_role = "default"

[super_admin] username = "admin" password = "$PASSWORD" create_admin_account = true

[user_store] type = "database_unique_id"

[database.apim_db] type = "h2" url = "jdbc:h2:./repository/database/WSO2AM_DB;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE" username = "wso2carbon" password = "wso2carbon"

[database.shared_db] type = "h2" url = "jdbc:h2:./repository/database/WSO2SHARED_DB;DB_CLOSE_ON_EXIT=FALSE" username = "wso2carbon" password = "wso2carbon"

[keystore.tls] file_name = "wso2carbon.jks" type = "JKS" password = "wso2carbon" alias = "wso2carbon" key_password = "wso2carbon"

[[apim.gateway.environment]] name = "Production and Sandbox" type = "hybrid" display_in_api_console = true description = "This is a hybrid gateway that handles both production and sandbox token traffic." show_as_token_endpoint_url = true service_url = "https://localhost:${mgt.transport.https.port}/services/" username= "${admin.username}" password= "${admin.password}" ws_endpoint = "ws://localhost:9099" wss_endpoint = "wss://localhost:8099" http_endpoint = "http://apigateway.$HOSTNAME.com" https_endpoint = "https://apigateway.$HOSTNAME.com"

[apim.cache.gateway_token]

enable = true

expiry_time = "900s"

[apim.cache.resource]

enable = true

expiry_time = "900s"

[apim.cache.km_token]

enable = false

expiry_time = "15m"

[apim.cache.recent_apis]

enable = false

[apim.cache.scopes]

enable = true

[apim.cache.publisher_roles]

enable = true

[apim.cache.jwt_claim]

enable = true

expiry_time = "15m"

[apim.cache.tags]

expiry_time = "2m"

[apim.analytics]

enable = false

store_api_url = "https://localhost:7444"

username = "$ref{super_admin.username}"

password = "$ref{super_admin.password}"

event_publisher_type = "default"

event_publisher_impl = "org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher"

publish_response_size = true

[[apim.analytics.url_group]]

analytics_url =["tcp://analytics1:7611","tcp://analytics2:7611"]

analytics_auth_url =["ssl://analytics1:7711","ssl://analytics2:7711"]

type = "loadbalance"

[[apim.analytics.url_group]]

analytics_url =["tcp://analytics1:7612","tcp://analytics2:7612"]

analytics_auth_url =["ssl://analytics1:7712","ssl://analytics2:7712"]

type = "failover"

[apim.key_manager]

service_url = "https://localhost:${mgt.transport.https.port}/services/"

username = "$ref{super_admin.username}"

password = "$ref{super_admin.password}"

pool.init_idle_capacity = 50

pool.max_idle = 100

key_validation_handler_type = "default"

key_validation_handler_type = "custom"

key_validation_handler_impl = "org.wso2.carbon.apimgt.keymgt.handlers.DefaultKeyValidationHandler"

[apim.idp]

authorize_endpoint = "https://localhost:${mgt.transport.https.port}/oauth2/authorize"

oidc_logout_endpoint = "https://localhost:${mgt.transport.https.port}/oidc/logout"

[apim.jwt]

enable = true

encoding = "base64" # base64,base64url

generator_impl = "org.wso2.carbon.apimgt.keymgt.token.JWTGenerator"

claim_dialect = "http://wso2.org/claims"

header = "X-JWT-Assertion"

signing_algorithm = "SHA256withRSA"

enable_user_claims = true

claims_extractor_impl = "org.wso2.carbon.apimgt.impl.token.DefaultClaimsRetriever"

[apim.oauth_config]

enable_outbound_auth_header = false

auth_header = "Authorization"

revoke_endpoint = "https://localhost:${https.nio.port}/revoke"

enable_token_encryption = false

enable_token_hashing = false

[apim.devportal]

url = "https://localhost:${mgt.transport.https.port}/devportal"

enable_application_sharing = false

if application_sharing_type, application_sharing_impl both defined priority goes to application_sharing_impl

application_sharing_type = "default" #changed type, saml, default #todo: check the new config for rest api

application_sharing_impl = "org.wso2.carbon.apimgt.impl.SAMLGroupIDExtractorImpl"

display_multiple_versions = false

display_deprecated_apis = false

enable_comments = true

enable_ratings = true

enable_forum = true

[apim.cors] allow_origins = "*" allow_methods = ["GET","PUT","POST","DELETE","PATCH","OPTIONS"] allow_headers = ["authorization","Access-Control-Allow-Origin","Content-Type","SOAPAction"] allow_credentials = false

[apim.throttling]

enable_data_publishing = true

enable_policy_deploy = true

enable_blacklist_condition = true

enable_persistence = true

throttle_decision_endpoints = ["tcp://localhost:5672","tcp://localhost:5672"]

[apim.throttling.blacklist_condition]

start_delay = "5m"

period = "1h"

[apim.throttling.jms]

start_delay = "5m"

[apim.throttling.event_sync]

hostName = "0.0.0.0"

port = 11224

[apim.throttling.event_management]

hostName = "0.0.0.0"

port = 10005

[[apim.throttling.url_group]]

traffic_manager_urls = ["tcp://localhost:9611","tcp://localhost:9611"]

traffic_manager_auth_urls = ["ssl://localhost:9711","ssl://localhost:9711"]

type = "loadbalance"

[[apim.throttling.url_group]]

traffic_manager_urls = ["tcp://localhost:9611","tcp://localhost:9611"]

traffic_manager_auth_urls = ["ssl://localhost:9711","ssl://localhost:9711"]

type = "failover"

[apim.workflow]

enable = false

service_url = "https://localhost:9445/bpmn"

username = "$ref{super_admin.username}"

password = "$ref{super_admin.password}"

callback_endpoint = "https://localhost:${mgt.transport.https.port}/api/am/admin/v0.16/workflows/update-workflow-status"

token_endpoint = "https://localhost:${https.nio.port}/token"

client_registration_endpoint = "https://localhost:${mgt.transport.https.port}/client-registration/v0.16/register"

client_registration_username = "$ref{super_admin.username}"

client_registration_password = "$ref{super_admin.password}"

data bridge config

[transport.receiver]

type = "binary"

worker_threads = 10

session_timeout = "30m"

keystore.file_name = "$ref{keystore.tls.file_name}"

keystore.password = "$ref{keystore.tls.password}"

tcp_port = 9611

ssl_port = 9711

ssl_receiver_thread_pool_size = 100

tcp_receiver_thread_pool_size = 100

ssl_enabled_protocols = ["TLSv1","TLSv1.1","TLSv1.2"]

ciphers = ["SSL_RSA_WITH_RC4_128_MD5","SSL_RSA_WITH_RC4_128_SHA"]

[apim.notification]

from_address = "APIM.com"

username = "APIM"

password = "APIM+123"

hostname = "localhost"

port = 3025

enable_start_tls = false

enable_authentication = true

[apim.token.revocation]

notifier_impl = "org.wso2.carbon.apimgt.keymgt.events.TokenRevocationNotifierImpl"

enable_realtime_notifier = true

realtime_notifier.ttl = 5000

enable_persistent_notifier = true

persistent_notifier.hostname = "https://localhost:2379/v2/keys/jti/"

persistent_notifier.ttl = 5000

persistent_notifier.username = "root"

persistent_notifier.password = "root"

[[event_handler]] name="userPostSelfRegistration" subscriptions=["POST_ADD_USER"]

[service_provider] sp_nameregex = "^[\sa-zA-Z0-9.-]*$" root@wso2am-313:/opt/wso2am-3.1.0-alpha/repository/conf#

loeb-ift commented 4 years ago

#

Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.

    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #     http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    #

    # register some connection factories
    # connectionfactory.[jndiname] = [ConnectionURL]
    #connectionfactory.TopicConnectionFactory = amqp://admin:$PASSWORD@clientid/carbon?brokerlist='?retries='5'%26connectdelay='50';'

    connectionfactory.TopicConnectionFactory = amqp://admin:$PASSWORD@clientid/carbon?brokerlist='tcp://${carbon.local.ip}:${jms.port}'

    # register some queues in JNDI using the form
    # queue.[jndiName] = [physicalName]
    #queue.MyQueue = example.MyQueue

    # register some topics in JNDI using the form
    # topic.[jndiName] = [physicalName]
    topic.throttleData = throttleData
    topic.tokenRevocation = tokenRevocation
    topic.cacheInvalidation = cacheInvalidation
loeb-ift commented 4 years ago

Actually I only modified the deployment.toml 1.change hostname 2.add Proxy port 443 3.change default password from "admin" to the new password $PASSWORD 4.change http_endpoint & https_endpoint

and I am sure the api-manager.xml & jndi.properity would been configured by deployment.toml when service startup.(I did not edited api-manager.xml & jndi.properity ,but I saw the password in both would be changed to new password "$PASSWORD" ,not default password.

chamilaadhi commented 4 years ago

If you change the default password, It will affect all the other places which use this default password and places in api-manager.xml which refer ${admin.password}. So unless same default password is used in other components (keymanager, traffic manager, etc.) you won't be able to connect to each components correctly.

loeb-ift commented 4 years ago

as above I change the default password in deployment.toml . After service startup. I check the /repository/conf/api-manager.xml, /repository/conf/jndi.properties . The password in both is correctly as same as "Changed Password" in deployment.( I think that is modified by depolyment.toml when service start.) So What's other configurations I need to configure manually!? Any standard process or document to show how to change WSO2APIM3.1's default password? I guess that would not only change the admin password in deployment.toml simply .

loeb-ift commented 4 years ago

The log show message broker error as follow due to : User information not found on url at index 7: amqp://admin:{$admin_password}@clientid/carbon?brokerlist='tcp://10.140.0.47:5672'

That means by the account "admin" with a new password {$admin_password} could not get value in a list[7] !? even new password be changed and all the same in api-manager.xml, jndi.properties,deplyment.toml

loeb-ift commented 4 years ago

After change admin's password back to default password. The exception seems to be gone. I checked the changed new password Include the character "/" . The Slash maybe a "Reserved Word" in PASSWORD !!

MPincay commented 3 years ago

Aun mantengo el mismo problema