java.lang.NullPointerException

Oracle Community | legend_ram | 8 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

    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 com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender.putPipeWrapper()
    2. com.sun.enterprise
      ReplicatedWebmethodSessionStrategyBuilder.initializePersistenceStrategy
      1. com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender.putPipeWrapper(JxtaReplicationSender.java:885)
      2. com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender.sendReplicationStateHC(JxtaReplicationSender.java:483)
      3. com.sun.enterprise.ee.web.sessmgmt.ReplicationHealthChecker.doTransmit(ReplicationHealthChecker.java:454)
      4. com.sun.enterprise.ee.web.sessmgmt.ReplicationHealthChecker.doPipeTest(ReplicationHealthChecker.java:432)
      5. com.sun.enterprise.ee.web.sessmgmt.JxtaBiDiPipeWrapper.areCurrentPipesOk(JxtaBiDiPipeWrapper.java:1512)
      6. com.sun.enterprise.ee.web.sessmgmt.JxtaBiDiPipeWrapper.testStartupAndReshapeIfNecessary(JxtaBiDiPipeWrapper.java:256)
      7. com.sun.enterprise.ee.web.sessmgmt.JxtaBiDiPipeWrapper.start(JxtaBiDiPipeWrapper.java:223)
      8. com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationReceiver.doPipeInitialization(JxtaReplicationReceiver.java:338)
      9. com.sun.enterprise.ee.web.initialization.ReplicatedWebmethodSessionStrategyBuilder.initializePersistenceStrategy(ReplicatedWebmethodSessionStrategyBuilder.java:169)
      9 frames
    3. Glassfish
      WebContainer.loadJ2EEApplicationWebModules
      1. com.sun.enterprise.web.WebModule.configureSessionManager(WebModule.java:1087)
      2. com.sun.enterprise.web.WebModule.configureSessionSettings(WebModule.java:1041)
      3. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1562)
      4. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1232)
      5. com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1159)
      5 frames
    4. com.sun.enterprise
      ApplicationManager.applicationDeployed
      1. com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:141)
      2. com.sun.enterprise.server.ExtendedApplicationLoader.doLoad(ExtendedApplicationLoader.java:134)
      3. com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:238)
      4. com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:336)
      5. com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:210)
      6. com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:645)
      6 frames
    5. admin-util
      AdminEventMulticaster.multicastEvent
      1. com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:959)
      2. com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:943)
      3. com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:467)
      4. com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
      4 frames
    6. com.sun.enterprise
      ServerRuntimeMBean.forwardEvent
      1. com.sun.enterprise.ee.admin.mbeans.ServerRuntimeMBean.forwardEvent(ServerRuntimeMBean.java:95)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    8. GlassFish Admin
      MBeanHelper.invokeOperationInBean
      1. com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:381)
      2. com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:364)
      2 frames
    9. com.sun.enterprise
      BaseRuntimeMBean.invoke
      1. com.sun.enterprise.admin.runtime.BaseRuntimeMBean.invoke(BaseRuntimeMBean.java:468)
      1 frame
    10. Java RT
      Method.invoke
      1. com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
      2. com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
      3. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
      4. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
      5. sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
      6. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      7. java.lang.reflect.Method.invoke(Method.java:585)
      7 frames
    11. admin-util
      ProxyClass.invoke
      1. com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
      1 frame
    12. Unknown
      $Proxy1.invoke
      1. $Proxy1.invoke(Unknown Source)
      1 frame
    13. com.sun.enterprise
      DynamicInterceptor.invoke
      1. com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
      2. com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
      2 frames
    14. Java RT
      Thread.run
      1. javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1410)
      2. javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
      3. javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1247)
      4. javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1343)
      5. javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:784)
      6. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      7. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      8. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      9. java.lang.reflect.Method.invoke(Method.java:585)
      10. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      11. sun.rmi.transport.Transport$1.run(Transport.java:153)
      12. java.security.AccessController.doPrivileged(Native Method)
      13. sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      14. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
      15. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
      16. java.lang.Thread.run(Thread.java:595)
      16 frames