[Apiman-user] Exceptions

Fadi Abdin fadiabdeen at gmail.com
Wed Sep 16 12:41:55 EDT 2015


I'm glad you found it .
Sorry i did not reply to your email before .

On Wed, Sep 16, 2015 at 12:19 PM, Eric Wittmann <eric.wittmann at redhat.com>
wrote:

> Update:  I have been able to reproduce this bug.
>
> The root cause is that two versions of the same plugin policy are being
> use at the same time in the same gateway.  There shouldn't be any
> issue/problem with that, and the fact that an error occurs in this scenario
> is simply a bug in how we are caching the policy configuration info.
>
> Should be an easy fix and will be included in 1.1.9.Final.
>
> -Eric
>
> On 9/14/2015 11:35 AM, Fadi Abdin wrote:
>
>> Things get to work for a while and break ..  Is anyone using apiman in
>> production yet ??  I'm wondering how reliable it is to be used yet .. i
>> can not get it to be stable for a week without problems ..
>>
>> java.lang.ClassCastException:
>> io.apiman.plugins.keycloak_oauth_policy.beans.KeycloakOauthConfigBean
>> cannot be cast to
>> io.apiman.plugins.keycloak_oauth_policy.beans.KeycloakOauthConfigBean
>>         at
>> io.apiman.plugins.keycloak_oauth_policy.KeycloakOauthPolicy.doApply(KeycloakOauthPolicy.java:48)
>>         at
>> io.apiman.gateway.engine.policies.AbstractMappedPolicy.apply(AbstractMappedPolicy.java:71)
>>         at
>> io.apiman.gateway.engine.policy.RequestChain.applyPolicy(RequestChain.java:65)
>>         at io.apiman.gateway.engine.policy.Chain.doApply(Chain.java:148)
>>         at
>> io.apiman.plugins.cors_policy.CorsPolicy.doApply(CorsPolicy.java:88)
>>         at
>> io.apiman.plugins.cors_policy.CorsPolicy.doApply(CorsPolicy.java:40)
>>         at
>> io.apiman.gateway.engine.policies.AbstractMappedPolicy.apply(AbstractMappedPolicy.java:71)
>>         at
>> io.apiman.gateway.engine.policy.RequestChain.applyPolicy(RequestChain.java:65)
>>         at io.apiman.gateway.engine.policy.Chain.doApply(Chain.java:148)
>>         at
>> io.apiman.gateway.engine.impl.ServiceRequestExecutorImpl$2.handle(ServiceRequestExecutorImpl.java:247)
>>         at
>> io.apiman.gateway.engine.impl.ServiceRequestExecutorImpl$2.handle(ServiceRequestExecutorImpl.java:198)
>>         at
>> io.apiman.gateway.engine.impl.ServiceRequestExecutorImpl$5.handle(ServiceRequestExecutorImpl.java:392)
>>         at
>> io.apiman.gateway.engine.impl.ServiceRequestExecutorImpl$5.handle(ServiceRequestExecutorImpl.java:362)
>>         at
>> io.apiman.gateway.engine.policy.PolicyFactoryImpl.loadPolicy(PolicyFactoryImpl.java:81)
>>         at
>> io.apiman.gateway.engine.impl.ServiceRequestExecutorImpl.loadPolicies(ServiceRequestExecutorImpl.java:362)
>>         at
>> io.apiman.gateway.engine.impl.ServiceRequestExecutorImpl.access$1400(ServiceRequestExecutorImpl.java:77)
>>         at
>> io.apiman.gateway.engine.impl.ServiceRequestExecutorImpl$3.handle(ServiceRequestExecutorImpl.java:270)
>>         at
>> io.apiman.gateway.engine.impl.ServiceRequestExecutorImpl$3.handle(ServiceRequestExecutorImpl.java:255)
>>         at
>> io.apiman.gateway.engine.impl.SecureRegistryWrapper$1.handle(SecureRegistryWrapper.java:107)
>>         at
>> io.apiman.gateway.engine.impl.SecureRegistryWrapper$1.handle(SecureRegistryWrapper.java:97)
>>         at io.apiman.gateway.engine.es
>> .CachingESRegistry.getService(CachingESRegistry.java:175)
>>         at
>> io.apiman.gateway.engine.impl.SecureRegistryWrapper.getService(SecureRegistryWrapper.java:97)
>>         at
>> io.apiman.gateway.engine.impl.ServiceRequestExecutorImpl.execute(ServiceRequestExecutorImpl.java:254)
>>         at
>> io.apiman.gateway.platforms.servlet.GatewayServlet.doAction(GatewayServlet.java:236)
>>         at
>> io.apiman.gateway.platforms.servlet.GatewayServlet.doGet(GatewayServlet.java:82)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>>         at
>> io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
>>         at
>> io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
>>         at
>> io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
>>         at
>> org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
>>         at
>> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>>         at
>> io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
>>         at
>> io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)
>>         at
>> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>>         at
>> io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
>>         at
>> io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63)
>>         at
>> io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
>>         at
>> io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
>>         at
>> io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
>>         at
>> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>>         at
>> org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
>>         at
>> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>>         at
>> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>>         at
>> io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)
>>         at
>> io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247)
>>         at
>> io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76)
>>         at
>> io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166)
>>         at
>> io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)
>>         at
>> io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759)
>>         at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>         at java.lang.Thread.run(Thread.java:745)
>>
>>
>>
>> _______________________________________________
>> Apiman-user mailing list
>> Apiman-user at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/apiman-user
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/apiman-user/attachments/20150916/376b590d/attachment.html 


More information about the Apiman-user mailing list