Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JIRA by Steve Owens, 1 year ago
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 undefined.$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)