java.lang.NullPointerException

Stack Overflow | Chris D | 10 months 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

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 7 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  2. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Cloud Foundry v2 in Grails

    Stack Overflow | 3 years ago | angelo087
    java.lang.NullPointerException: Cannot invoke method getAt() on null object
  5. 0

    NullPointerException in MIDlet with left soft key

    Stack Overflow | 6 years ago | berry120
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callItemListener(), bci=57 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=57 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.apache.jsp.idpmgt.idp_002dmgt_002dedit_jsp._jspService()
    2. org.apache.jsp
      idp_002dmgt_002dedit_jsp._jspService
      1. org.apache.jsp.idpmgt.idp_002dmgt_002dedit_jsp._jspService(idp_002dmgt_002dedit_jsp.java:345)
      1 frame
    3. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    5. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
      3 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    7. org.wso2.carbon
      TilesJspServlet.service
      1. org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
      2. org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
      2 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    9. org.eclipse.equinox
      ProxyServlet.service
      1. org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
      2. org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
      3. org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
      4. org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
      4 frames
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    11. org.wso2.carbon
      DelegationServlet.service
      1. org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
      1 frame
    12. Glassfish Core
      ApplicationDispatcher.include
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
      4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
      5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
      5 frames
    13. org.eclipse.equinox
      ContextPathServletAdaptor$RequestDispatcherAdaptor.include
      1. org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
      2. org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
      2 frames
    14. GWT dev
      PageContextImpl.include
      1. org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
      2. org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
      3. org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
      3 frames
    15. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:498)
      3 frames
    16. org.apache.tiles
      JspTilesRequestContext.dispatch
      1. org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
      2. org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
      3. org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
      3 frames
    17. Tiles - Core Library
      BasicTilesContainer.render
      1. org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
      1 frame
    18. Tiles - JSP support
      ContainerTagSupport.doEndTag
      1. org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
      2. org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
      3. org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
      4. org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
      5. org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
      5 frames
    19. org.apache.jsp
      template_jsp._jspService
      1. org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:640)
      2. org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:356)
      2 frames
    20. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    21. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    22. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
      3 frames
    23. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    24. org.wso2.carbon
      TilesJspServlet.service
      1. org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
      2. org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
      2 frames
    25. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    26. org.eclipse.equinox
      ProxyServlet.service
      1. org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
      2. org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
      3. org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
      4. org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
      4 frames
    27. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    28. org.wso2.carbon
      DelegationServlet.service
      1. org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
      1 frame
    29. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      2 frames
    30. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    31. Glassfish Core
      ApplicationDispatcher.forward
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
      4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
      5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
      6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
      6 frames
    32. org.eclipse.equinox
      ContextPathServletAdaptor$RequestDispatcherAdaptor.forward
      1. org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
      2. org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
      2 frames
    33. org.apache.tiles
      ServletTilesRequestContext.dispatch
      1. org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
      2. org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
      2 frames
    34. Tiles - Core Library
      BasicTilesContainer.render
      1. org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
      2. org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
      2 frames
    35. org.wso2.carbon
      TilesJspServlet.service
      1. org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
      2. org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
      2 frames
    36. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    37. org.eclipse.equinox
      ProxyServlet.service
      1. org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
      2. org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
      3. org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
      4. org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
      4 frames
    38. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    39. org.wso2.carbon
      DelegationServlet.service
      1. org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
      1 frame
    40. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      2 frames
    41. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    42. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      2 frames
    43. org.wso2.carbon
      CSRFPreventionFilter.doFilter
      1. org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
      1 frame
    44. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      2 frames
    45. org.wso2.carbon
      CRLFPreventionFilter.doFilter
      1. org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
      1 frame
    46. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      2 frames
    47. org.wso2.carbon
      CharacterSetFilter.doFilter
      1. org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
      1 frame
    48. Glassfish Core
      ErrorReportValve.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      7 frames
    49. org.wso2.carbon
      CarbonStuckThreadDetectionValve.invoke
      1. org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
      2. org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
      3. org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
      4. org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
      5. org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
      6. org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
      6 frames
    50. Glassfish Core
      AccessLogValve.invoke
      1. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      1 frame
    51. org.wso2.carbon
      CarbonContextCreatorValve.invoke
      1. org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
      1 frame
    52. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      2. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
      2 frames
    53. Grizzly HTTP
      NioEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
      3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
      4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
      4 frames
    54. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames
    55. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    56. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame