java.lang.NullPointerException

labkey.org | 9 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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 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
  4. 0

    Cloud Foundry v2 in Grails

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

    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.labkey.pipeline.analysis.FileAnalysisJob.findFileInAlternateDirectory()
    2. org.labkey.pipeline
      CommandTaskImpl.getProcessPaths
      1. org.labkey.pipeline.analysis.FileAnalysisJob.findFileInAlternateDirectory(FileAnalysisJob.java:160)
      2. org.labkey.pipeline.analysis.FileAnalysisJob.findFileInAlternateDirectory(FileAnalysisJob.java:165)
      3. org.labkey.pipeline.analysis.FileAnalysisJob.findFileInAlternateDirectory(FileAnalysisJob.java:165)
      4. org.labkey.pipeline.analysis.FileAnalysisJob.findFileInAlternateDirectory(FileAnalysisJob.java:165)
      5. org.labkey.pipeline.analysis.FileAnalysisJob.findFileInAlternateDirectory(FileAnalysisJob.java:165)
      6. org.labkey.pipeline.analysis.FileAnalysisJob.findFileInAlternateDirectory(FileAnalysisJob.java:165)
      7. org.labkey.pipeline.analysis.FileAnalysisJob.findFileInAlternateDirectory(FileAnalysisJob.java:165)
      8. org.labkey.pipeline.analysis.FileAnalysisJob.findFileInAlternateDirectory(FileAnalysisJob.java:165)
      9. org.labkey.pipeline.analysis.FileAnalysisJob.findFileInAlternateDirectory(FileAnalysisJob.java:165)
      10. org.labkey.pipeline.analysis.FileAnalysisJob.findFileInAlternateDirectory(FileAnalysisJob.java:165)
      11. org.labkey.pipeline.analysis.FileAnalysisJob.findFileInAlternateDirectory(FileAnalysisJob.java:165)
      12. org.labkey.pipeline.analysis.FileAnalysisJob.findFile(FileAnalysisJob.java:134)
      13. org.labkey.pipeline.analysis.FileAnalysisJob.findInputFile(FileAnalysisJob.java:81)
      14. org.labkey.pipeline.api.AbstractWorkDirectory.getDir(AbstractWorkDirectory.java:157)
      15. org.labkey.pipeline.api.AbstractWorkDirectory.newFile(AbstractWorkDirectory.java:180)
      16. org.labkey.pipeline.analysis.CommandTaskImpl.newWorkFile(CommandTaskImpl.java:306)
      17. org.labkey.pipeline.analysis.CommandTaskImpl.getWorkFiles(CommandTaskImpl.java:295)
      18. org.labkey.pipeline.analysis.CommandTaskImpl.getProcessPaths(CommandTaskImpl.java:277)
      18 frames
    3. org.labkey.api
      TaskToCommandArgs.toArgs
      1. org.labkey.api.pipeline.cmd.TaskPathToCommandArgs.getPaths(TaskPathToCommandArgs.java:57)
      2. org.labkey.api.pipeline.cmd.PathToCommandArgs.toArgsInner(PathToCommandArgs.java:28)
      3. org.labkey.api.pipeline.cmd.TaskToCommandArgs.toArgs(TaskToCommandArgs.java:61)
      4. org.labkey.api.pipeline.cmd.ListToCommandArgs.toArgsInner(ListToCommandArgs.java:70)
      5. org.labkey.api.pipeline.cmd.TaskToCommandArgs.toArgs(TaskToCommandArgs.java:61)
      6. org.labkey.api.pipeline.cmd.EnumToCommandArgs.toArgsInner(EnumToCommandArgs.java:67)
      7. org.labkey.api.pipeline.cmd.TaskToCommandArgs.toArgs(TaskToCommandArgs.java:61)
      7 frames
    4. org.labkey.pipeline
      CommandTaskImpl$Factory.isParticipant
      1. org.labkey.pipeline.analysis.CommandTaskImpl$Factory.isParticipant(CommandTaskImpl.java:189)
      1 frame
    5. org.labkey.api
      PipelineJob.setQueue
      1. org.labkey.api.pipeline.PipelineJob.findRunnableTask(PipelineJob.java:716)
      2. org.labkey.api.pipeline.PipelineJob.runStateMachine(PipelineJob.java:659)
      3. org.labkey.api.pipeline.PipelineJob.setQueue(PipelineJob.java:473)
      3 frames
    6. org.labkey.pipeline
      AnalysisController$AbstractAnalysisApiAction.execute
      1. org.labkey.pipeline.api.PipelineQueueImpl.addJob(PipelineQueueImpl.java:83)
      2. org.labkey.pipeline.api.PipelineServiceImpl.queueJob(PipelineServiceImpl.java:290)
      3. org.labkey.pipeline.analysis.AnalysisController$StartAnalysisAction.execute(AnalysisController.java:211)
      4. org.labkey.pipeline.analysis.AnalysisController$AbstractAnalysisApiAction.execute(AnalysisController.java:271)
      5. org.labkey.pipeline.analysis.AnalysisController$AbstractAnalysisApiAction.execute(AnalysisController.java:251)
      5 frames
    7. org.labkey.api
      BaseViewAction.handleRequestInternal
      1. org.labkey.api.action.ApiAction.handlePost(ApiAction.java:144)
      2. org.labkey.api.action.ApiAction.handleRequest(ApiAction.java:95)
      3. org.labkey.api.action.BaseViewAction.handleRequestInternal(BaseViewAction.java:167)
      3 frames
    8. Spring MVC
      AbstractController.handleRequest
      1. org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
      1 frame
    9. org.labkey.api
      ViewServlet.service
      1. org.labkey.api.action.SpringActionController.handleRequest(SpringActionController.java:349)
      2. org.labkey.api.module.DefaultModule.dispatch(DefaultModule.java:756)
      3. org.labkey.api.view.ViewServlet.service(ViewServlet.java:166)
      3 frames
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      1 frame
    11. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      2 frames
    12. org.labkey.api
      TransactionFilter.doFilter
      1. org.labkey.api.data.TransactionFilter.doFilter(TransactionFilter.java:36)
      1 frame
    13. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      2 frames
    14. org.labkey.core
      SetCharacterEncodingFilter.doFilter
      1. org.labkey.core.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:118)
      1 frame
    15. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      2 frames
    16. org.labkey.api
      ModuleLoader.doFilter
      1. org.labkey.api.module.ModuleLoader.doFilter(ModuleLoader.java:603)
      1 frame
    17. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      2 frames
    18. org.labkey.api
      AuthFilter.doFilter
      1. org.labkey.api.security.AuthFilter.doFilter(AuthFilter.java:138)
      1 frame
    19. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
      8 frames
    20. Grizzly HTTP
      LeaderFollowerWorkerThread.runIt
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
      2. org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      4. org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      4 frames
    21. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
      1 frame
    22. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame