Hi, I am getting the following NPE intermittently when trying to access an API on the API-Manager.
java.lang.NullPointerException at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get(CacheBackedRegistry.java:179) at org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:519) at org.wso2.carbon.mediation.registry.WSO2Registry.getResource(WSO2Registry.java:446) at org.wso2.carbon.mediation.registry.WSO2Registry.lookup(WSO2Registry.java:131) at org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegistry.java:63) at org.apache.synapse.config.SynapseConfiguration.getEntry(SynapseConfiguration.java:707) at org.apache.synapse.core.axis2.Axis2MessageContext.getEntry(Axis2MessageContext.java:194) at org.wso2.carbon.apimgt.gateway.handlers.throttling.APIThrottleHandler.initThrottle(APIThrottleHandler.java:480) at org.wso2.carbon.apimgt.gateway.handlers.throttling.APIThrottleHandler.doThrottle(APIThrottleHandler.java:117) at org.wso2.carbon.apimgt.gateway.handlers.throttling.APIThrottleHandler.handleRequest(APIThrottleHandler.java:91) at org.apache.synapse.rest.API.process(API.java:252) 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:180) at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:144) at org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:89) at org.apache.synapse.transport.nhttp.util.RESTUtil.processPOSTRequest(RESTUtil.java:189) at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:411) at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:268) at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Since we are trying to get the GhostResource from the cache, I assume it would be ok to do a null check at this point? Thanks, NuwanD. -- Nuwan Dias Software Engineer - WSO2, Inc. Integration Technologies Team email : [email protected] Phone : +94 777 775 729
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
