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-configs/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.retrieveKeyTemplateData(KeyTemplateRetriever.java:100) gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util. KeyTemplateRetriever.loadKeyTemplatesFromWebService (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.<init>(Arrays.java:2842) gateway-worker | at java.util.Arrays.asList(Arrays.java:2828) gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util. KeyTemplateRetriever.loadKeyTemplatesFromWebService (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(ReflectiveTypeAdapterFactory. 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.retrieveBlockConditionsData( BlockingConditionRetriever.java:96) gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util. BlockingConditionRetriever.loadBlockingConditionsFromWebService( BlockingConditionRetriever.java:105) gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util. BlockingConditionRetriever.run(BlockingConditionRetriever.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.JsonReader.beginObject( JsonReader.java:388) gateway-worker | at com.google.gson.internal.bind. ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory. java:210) gateway-worker | ... 9 more thanks, -- Supun Malinga
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
