On Thu, Aug 25, 2016 at 4:45 PM, Supun Malinga <sup...@wso2.com> wrote:

>
>
> On Thu, Aug 25, 2016 at 4:34 PM, Harsha Kumara <hars...@wso2.com> wrote:
>
>> Hi Supun,
>>
>> Did you setup the cluster with old throttling implementation? If it's
>> with new throttling implementation, please check your key manager
>> configuration.  Basically gateway try to fetch initial block conditions
>> details from the key manager.
>>
>
> I know. Found by debugging :). Replied in the SO as well..
>

That SO deployment was strange. It has been done for a demo, and they said
they don't have a key manager at all. Hence the error. :)

Thanks,
Bhathiya


>
>> Thanks,
>> Harsha
>>
>> On Thu, Aug 25, 2016 at 3:58 PM, Abimaran Kugathasan <abima...@wso2.com>
>> wrote:
>>
>>> Hi Supun,
>>>
>>> Same issue was reported here [1] as well, Can you try what Bhathiya has
>>> responded or separate Key Manager from Store?
>>>
>>> [1] : http://stackoverflow.com/questions/39101064/error-on-api-m
>>> anager-2-0-0-gateway-worker-on-start-up
>>>
>>> On Mon, Aug 22, 2016 at 12:50 PM, Supun Malinga <sup...@wso2.com> wrote:
>>>
>>>> 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 <sup...@wso2.com>
>>>> 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(KeyTemplateRetriev
>>>>> er.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(KeyTemplateRetriev
>>>>> er.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
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>> Senior Software Engineer - API Technologies
>>>
>>> Email : abima...@wso2.com
>>> Mobile : +94 773922820
>>>
>>> <http://stackoverflow.com/users/515034>
>>> <http://lk.linkedin.com/in/abimaran>
>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>>> <https://twitter.com/abimaran>
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>
>
>
> --
> Supun Malinga
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com <http://wso2.com>*

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
<http://www.linkedin.com/in/bhathiyaj>*
*Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
*Blog: http://movingaheadblog.blogspot.com
<http://movingaheadblog.blogspot.com/>*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to