Diagram :
​
 am-2.0-pattern-4.png
<https://drive.google.com/a/wso2.com/file/d/0BysLicHQcgnsOXVBWHg3aEtzckE/view?usp=drive_web>
​

On Mon, Aug 22, 2016 at 12:47 PM, Supun Malinga <[email protected]> wrote:

> Hi,
>
> Getting the following exception in gateway worker. Any idea what could be
> causing this ?.
> This is in a distributed cluster with store and KM in same node.
> I can provide any configurations required..
>
> ​
>  am-2.0-pattern-4
> <https://docs.google.com/a/wso2.com/drawings/d/1PuKrNzKd9LMy6CPOGm1ZSxpRZ85peulBMi1CkIraMTM/edit?usp=drive_web>
> ​
>
>
> gateway-worker     | [2016-08-16 09:35:09,422]  INFO - API Destroying API:
> _WSO2AMTokenAPI_
> gateway-worker     | [2016-08-16 09:35:09,426]  INFO - API Initializing
> API: _WSO2AMUserInfoAPI_
> gateway-worker     | [2016-08-16 09:35:09,426]  INFO - DependencyTracker
> API : _WSO2AMUserInfoAPI_ was updated from the Synapse configuration
> successfully
> gateway-worker     | [2016-08-16 09:35:09,426]  INFO - APIDeployer API:
> _WSO2AMUserInfoAPI_ has been updated from the file:
> /mnt/wso2am-2.0.0/repository/deployment/server/synapse-confi
> gs/default/api/_UserInfoAPI_.xml
> gateway-worker     | [2016-08-16 09:35:11,427]  INFO - API Destroying API:
> _WSO2AMUserInfoAPI_
> gateway-worker     | [2016-08-16 09:35:25,783] ERROR -
> KeyTemplateRetriever Exception when retrieving throttling data from remote
> endpoint
> gateway-worker     | Unexpected character (<) at position 0.
> gateway-worker     | at org.json.simple.parser.Yylex.yylex(Unknown Source)
> gateway-worker     | at org.json.simple.parser.JSONParser.nextToken(Unknown
> Source)
> gateway-worker     | at org.json.simple.parser.JSONParser.parse(Unknown
> Source)
> gateway-worker     | at org.json.simple.parser.JSONParser.parse(Unknown
> Source)
> gateway-worker     | at org.json.simple.parser.JSONParser.parse(Unknown
> Source)
> gateway-worker     | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.retrieveKeyTemplateDat
> a(KeyTemplateRetriever.java:100)
> gateway-worker     | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.loadKeyTemplatesFromWe
> bService(KeyTemplateRetriever.java:111)
> gateway-worker     | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
> gateway-worker     | at java.util.TimerThread.mainLoop(Timer.java:555)
> gateway-worker     | at java.util.TimerThread.run(Timer.java:505)
> gateway-worker     | Exception in thread "Timer-6"
> java.lang.NullPointerException
> gateway-worker     | at java.util.Arrays$ArrayList.<in
> it>(Arrays.java:2842)
> gateway-worker     | at java.util.Arrays.asList(Arrays.java:2828)
> gateway-worker     | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.loadKeyTemplatesFromWe
> bService(KeyTemplateRetriever.java:111)
> gateway-worker     | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
> gateway-worker     | at java.util.TimerThread.mainLoop(Timer.java:555)
> gateway-worker     | at java.util.TimerThread.run(Timer.java:505)
> gateway-worker     | Exception in thread "Timer-5"
> com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
> Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
> gateway-worker     | at com.google.gson.internal.bind.
> ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdap
> terFactory.java:221)
> gateway-worker     | at com.google.gson.Gson.fromJson(Gson.java:861)
> gateway-worker     | at com.google.gson.Gson.fromJson(Gson.java:826)
> gateway-worker     | at com.google.gson.Gson.fromJson(Gson.java:775)
> gateway-worker     | at com.google.gson.Gson.fromJson(Gson.java:747)
> gateway-worker     | at org.wso2.carbon.apimgt.gateway
> .throttling.util.BlockingConditionRetriever.retrieveBlockCon
> ditionsData(BlockingConditionRetriever.java:96)
> gateway-worker     | at org.wso2.carbon.apimgt.gateway
> .throttling.util.BlockingConditionRetriever.loadBlockingCond
> itionsFromWebService(BlockingConditionRetriever.java:105)
> gateway-worker     | at org.wso2.carbon.apimgt.gateway
> .throttling.util.BlockingConditionRetriever.run(BlockingCond
> itionRetriever.java:51)
> gateway-worker     | at java.util.TimerThread.mainLoop(Timer.java:555)
> gateway-worker     | at java.util.TimerThread.run(Timer.java:505)
> gateway-worker     | Caused by: java.lang.IllegalStateException: Expected
> BEGIN_OBJECT but was STRING at line 1 column 1 path $
> gateway-worker     | at com.google.gson.stream.JsonRea
> der.beginObject(JsonReader.java:388)
> gateway-worker     | at com.google.gson.internal.bind.
> ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdap
> terFactory.java:210)
> gateway-worker     | ... 9 more
>
> thanks,
> --
> Supun Malinga
>



-- 
Supun Malinga
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to