java.lang.NullPointerException: null

GitHub | RJHBookLinux | 6 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 | 2 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

      null

      at com.adobe.cq.dam.webdav.impl.io.DamWebdavRequestFilter.isLocked()
    2. com.adobe.cq
      DamWebdavRequestFilter.doFilter
      1. com.adobe.cq.dam.webdav.impl.io.DamWebdavRequestFilter.isLocked(DamWebdavRequestFilter.java:163)
      2. com.adobe.cq.dam.webdav.impl.io.DamWebdavRequestFilter.isLocked(DamWebdavRequestFilter.java:137)
      3. com.adobe.cq.dam.webdav.impl.io.DamWebdavRequestFilter.doFilter(DamWebdavRequestFilter.java:106)
      3 frames
    3. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      1 frame
    4. com.adobe.granite
      ResourceResolverHelperImpl.doFilter
      1. com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl.doFilter(ResourceResolverHelperImpl.java:81)
      1 frame
    5. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      1 frame
    6. com.adobe.cq
      MemoryTokenAuthHandler.doFilter
      1. com.adobe.cq.dam.s7imaging.impl.auth.MemoryTokenAuthHandler.doFilter(MemoryTokenAuthHandler.java:156)
      1 frame
    7. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      2. org.apache.sling.security.impl.ContentDispositionFilter.doFilter(ContentDispositionFilter.java:152)
      3. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      4. org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:128)
      5. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      5 frames
    8. com.day.cq
      AuthoringUIModeServiceImpl.doFilter
      1. com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl.doFilter(AuthoringUIModeServiceImpl.java:349)
      1 frame
    9. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      2. org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83)
      3. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      3 frames
    10. com.day.cq
      TimeWarpFilter.doFilter
      1. com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106)
      1 frame
    11. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      1 frame
    12. com.day.cq
      RedirectFilter.doFilter
      1. com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:295)
      1 frame
    13. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      1 frame
    14. com.adobe.cq
      CORSAuthenticationFilter.doFilter
      1. com.adobe.cq.social.commons.cors.CORSAuthenticationFilter.doFilter(CORSAuthenticationFilter.java:91)
      1 frame
    15. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      2. org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:95)
      3. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      3 frames
    16. com.adobe.cq
      PSIDFilter.doFilter
      1. com.adobe.cq.commerce.sirius.wcs.filter.PSIDFilter.doFilter(PSIDFilter.java:63)
      1 frame
    17. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      1 frame
    18. com.adobe.cq
      CookieFilter.doFilter
      1. com.adobe.cq.commerce.sirius.wcs.filter.CookieFilter.doFilter(CookieFilter.java:46)
      1 frame
    19. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      1 frame
    20. com.day.cq
      FormsHandlingServlet.doFilter
      1. com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java:251)
      1 frame
    21. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      1 frame
    22. com.day.cq
      ThemeResolverFilter.doFilter
      1. com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:76)
      1 frame
    23. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      1 frame
    24. com.adobe.granite
      OptOutFilter.doFilter
      1. com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java:74)
      1 frame
    25. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      1 frame
    26. com.day.cq
      WCMRequestFilter.doFilter
      1. com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:90)
      1 frame
    27. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      1 frame
    28. com.adobe.cq
      HistoryRequestFilter.doFilter
      1. com.adobe.cq.history.impl.HistoryRequestFilter.doFilter(HistoryRequestFilter.java:107)
      1 frame
    29. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      1 frame
    30. com.day.cq
      CanvasPageDeleteRequestFilter.doFilter
      1. com.day.cq.wcm.designimporter.CanvasPageDeleteRequestFilter.doFilter(CanvasPageDeleteRequestFilter.java:88)
      1 frame
    31. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      1 frame
    32. com.adobe.granite
      InnerCacheFilter.doFilter
      1. com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java:77)
      2. com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java:56)
      2 frames
    33. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      2. org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServletStarterFilter.java:135)
      3. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      3 frames
    34. com.adobe.cq
      SaferSlingPostServlet.doFilter
      1. com.adobe.cq.social.commons.security.SaferSlingPostServlet.doFilter(SaferSlingPostServlet.java:121)
      1 frame
    35. org.apache.sling
      AbstractSlingFilterChain.doFilter
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      1 frame
    36. com.adobe.granite
      RequestLoggerImpl.doFilter
      1. com.adobe.granite.requests.logging.impl.RequestLoggerImpl.doFilter(RequestLoggerImpl.java:124)
      1 frame
    37. org.apache.sling
      SlingMainServlet.service
      1. org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
      2. org.apache.sling.engine.impl.SlingRequestProcessorImpl.doProcessRequest(SlingRequestProcessorImpl.java:151)
      3. org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:217)
      3 frames
    38. Felix Http Bridge
      HttpFilterChain.doFilter
      1. org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:339)
      2. org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:300)
      3. org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:93)
      4. org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:50)
      5. org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)
      5 frames
    39. org.apache.sling
      I18NFilter.doFilter
      1. org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:128)
      1 frame
    40. Felix Http Bridge
      HttpFilterChain.doFilter
      1. org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)
      2. org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)
      3. org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)
      4. org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)
      4 frames
    41. Apache Felix Http SSL Filter
      SslFilter.doFilter
      1. org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:89)
      1 frame
    42. Felix Http Bridge
      HttpFilterChain.doFilter
      1. org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)
      2. org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)
      3. org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)
      4. org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)
      4 frames
    43. Apache Felix Http SSL Filter
      SslFilter.doFilter
      1. org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:55)
      1 frame
    44. Felix Http Bridge
      HttpFilterChain.doFilter
      1. org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)
      2. org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)
      3. org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)
      4. org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)
      4 frames
    45. org.apache.sling
      ReferrerFilter.doFilter
      1. org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:290)
      1 frame
    46. Felix Http Bridge
      HttpFilterChain.doFilter
      1. org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)
      2. org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)
      3. org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)
      4. org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)
      4 frames
    47. com.adobe.granite
      LicenseCheckFilter.doFilter
      1. com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:300)
      1 frame
    48. Felix Http Bridge
      HttpFilterChain.doFilter
      1. org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)
      2. org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)
      3. org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)
      4. org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)
      4 frames
    49. org.apache.sling
      FeatureManager.doFilter
      1. org.apache.sling.featureflags.impl.FeatureManager.doFilter(FeatureManager.java:115)
      1 frame
    50. Felix Http Bridge
      HttpFilterChain.doFilter
      1. org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)
      2. org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)
      3. org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)
      4. org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)
      4 frames
    51. org.apache.sling
      RequestLoggerFilter.doFilter
      1. org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75)
      1 frame
    52. Felix Http Bridge
      DispatcherServlet.service
      1. org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)
      2. org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)
      3. org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)
      4. org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)
      5. org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:76)
      6. org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:49)
      7. org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
      7 frames
    53. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      1 frame
    54. Jetty
      AsyncHttpConnection.handle
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
      3. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
      4. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
      5. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
      6. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      7. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
      8. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      9. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
      10. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      11. org.eclipse.jetty.server.Server.handle(Server.java:370)
      12. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
      13. org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
      14. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
      15. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
      16. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
      17. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      17 frames
    55. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
      2 frames
    56. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
      2 frames
    57. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame