One of our production servers is throwing the following exception stack trace and we would like to elicit help in determining what might be the root cause of the error. The interesting parts of the stakc trace are:
ava.lang.NullPointerException
at com.mongodb.CommandResult.getException(CommandResult.java:64)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:116)
at com.mongodb.DBPort.checkAuth(DBPort.java:308)
Any thoughts on the root cause possibilities? The error is intermitent and not consistent.
Full stack trace below:
2012-02-14 17:34:47,719 ERROR org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274) [http-8080-exec-4] - Servlet.service() for servlet spring
threw exception
java.lang.NullPointerException
at com.mongodb.CommandResult.getException(CommandResult.java:64)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:116)
at com.mongodb.DBPort.checkAuth(DBPort.java:308)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:201)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:303)
at com.mongodb.DBCursor._check(DBCursor.java:360)
at com.mongodb.DBCursor._hasNext(DBCursor.java:490)
at com.mongodb.DBCursor.hasNext(DBCursor.java:515)
at org.springframework.data.document.mongodb.MongoTemplate.executeFindMultiInternal(MongoTemplate.java:1425)
at org.springframework.data.document.mongodb.MongoTemplate.doFind(MongoTemplate.java:1186)
at org.springframework.data.document.mongodb.MongoTemplate.find(MongoTemplate.java:587)
at org.springframework.data.document.mongodb.repository.AbstractMongoQuery$Execution.readCollection(AbstractMongoQuery.java:106)
at org.springframework.data.document.mongodb.repository.AbstractMongoQuery$CollectionExecution.execute(AbstractMongoQuery.java:125)
at org.springframework.data.document.mongodb.repository.AbstractMongoQuery.execute(AbstractMongoQuery.java:80)
at org.springframework.data.repository.support.RepositoryFactorySupport$QueryExecuterMethodInterceptor.invoke(RepositoryFactorySupport.java:333)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy25.findAllAPIsWithUserIdAndRole(Unknown Source)
at com.disney.tss.ft.cms.service.APIService.getAllAppsForOwner(APIService.java:786)
at com.disney.tss.ft.cms.controller.APIController.getAllAppsForOwner(APIController.java:363)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.disney.tss.ft.apimgmt.AuthenticationEnforcementFilter.doFilter(AuthenticationEnforcementFilter.java:101)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.disney.tss.ft.apimgmt.PSKAuthenticationFilter.doFilter(PSKAuthenticationFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.disney.tss.ft.apimgmt.PortalOauthFilter.doFilter(PortalOauthFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at com.disney.tomcat.GreenCookieValve.invoke(Unknown Source)
at com.disney.tomcat.RequestThrottleValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:880)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:719)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2081)
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)