java.lang.NullPointerException

Atlassian JIRA | Igor Minar | 7 years ago
  1. 0

    After upgrading to 3.2.1, I started noticing the following exception in the log: {noformat} java.lang.NullPointerException at com.atlassian.plugin.webresource.PluginResourceLocatorImpl.locateBatchPluginResource(PluginResourceLocatorImpl.java:148) at com.atlassian.plugin.webresource.PluginResourceLocatorImpl.getDownloadableResource(PluginResourceLocatorImpl.java:85) at com.atlassian.plugin.servlet.PluginResourceDownload.serveFile(PluginResourceDownload.java:54) at com.atlassian.plugin.servlet.AbstractFileServerServlet.doGet(AbstractFileServerServlet.java:32) at javax.servlet.http.HttpServlet.service(HttpServlet.java:796) at javax.servlet.http.HttpServlet.service(HttpServlet.java:917) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:792) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:472) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353) at org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185) at com.atlassian.gzipfilter.GzipFilter.doFilterInternal(GzipFilter.java:75) at com.atlassian.gzipfilter.GzipFilter.doFilter(GzipFilter.java:51) {noformat} several different paths are affected, for example: * /s/1636/4/1.0.2/_/download/batch/com.atlassian.auiplugin:jquery-base/com.atlassian.auiplugin:jquery-base.js * /s/1636/4/1.0.2/_/download/batch/com.atlassian.auiplugin:dialog/com.atlassian.auiplugin:dialog.css * /s/1636/4/1.0.2/_/download/batch/com.atlassian.auiplugin:drop-down/com.atlassian.auiplugin:drop-down.css Upon further debugging I noticed that the requests where coming mostly from google webcache that points to assets on the live site. So it looks like the superbatch introduced in 3.2, replaced lots of individual assets that however are still being requested by clients with stale cache. This is mostly harmless, except that our production logs are being polluted with tons of error messages and stack traces that make it difficult to see other problems. This should be an easy, but valuable fix.

    Atlassian JIRA | 7 years ago | Igor Minar
    java.lang.NullPointerException
  2. 0

    After upgrading to 3.2.1, I started noticing the following exception in the log: {noformat} java.lang.NullPointerException at com.atlassian.plugin.webresource.PluginResourceLocatorImpl.locateBatchPluginResource(PluginResourceLocatorImpl.java:148) at com.atlassian.plugin.webresource.PluginResourceLocatorImpl.getDownloadableResource(PluginResourceLocatorImpl.java:85) at com.atlassian.plugin.servlet.PluginResourceDownload.serveFile(PluginResourceDownload.java:54) at com.atlassian.plugin.servlet.AbstractFileServerServlet.doGet(AbstractFileServerServlet.java:32) at javax.servlet.http.HttpServlet.service(HttpServlet.java:796) at javax.servlet.http.HttpServlet.service(HttpServlet.java:917) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:792) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:472) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353) at org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185) at com.atlassian.gzipfilter.GzipFilter.doFilterInternal(GzipFilter.java:75) at com.atlassian.gzipfilter.GzipFilter.doFilter(GzipFilter.java:51) {noformat} several different paths are affected, for example: * /s/1636/4/1.0.2/_/download/batch/com.atlassian.auiplugin:jquery-base/com.atlassian.auiplugin:jquery-base.js * /s/1636/4/1.0.2/_/download/batch/com.atlassian.auiplugin:dialog/com.atlassian.auiplugin:dialog.css * /s/1636/4/1.0.2/_/download/batch/com.atlassian.auiplugin:drop-down/com.atlassian.auiplugin:drop-down.css Upon further debugging I noticed that the requests where coming mostly from google webcache that points to assets on the live site. So it looks like the superbatch introduced in 3.2, replaced lots of individual assets that however are still being requested by clients with stale cache. This is mostly harmless, except that our production logs are being polluted with tons of error messages and stack traces that make it difficult to see other problems. This should be an easy, but valuable fix.

    Atlassian JIRA | 7 years ago | Igor Minar
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    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.atlassian.plugin.webresource.PluginResourceLocatorImpl.locateBatchPluginResource()
    2. com.atlassian.plugin
      AbstractFileServerServlet.doGet
      1. com.atlassian.plugin.webresource.PluginResourceLocatorImpl.locateBatchPluginResource(PluginResourceLocatorImpl.java:148)
      2. com.atlassian.plugin.webresource.PluginResourceLocatorImpl.getDownloadableResource(PluginResourceLocatorImpl.java:85)
      3. com.atlassian.plugin.servlet.PluginResourceDownload.serveFile(PluginResourceDownload.java:54)
      4. com.atlassian.plugin.servlet.AbstractFileServerServlet.doGet(AbstractFileServerServlet.java:32)
      4 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:796)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
      2 frames
    4. Glassfish Core
      ApplicationDispatcher.forward
      1. org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
      2. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:792)
      3. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:472)
      4. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)
      4 frames
    5. UrlRewriteFilter
      UrlRewriteFilter.doFilter
      1. org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176)
      2. org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:728)
      2 frames
    6. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
      2 frames
    7. com.atlassian.gzipfilter
      GzipFilter.doFilter
      1. com.atlassian.gzipfilter.GzipFilter.doFilterInternal(GzipFilter.java:75)
      2. com.atlassian.gzipfilter.GzipFilter.doFilter(GzipFilter.java:51)
      2 frames