Following exception will be occurred.

[2013-10-07 14:24:33,151] ERROR - ThriftAuthenticatorServiceImpl Error
while updating last access time in DB
org.wso2.carbon.identity.base.IdentityException: Error populating current
carbon context from thrift auth session: null
    at
org.wso2.carbon.identity.thrift.authentication.ThriftAuthenticatorServiceImpl.onSuccessLogin(ThriftAuthenticatorServiceImpl.java:331)
    at
org.wso2.carbon.identity.thrift.authentication.ThriftAuthenticatorServiceImpl.isAuthenticated(ThriftAuthenticatorServiceImpl.java:183)
    at
org.wso2.carbon.apimgt.keymgt.service.thrift.APIKeyValidationServiceImpl.getAllURITemplates(APIKeyValidationServiceImpl.java:176)
    at
org.wso2.carbon.apimgt.keymgt.service.thrift.APIKeyValidationService$Processor$getAllURITemplates.getResult(APIKeyValidationService.java:282)
    at
org.wso2.carbon.apimgt.keymgt.service.thrift.APIKeyValidationService$Processor$getAllURITemplates.getResult(APIKeyValidationService.java:270)
    at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
    at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
    at
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
[2013-10-07 14:24:33,155]  WARN - APIKeyValidationServiceImpl Error
populating current carbon context from thrift auth session: null
[2013-10-07 14:24:33,156]  WARN - ThriftKeyValidatorClientPool Login
failed.. Authenticating again..
[2013-10-07 14:24:33,726]  INFO - CarbonAuthenticationUtil
'admin@carbon.super [-1234]' logged in at [2013-10-07 14:24:33,725+0530]
from IP address
[2013-10-07 14:24:33,738] ERROR - ThriftAuthenticatorServiceImpl Error
while updating last access time in DB
org.wso2.carbon.identity.base.IdentityException: Error populating current
carbon context from thrift auth session: null
    at
org.wso2.carbon.identity.thrift.authentication.ThriftAuthenticatorServiceImpl.onSuccessLogin(ThriftAuthenticatorServiceImpl.java:331)
    at
org.wso2.carbon.identity.thrift.authentication.ThriftAuthenticatorServiceImpl.isAuthenticated(ThriftAuthenticatorServiceImpl.java:183)
    at
org.wso2.carbon.apimgt.keymgt.service.thrift.APIKeyValidationServiceImpl.getAllURITemplates(APIKeyValidationServiceImpl.java:176)
    at
org.wso2.carbon.apimgt.keymgt.service.thrift.APIKeyValidationService$Processor$getAllURITemplates.getResult(APIKeyValidationService.java:282)
    at
org.wso2.carbon.apimgt.keymgt.service.thrift.APIKeyValidationService$Processor$getAllURITemplates.getResult(APIKeyValidationService.java:270)
    at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
    at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
    at
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
[2013-10-07 14:24:33,740]  WARN - APIKeyValidationServiceImpl Error
populating current carbon context from thrift auth session: null
[2013-10-07 14:24:33,740] ERROR - APIAuthenticationHandler API
authentication failure
org.wso2.carbon.apimgt.gateway.handlers.security.APISecurityException:
Error while accessing backend services for API key validation
    at
org.wso2.carbon.apimgt.gateway.handlers.security.thrift.ThriftAPIDataStore.getAllURITemplates(ThriftAPIDataStore.java:97)
    at
org.wso2.carbon.apimgt.gateway.handlers.security.APIKeyValidator.getAllURITemplates(APIKeyValidator.java:385)
    at
org.wso2.carbon.apimgt.gateway.handlers.security.APIKeyValidator.doGetAPIInfo(APIKeyValidator.java:240)
    at
org.wso2.carbon.apimgt.gateway.handlers.security.APIKeyValidator.getResourceAuthenticationScheme(APIKeyValidator.java:153)
    at
org.wso2.carbon.apimgt.gateway.handlers.security.oauth.OAuthAuthenticator.authenticate(OAuthAuthenticator.java:85)
    at
org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleRequest(APIAuthenticationHandler.java:88)
    at org.apache.synapse.rest.API.process(API.java:285)
    at
org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:76)
    at
org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)
    at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
    at
org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
    at
org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:337)
    at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:169)
    at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Caused by:
org.wso2.carbon.apimgt.gateway.handlers.security.APISecurityException:
Error populating current carbon context from thrift auth session: null
    at
org.wso2.carbon.apimgt.gateway.handlers.security.thrift.ThriftKeyValidatorClient.getAllURITemplates(ThriftKeyValidatorClient.java:127)
    at
org.wso2.carbon.apimgt.gateway.handlers.security.thrift.ThriftAPIDataStore.getAllURITemplates(ThriftAPIDataStore.java:95)
    ... 17 more



Following error code will be returned.
<ams:fault>
<ams:code>
900900
</ams:code>
<ams:message>
Unclassified Authentication Failure
</ams:message>
<ams:description>
Error while accessing backend services for API key validation
</ams:description>
 </ams:fault>

Jira is reported in [1].

[1] https://wso2.org/jira/browse/APIMANAGER-1743

-- 
*Ushani Balasooriya*
Software Engineer - QA;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to