java.lang.NullPointerException

Atlassian JIRA | Lachlan Dally | 2 years ago
  1. 0

    The gadget spec for Fisheye's gadgets (<baseURL>/rest/gadgets/1.0/g/com.atlassian.crucible.plugins.review-coverage-report:recent-changesets/gadget/recent-changesets.xml) contains no reference to a thumbnail: {code}<ModulePrefs title="Changeset Review Coverage" directory_title="Changeset Review Coverage" description="Review Coverage of Recent Changes in FishEye repositories" height="400">{code} For comparison, here's one from a JIRA gadget: {code}<ModulePrefs title="__MSG_gadget.introduction.title__" directory_title="__MSG_gadget.introduction.title__" description="__MSG_gadget.introduction.description__" author="Atlassian" author_affiliation="Atlassian" author_location="Sydney, Australia" height="100" screenshot="http://localhost:8090/jira/s/en_AUe61b4v/6339/4/6.3.9/_/download/resources/com.atlassian.jira.gadgets:introduction-gadget/text-screenshot.png" thumbnail="http://localhost:8090/jira/s/en_AUe61b4v/6339/4/6.3.9/_/download/resources/com.atlassian.jira.gadgets:introduction-gadget/text-thumb.png">{code} This results in Confluence being unable to find a thumbnail for this gadget when building a macro placeholder, causing the entire gadget to fail: !https://jira.atlassian.com/secure/attachment/155119/Screen%20Shot%202015-03-18%20at%208.02.24%20pm.png|width=500! The following is seen in the logs: {code}2015-02-26 12:37:28,331 ERROR [http-bio-443-exec-13] [[Standalone].[localhost].[/].[servlet-module-container-servlet]] log Servlet.service() for servlet servlet-module-container-servlet threw exception -- referer: https://confluence-dev.auiag.corp/display/WOOT/Fecru | url: /s/29438/_/plugins/servlet/gadgets/placeholder | userName: yip.leung java.lang.NullPointerException at com.atlassian.confluence.util.http.httpclient.HttpClientHttpRetrievalService.newHttpClient(HttpClientHttpRetrievalService.java:185) at com.atlassian.confluence.util.http.httpclient.HttpClientHttpRetrievalService.newHttpClient(HttpClientHttpRetrievalService.java:177) at com.atlassian.confluence.util.http.httpclient.HttpClientHttpRetrievalService.get(HttpClientHttpRetrievalService.java:46) at com.atlassian.confluence.util.http.BaseHttpRetrievalService.get(BaseHttpRetrievalService.java:19) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy292.get(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy292.get(Unknown Source) at com.atlassian.confluence.plugins.gadgets.GadgetPlaceholderServlet.getIconStream(GadgetPlaceholderServlet.java:196) at com.atlassian.confluence.plugins.gadgets.GadgetPlaceholderServlet.doGet(GadgetPlaceholderServlet.java:167){code}

    Atlassian JIRA | 2 years ago | Lachlan Dally
    java.lang.NullPointerException
  2. 0

    The gadget spec for Fisheye's gadgets (<baseURL>/rest/gadgets/1.0/g/com.atlassian.crucible.plugins.review-coverage-report:recent-changesets/gadget/recent-changesets.xml) contains no reference to a thumbnail: {code}<ModulePrefs title="Changeset Review Coverage" directory_title="Changeset Review Coverage" description="Review Coverage of Recent Changes in FishEye repositories" height="400">{code} For comparison, here's one from a JIRA gadget: {code}<ModulePrefs title="__MSG_gadget.introduction.title__" directory_title="__MSG_gadget.introduction.title__" description="__MSG_gadget.introduction.description__" author="Atlassian" author_affiliation="Atlassian" author_location="Sydney, Australia" height="100" screenshot="http://localhost:8090/jira/s/en_AUe61b4v/6339/4/6.3.9/_/download/resources/com.atlassian.jira.gadgets:introduction-gadget/text-screenshot.png" thumbnail="http://localhost:8090/jira/s/en_AUe61b4v/6339/4/6.3.9/_/download/resources/com.atlassian.jira.gadgets:introduction-gadget/text-thumb.png">{code} This results in Confluence being unable to find a thumbnail for this gadget when building a macro placeholder, causing the entire gadget to fail: !https://jira.atlassian.com/secure/attachment/155119/Screen%20Shot%202015-03-18%20at%208.02.24%20pm.png|width=500! The following is seen in the logs: {code}2015-02-26 12:37:28,331 ERROR [http-bio-443-exec-13] [[Standalone].[localhost].[/].[servlet-module-container-servlet]] log Servlet.service() for servlet servlet-module-container-servlet threw exception -- referer: https://confluence-dev.auiag.corp/display/WOOT/Fecru | url: /s/29438/_/plugins/servlet/gadgets/placeholder | userName: yip.leung java.lang.NullPointerException at com.atlassian.confluence.util.http.httpclient.HttpClientHttpRetrievalService.newHttpClient(HttpClientHttpRetrievalService.java:185) at com.atlassian.confluence.util.http.httpclient.HttpClientHttpRetrievalService.newHttpClient(HttpClientHttpRetrievalService.java:177) at com.atlassian.confluence.util.http.httpclient.HttpClientHttpRetrievalService.get(HttpClientHttpRetrievalService.java:46) at com.atlassian.confluence.util.http.BaseHttpRetrievalService.get(BaseHttpRetrievalService.java:19) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy292.get(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy292.get(Unknown Source) at com.atlassian.confluence.plugins.gadgets.GadgetPlaceholderServlet.getIconStream(GadgetPlaceholderServlet.java:196) at com.atlassian.confluence.plugins.gadgets.GadgetPlaceholderServlet.doGet(GadgetPlaceholderServlet.java:167){code}

    Atlassian JIRA | 2 years ago | Lachlan Dally
    java.lang.NullPointerException
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.confluence.util.http.httpclient.HttpClientHttpRetrievalService.newHttpClient()
    2. com.atlassian.confluence
      BaseHttpRetrievalService.get
      1. com.atlassian.confluence.util.http.httpclient.HttpClientHttpRetrievalService.newHttpClient(HttpClientHttpRetrievalService.java:185)
      2. com.atlassian.confluence.util.http.httpclient.HttpClientHttpRetrievalService.newHttpClient(HttpClientHttpRetrievalService.java:177)
      3. com.atlassian.confluence.util.http.httpclient.HttpClientHttpRetrievalService.get(HttpClientHttpRetrievalService.java:46)
      4. com.atlassian.confluence.util.http.BaseHttpRetrievalService.get(BaseHttpRetrievalService.java:19)
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    4. com.atlassian.plugin
      DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke
      1. com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
      1 frame
    5. com.sun.proxy
      $Proxy292.get
      1. com.sun.proxy.$Proxy292.get(Unknown Source)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    7. com.atlassian.plugin
      HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke
      1. com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
      1 frame
    8. com.sun.proxy
      $Proxy292.get
      1. com.sun.proxy.$Proxy292.get(Unknown Source)
      1 frame
    9. com.atlassian.confluence
      GadgetPlaceholderServlet.getIconStream
      1. com.atlassian.confluence.plugins.gadgets.GadgetPlaceholderServlet.getIconStream(GadgetPlaceholderServlet.java:196)
      1 frame