java.lang.NullPointerException

Stack Overflow | Mr.H. | 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 | 6 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 myGroup.sv.hibernate.HibernateDBServerInstance.getSystemSession()
    2. myGroup.sv.hibernate
      HibernateService.getSystemSession
      1. myGroup.sv.hibernate.HibernateDBServerInstance.getSystemSession(Unknown Source)
      2. myGroup.sv.hibernate.HibernateDBServerInstance.getSystemSession(Unknown Source)
      3. myGroup.sv.hibernate.HibernateService.getSystemSession(Unknown Source)
      3 frames
    3. myGroup.bwv.service
      BwvMandantService.getList
      1. myGroup.bwv.service.BwvMandantService.getList(Unknown Source)
      1 frame
    4. myGroup.bwv.bean
      AusschreibungBean.<init>
      1. myGroup.bwv.bean.ApplicationBean.getMandantenList(Unknown Source)
      2. myGroup.bwv.bean.AusschreibungBean.init(Unknown Source)
      3. myGroup.bwv.bean.AusschreibungBean.<init>(Unknown Source)
      3 frames
    5. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      5. java.lang.Class.newInstance(Class.java:374)
      5 frames
    6. org.apache.myfaces
      Tomcat7AnnotationLifecycleProvider.newInstance
      1. org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider.newInstance(Tomcat7AnnotationLifecycleProvider.java:54)
      1 frame
    7. Impl
      ManagedBeanBuilder.buildManagedBean
      1. org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:162)
      1 frame
    8. org.apache.myfaces
      ManagedBeanResolver.getValue
      1. org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.createManagedBean(ManagedBeanResolver.java:303)
      2. org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.getValue(ManagedBeanResolver.java:266)
      2 frames
    9. EL
      CompositeELResolver.getValue
      1. javax.el.CompositeELResolver.getValue(CompositeELResolver.java:66)
      1 frame
    10. org.apache.myfaces
      FacesCompositeELResolver.getValue
      1. org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:142)
      1 frame
    11. Impl
      VariableResolverImpl.resolveVariable
      1. org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:65)
      1 frame
    12. org.apache.myfaces
      VariableResolverToELResolver.getValue
      1. org.apache.myfaces.el.convert.VariableResolverToELResolver.getValue(VariableResolverToELResolver.java:96)
      1 frame
    13. EL
      CompositeELResolver.getValue
      1. javax.el.CompositeELResolver.getValue(CompositeELResolver.java:66)
      1 frame
    14. org.apache.myfaces
      FacesCompositeELResolver.getValue
      1. org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:142)
      1 frame
    15. Pax Jsp
      JspValueExpression.getValue
      1. org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:80)
      2. org.apache.el.parser.AstValue.getValue(AstValue.java:137)
      3. org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184)
      4. org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:115)
      4 frames
    16. JavaEE 7
      UIData.getValue
      1. javax.faces.component._DeltaStateHelper.eval(_DeltaStateHelper.java:243)
      2. javax.faces.component.UIData.getValue(UIData.java:1153)
      2 frames
    17. Tomahawk
      HtmlTableRenderer.encodeChildren
      1. org.apache.myfaces.component.html.ext.HtmlDataTableHack.createDataModel(HtmlDataTableHack.java:957)
      2. org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.createDataModel(AbstractHtmlDataTable.java:1605)
      3. org.apache.myfaces.component.html.ext.HtmlDataTableHack.getDataModel(HtmlDataTableHack.java:932)
      4. org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.getDataModel(AbstractHtmlDataTable.java:1597)
      5. org.apache.myfaces.component.html.ext.HtmlDataTableHack.getRowCount(HtmlDataTableHack.java:103)
      6. org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:366)
      7. org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:214)
      8. org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(HtmlTableRenderer.java:366)
      8 frames
    18. JavaEE 7
      UIComponent.encodeAll
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:488)
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:609)
      2 frames
    19. Tomahawk
      HtmlGridRendererBase.encodeEnd
      1. org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:370)
      2. org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:194)
      2 frames
    20. JavaEE 7
      UIComponent.encodeAll
      1. javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:519)
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:618)
      3. javax.faces.component.UIComponent.encodeAll(UIComponent.java:614)
      4. javax.faces.component.UIComponent.encodeAll(UIComponent.java:614)
      4 frames
    21. org.apache.myfaces
      JspViewDeclarationLanguageBase.renderView
      1. org.apache.myfaces.shared_impl.view.JspViewDeclarationLanguageBase.actuallyRenderView(JspViewDeclarationLanguageBase.java:322)
      2. org.apache.myfaces.shared_impl.view.JspViewDeclarationLanguageBase.renderView(JspViewDeclarationLanguageBase.java:181)
      2 frames
    22. Impl
      ViewHandlerImpl.renderView
      1. org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:263)
      1 frame
    23. JavaEE 7
      ViewHandlerWrapper.renderView
      1. javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
      1 frame
    24. Tomahawk
      ResourceViewHandlerWrapper.renderView
      1. org.apache.myfaces.tomahawk.application.ResourceViewHandlerWrapper.renderView(ResourceViewHandlerWrapper.java:169)
      1 frame
    25. Impl
      LifecycleImpl.render
      1. org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:85)
      2. org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:239)
      2 frames
    26. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
      1 frame
    27. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    28. Tomahawk
      ExtensionsFilter.doFilter
      1. org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:357)
      1 frame
    29. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    30. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    31. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      8. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
      10 frames
    32. Grizzly HTTP
      NioEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
      3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
      4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
      4 frames
    33. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      2 frames
    34. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    35. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame