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(
> InterceptorExecutor.java:69) at org.wso2.msf4j.internal.
> MSF4JMessageProcessor.dispatchMethod(MSF4JMessageProcessor.java:113) at
> org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(
> MSF4JMessageProcessor.java:73) at org.wso2.carbon.transport.
> http.netty.listener.WorkerPoolDispatchingSourceHandler$1.run(
> WorkerPoolDispatchingSourceHandler.java:127) at java.util.concurrent.
> ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at
> java.util.concurrent.ThreadPoolExecutor$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(OAuth2SecurityInterceptor.
> java:117) at org.wso2.msf4j.security.oauth2.OAuth2SecurityInterceptor.
> preCall(OAuth2SecurityInterceptor.java:80) at org.wso2.msf4j.internal.
> InterceptorExecutor.execPreCalls(InterceptorExecutor.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>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to