java.lang.NullPointerException

Oracle Community | icordoba | 6 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 | 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 | 2 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.v3.server.DynamicReloadService.stop()
    2. Kernel Classes
      DynamicReloadService.preDestroy
      1. com.sun.enterprise.v3.server.DynamicReloadService.stop(DynamicReloadService.java:170)
      2. com.sun.enterprise.v3.server.DynamicReloadService.preDestroy(DynamicReloadService.java:122)
      2 frames
    3. Inversion of Control / Autodependency mechanism
      LazyInhabitant.release
      1. com.sun.hk2.component.AbstractWombInhabitantImpl.dispose(AbstractWombInhabitantImpl.java:74)
      2. com.sun.hk2.component.SingletonInhabitant.release(SingletonInhabitant.java:66)
      3. com.sun.hk2.component.LazyInhabitant.release(LazyInhabitant.java:112)
      3 frames
    4. Kernel Classes
      AppServerStartup.stop
      1. com.sun.enterprise.v3.server.AppServerStartup.stop(AppServerStartup.java:393)
      1 frame
    5. HK2 OSGi Adapter
      HK2Main.stop
      1. org.jvnet.hk2.osgiadapter.HK2Main.stop(HK2Main.java:154)
      1 frame
    6. Apache Felix Framework
      BundleImpl.stop
      1. org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:662)
      2. org.apache.felix.framework.Felix.stopBundle(Felix.java:2071)
      3. org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:951)
      4. org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:938)
      4 frames
    7. HK2 OSGi Adapter
      OSGiModuleImpl.stop
      1. org.jvnet.hk2.osgiadapter.OSGiModuleImpl.detach(OSGiModuleImpl.java:249)
      2. org.jvnet.hk2.osgiadapter.OSGiModuleImpl.stop(OSGiModuleImpl.java:227)
      2 frames
    8. Kernel Classes
      RestartDomainCommand.execute
      1. com.sun.enterprise.v3.admin.RestartDomainCommand.execute(RestartDomainCommand.java:93)
      1 frame
    9. AMX
      RuntimeRootImpl.restartDomain
      1. org.glassfish.admin.amx.impl.ext.RuntimeRootImpl.restartDomain(RuntimeRootImpl.java:246)
      1 frame
    10. 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:597)
      4 frames
    11. AMX
      AMXImplBase.invoke
      1. org.glassfish.admin.amx.impl.mbean.AMXImplBase.invoke(AMXImplBase.java:1038)
      1 frame
    12. Java RT
      MBeanServerInvocationHandler.invoke
      1. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
      2. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
      3. javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:288)
      3 frames
    13. AMX
      AMXProxyHandler.invoke
      1. org.glassfish.admin.amx.util.jmx.MBeanProxyHandler.invoke(MBeanProxyHandler.java:453)
      2. org.glassfish.admin.amx.core.proxy.AMXProxyHandler._invoke(AMXProxyHandler.java:822)
      3. org.glassfish.admin.amx.core.proxy.AMXProxyHandler.invoke(AMXProxyHandler.java:526)
      3 frames
    14. Unknown
      $Proxy299.restartDomain
      1. $Proxy299.restartDomain(Unknown Source)
      1 frame
    15. org.glassfish.admingui
      InstanceHandler.restartDomain
      1. org.glassfish.admingui.common.handlers.InstanceHandler.restartDomain(InstanceHandler.java:178)
      1 frame
    16. 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:597)
      4 frames
    17. com.sun.jsftemplating
      CommandActionListener.processAction
      1. com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
      2. com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
      3. com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
      4. com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:150)
      5. com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:98)
      5 frames
    18. JavaEE 7
      UICommand.broadcast
      1. javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
      2. javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:772)
      3. javax.faces.component.UICommand.broadcast(UICommand.java:300)
      3 frames
    19. com.sun.webui
      WebuiCommand.broadcast
      1. com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:166)
      1 frame
    20. JavaEE 7
      UIViewRoot.processApplication
      1. javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
      2. javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
      2 frames
    21. JSF
      LifecycleImpl.execute
      1. com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
      2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      3. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      3 frames
    22. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      1 frame
    23. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
      2. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
      3. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
      3 frames
    24. com.sun.webui
      UploadFilter.doFilter
      1. com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:233)
      1 frame
    25. Glassfish Core
      StandardPipeline.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
      5 frames
    26. Glassfish
      PESessionLockingStandardPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
      2. com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
      2 frames
    27. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
      2. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
      3. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
      3 frames
    28. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239)
      1 frame
    29. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
      13 frames
    30. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame