Yes. Getting the same error when running the sample with 2.0.1-SNAPSHOT and
when using inside BPS with v2.0.0.

Regards,
Vinod

On Mon, Aug 22, 2016 at 1:29 PM, Thusitha Thilina Dayaratne <
[email protected]> wrote:

> Hi Vinod,
>
> Are you getting this error when you run the basicauth sample?
>
> Thanks
> Thusitha
>
> On Mon, Aug 22, 2016 at 12:40 PM, Vinod Kavinda <[email protected]> wrote:
>
>> Hi All,
>> I'm trying to use the OAuth2 intercepter from msf4j. I have tried the
>> OAuth2 sample from [1] and getting the following error. Problem seem to be
>> the line [2] where string is expected while a boolean is returned from the
>> response map.
>>
>> Is this a known bug? or am I missing something here?
>>
>> org.wso2.msf4j.internal.InterceptorException: Exception while executing
>> preCalls at org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(Int
>> erceptorExecutor.java:69) at org.wso2.msf4j.internal.MSF4JM
>> essageProcessor.dispatchMethod(MSF4JMessageProcessor.java:113) at
>> org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JM
>> essageProcessor.java:73) at org.wso2.carbon.transport.http
>> .netty.listener.WorkerPoolDispatchingSourceHandler$1.run(Wor
>> kerPoolDispatchingSourceHandler.java:127) at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1142) at java.util.concurrent.ThreadPoo
>> lExecutor$Worker.run(ThreadPoolExecutor.java:617) at
>> java.lang.Thread.run(Thread.java:745)
>>
>> Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast
>> to java.lang.String at org.wso2.msf4j.security.oauth2
>> .OAuth2SecurityInterceptor.validateToken(OAuth2SecurityInter
>> ceptor.java:117) at org.wso2.msf4j.security.oauth2
>> .OAuth2SecurityInterceptor.preCall(OAuth2SecurityInterceptor.java:80) at
>> org.wso2.msf4j.internal.InterceptorExecutor.execPreCalls(Int
>> erceptorExecutor.java:63)
>>
>> ... 6 more
>> [2] - https://github.com/wso2/msf4j/tree/master/samples/oauth2-security
>> [3] - https://github.com/wso2/msf4j/blob/master/core/src/main/
>> java/org/wso2/msf4j/security/oauth2/OAuth2SecurityInterceptor.java#L117
>>
>> --
>> Vinod Kavinda
>> Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>> [image: http://wso2.com/signature]
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog      alokayasoya.blogspot.com
> About    http://about.me/thusithathilina
> <http://wso2.com/signature>
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to