java.lang.NullPointerException: null

GitHub | CiGit | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 646#44414181

    GitHub | 3 years ago | CiGit
    java.lang.NullPointerException: null

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at com.wegas.core.security.util.SecurityHelper.isPermitted()
    2. com.wegas.core
      GameController.find
      1. com.wegas.core.security.util.SecurityHelper.isPermitted(SecurityHelper.java:29)[wegas-core-1.0-SNAPSHOT.jar:na]
      2. com.wegas.core.security.util.SecurityHelper.isAnyPermitted(SecurityHelper.java:41)[wegas-core-1.0-SNAPSHOT.jar:na]
      3. com.wegas.core.security.util.SecurityHelper.checkAnyPermission(SecurityHelper.java:34)[wegas-core-1.0-SNAPSHOT.jar:na]
      4. com.wegas.core.rest.GameController.find(GameController.java:78)[wegas-core-1.0-SNAPSHOT.jar:na]
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor384.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_25]
      3. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_25]
      3 frames
    4. Embedded GlassFish Web
      EjbInvocation.proceed
      1. org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)[na:na]
      2. org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)[na:na]
      3. com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)[ejb-container.jar:3.1.2.1-SNAPSHOT]
      4. com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)[ejb-container.jar:3.1.2.1-SNAPSHOT]
      5. com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)[na:na]
      6. com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)[ejb-container.jar:3.1.2.1-SNAPSHOT]
      6 frames
    5. Weld Implementation
      SessionBeanInterceptor.aroundInvoke
      1. org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:42)[weld-osgi-bundle.jar:20120429-1045]
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_25]
      3. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_25]
      3 frames
    7. Embedded GlassFish Web
      SystemInterceptorProxy.aroundInvoke
      1. com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)[na:na]
      2. com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)[na:na]
      3. com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)[ejb-container.jar:3.1.2.1-SNAPSHOT]
      4. com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)[na:na]
      5. com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)[na:na]
      5 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_25]
      3. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_25]
      3 frames
    9. Embedded GlassFish Web
      EJBLocalObjectInvocationHandlerDelegate.invoke
      1. com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)[na:na]
      2. com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)[na:na]
      3. com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)[na:na]
      4. com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)[ejb-container.jar:3.1.2.1-SNAPSHOT]
      5. com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)[ejb-container.jar:3.1.2.1-SNAPSHOT]
      6. com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)[ejb-container.jar:3.1.2.1-SNAPSHOT]
      7. com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89)[ejb-container.jar:3.1.2.1-SNAPSHOT]
      7 frames
    10. com.sun.proxy
      $Proxy224.find
      1. com.sun.proxy.$Proxy224.find(Unknown Source)[na:na]
      1 frame
    11. com.wegas.core
      __EJB31_Generated__GameController__Intf____Bean__.find
      1. com.wegas.core.rest.__EJB31_Generated__GameController__Intf____Bean__.find(Unknown Source)[wegas-core-1.0-SNAPSHOT.jar:na]
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor384.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_25]
      3. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_25]
      3 frames
    13. Jersey
      WebApplicationImpl.handleRequest
      1. com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)[jersey-gf-server.jar:1.11.1]
      2. com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)[jersey-gf-server.jar:1.11.1]
      3. com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)[jersey-gf-server.jar:1.11.1]
      4. com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)[jersey-gf-server.jar:1.11.1]
      5. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)[jersey-gf-server.jar:1.11.1]
      6. com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)[jersey-gf-server.jar:1.11.1]
      7. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)[jersey-gf-server.jar:1.11.1]
      8. com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)[jersey-gf-server.jar:1.11.1]
      9. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)[jersey-gf-server.jar:1.11.1]
      10. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)[jersey-gf-server.jar:1.11.1]
      11. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)[jersey-gf-server.jar:1.11.1]
      12. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)[jersey-gf-server.jar:1.11.1]
      12 frames
    14. Jersey
      ServletContainer.service
      1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)[jersey-gf-servlet.jar:1.11.1]
      2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)[jersey-gf-servlet.jar:1.11.1]
      3. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)[jersey-gf-servlet.jar:1.11.1]
      3 frames
    15. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:770)[javax.servlet-api.jar:3.0.1]
      1 frame
    16. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)[web-core.jar:3.1.2.1-SNAPSHOT]
      2. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)[web-core.jar:3.1.2.1-SNAPSHOT]
      3. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)[web-core.jar:3.1.2.1-SNAPSHOT]
      3 frames
    17. Shiro
      OncePerRequestFilter.doFilter
      1. org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)[shiro-web-1.2.1.jar:1.2.1]
      2. org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)[shiro-web-1.2.1.jar:1.2.1]
      3. org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)[shiro-core-1.2.1.jar:1.2.1]
      4. org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)[shiro-core-1.2.1.jar:1.2.1]
      5. org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)[shiro-core-1.2.1.jar:1.2.1]
      6. org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)[shiro-web-1.2.1.jar:1.2.1]
      7. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.1.jar:1.2.1]
      7 frames
    18. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)[web-core.jar:3.1.2.1-SNAPSHOT]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)[web-core.jar:3.1.2.1-SNAPSHOT]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)[web-core.jar:3.1.2.1-SNAPSHOT]
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)[web-core.jar:3.1.2.1-SNAPSHOT]
      5. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)[web-core.jar:3.1.2.1-SNAPSHOT]
      6. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)[web-core.jar:3.1.2.1-SNAPSHOT]
      7. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)[web-core.jar:3.1.2.1-SNAPSHOT]
      8. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)[web-core.jar:3.1.2.1-SNAPSHOT]
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)[web-core.jar:3.1.2.1-SNAPSHOT]
      9 frames
    19. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)[kernel.jar:3.1.2.1-SNAPSHOT]
      2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)[kernel.jar:3.1.2.1-SNAPSHOT]
      2 frames
    20. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)[grizzly-http.jar:1.9.50]
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)[grizzly-http.jar:1.9.50]
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)[grizzly-http.jar:1.9.50]
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)[grizzly-http.jar:1.9.50]
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)[grizzly-framework.jar:1.9.50]
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)[grizzly-framework.jar:1.9.50]
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)[grizzly-framework.jar:1.9.50]
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)[grizzly-http.jar:1.9.50]
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)[grizzly-framework.jar:1.9.50]
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)[grizzly-framework.jar:1.9.50]
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)[grizzly-framework.jar:1.9.50]
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)[grizzly-utils.jar:1.9.50]
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)[grizzly-utils.jar:1.9.50]
      13 frames
    21. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:724)[na:1.7.0_25]
      1 frame