Hi,

Can you try out the solution provided in [1] and see? This might occur due
to a port conflict as Dinusha mentioned.

[1]
https://stackoverflow.com/questions/42384492/errors-while-starting-wso2-api-manager-2-1-0

On Tue, Dec 5, 2017 at 7:49 PM, Senuwan Withana <senu...@wso2.com> wrote:

> Hi Guys,
>
> Thanks for replying. Well I have used below configuration to GW to
> communicate with the KM
>
> <APIKeyValidator>
>   <ServerURL>https://<IP of the Key Manager>:9443/services/</ServerURL>
>   <Username>${admin.username}</Username>
>   <Password>${admin.password}</Password>
>   ...
> </APIKeyValidator>
>
> Regards,
>
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> On Tue, Dec 5, 2017 at 5:02 PM, Pubudu Gunatilaka <pubu...@wso2.com>
> wrote:
>
>> Hi Senuwan,
>>
>> Make sure you have configured APIKeyValidator in api-manager.xml pointing
>> to APIM key manager. At the server startup, gateway nodes retrieve key
>> templates from the KM.
>>
>> Thank you!
>>
>> On Tue, Dec 5, 2017 at 4:34 PM, Dinusha Dissanayake <dinus...@wso2.com>
>> wrote:
>>
>>> Hi Senuwan,
>>>
>>> Could you please check if there is any port conflict? Looks like
>>> connection has not been established.
>>>
>>> Thanks,
>>> DinushaD.
>>>
>>> On Tue, Dec 5, 2017 at 4:09 PM, Senuwan Withana <senu...@wso2.com>
>>> wrote:
>>>
>>>> Hi Team,
>>>>
>>>> When I up my API Manager worker node, I got below error. Is there any
>>>> way to resolve the below error. I have followed up [1] document as
>>>> reference.
>>>>
>>>> [1] - https://docs.wso2.com/display/AM210/Distributed+Deployment
>>>> +of+the+Gateway#5a69bb14f904452ab5c678035c21178e
>>>>
>>>> [2017-12-05 15:46:15,469] ERROR - KeyTemplateRetriever Exception when
>>>> retrieving throttling data from remote endpoint
>>>> java.net.ConnectException: Connection refused (Connection refused)
>>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>> at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSock
>>>> etImpl.java:350)
>>>> at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPl
>>>> ainSocketImpl.java:206)
>>>> at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocket
>>>> Impl.java:188)
>>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>>>> at java.net.Socket.connect(Socket.java:589)
>>>> at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
>>>> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS
>>>> ocketFactory.java:522)
>>>> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS
>>>> ocketFactory.java:401)
>>>> at org.apache.http.impl.conn.DefaultClientConnectionOperator.op
>>>> enConnection(DefaultClientConnectionOperator.java:178)
>>>> at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoo
>>>> lEntry.java:144)
>>>> at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(Abs
>>>> tractPooledConnAdapter.java:131)
>>>> at org.apache.http.impl.client.DefaultRequestDirector.tryConnec
>>>> t(DefaultRequestDirector.java:610)
>>>> at org.apache.http.impl.client.DefaultRequestDirector.execute(D
>>>> efaultRequestDirector.java:445)
>>>> at org.apache.http.impl.client.AbstractHttpClient.doExecute(Abs
>>>> tractHttpClient.java:863)
>>>> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos
>>>> eableHttpClient.java:82)
>>>> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos
>>>> eableHttpClient.java:106)
>>>> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos
>>>> eableHttpClient.java:57)
>>>> at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRe
>>>> triever.retrieveKeyTemplateData(KeyTemplateRetriever.java:83)
>>>> at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRe
>>>> triever.loadKeyTemplatesFromWebService(KeyTemplateRetriever.java:111)
>>>> at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRe
>>>> triever.run(KeyTemplateRetriever.java:54)
>>>> at java.util.TimerThread.mainLoop(Timer.java:555)
>>>> at java.util.TimerThread.run(Timer.java:505)
>>>> Exception in thread "Timer-5" java.lang.NullPointerException
>>>> at java.util.Objects.requireNonNull(Objects.java:203)
>>>> at java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
>>>> at java.util.Arrays.asList(Arrays.java:3800)
>>>> at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRe
>>>> triever.loadKeyTemplatesFromWebService(KeyTemplateRetriever.java:111)
>>>> at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRe
>>>> triever.run(KeyTemplateRetriever.java:54)
>>>> at java.util.TimerThread.mainLoop(Timer.java:555)
>>>> at java.util.TimerThread.run(Timer.java:505)
>>>> [2017-12-05 15:57:04,008]  INFO - AndesRecoveryTask Running DB sync
>>>> task.
>>>>
>>>> Regards,
>>>>
>>>> *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
>>>>
>>>>
>>>
>>>
>>> --
>>> Dinusha Dissanayake
>>> Software Engineer
>>> WSO2 Inc
>>> Mobile: +94712939439 <+94%2071%20293%209439>
>>> <https://wso2.com/signature>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Pubudu Gunatilaka*
>> Committer and PMC Member - Apache Stratos
>> Senior Software Engineer
>> WSO2, Inc.: http://wso2.com
>> mobile : +94774078049 <%2B94772207163>
>>
>>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chamin Dias
Mobile : 0716097455
Email : cham...@wso2.com
LinkedIn : https://www.linkedin.com/in/chamindias
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to