java.lang.NullPointerException

Oracle Community | 807581 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded 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 com.netscape.server.servlet.platformhttp.PlatformNASSession.<init>()
    2. com.netscape.server
      PlatformHttpServletRequest.getSession
      1. com.netscape.server.servlet.platformhttp.PlatformNASSession.<init>(Unknown Source)
      2. com.netscape.server.servlet.platformhttp.PlatformHttpServletRequest.getSession(Unknown Source)
      2 frames
    3. com.myapp.session
      NepalHttpSession.init
      1. com.myapp.session.ServletSessionPersistence.init(ServletSessionPersistence.java:37)
      2. com.myapp.session.NepalHttpSession.init(NepalHttpSession.java:37)
      2 frames
    4. com.myapp.servlet
      myappDispatchServlet.service
      1. com.myapp.servlet.RequestContext.init(RequestContext.java:114)
      2. com.myapp.servlet.myappRequestContext.init(myappRequestContext.java:74)
      3. com.myapp.servlet.myappRequestContext.<init>(myappRequestContext.java:58)
      4. com.myapp.servlet.myappDispatchServlet.service(myappDispatchServlet.java:79)
      4 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      1 frame
    6. com.netscape.server
      ServletRunner.execute
      1. com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source)
      2. com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown Source)
      2 frames
    7. com.kivasoft.applogic
      AppLogic.execute
      1. com.kivasoft.applogic.AppLogic.execute(Unknown Source)
      2. com.kivasoft.applogic.AppLogic.execute(Unknown Source)
      2 frames
    8. com.kivasoft.thread
      ThreadBasic.run
      1. com.kivasoft.thread.ThreadBasic.run(Native Method)
      1 frame
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:479)
      1 frame