java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Confluence is unable to export to word a page that contains a jira issue link that uses a different icon other than the default. The use case was the following: 1) Setup a Confluence 5.5.3 and JIRA 6.2.7 (5.1.7 also have failed). 2) Installed the Agile plugin on JIRA and created a sample project. 3) Went to JIRA -> administration -> issues and edited the epic issue type. 4) Changed the issue icon: From this:{color:blue} /images/icons/ico_epic.png {color} To this: {color:red}/download/resources/com.pyxis.greenhopper.jira:greenhopper-webactions/images/ico_epic.png {color} 5) Set the Confluence and jira application links 6) Create a Confluence page and insert a jira issue link (+ -> jira issue -> recently viewed -> select an epic issue link) 7) Save the page and try to export to word. The page won't be displayed and the following appears in Confluence logs: {code} [http-8090-5] [[Standalone].[localhost].[/].[exportword]] log Servlet.service() for servlet exportword threw exception java.lang.NullPointerException at com.atlassian.confluence.servlet.ExportWordPageServer.createInputStreamFromRelativeUrl(ExportWordPageServer.java:426) at com.atlassian.confluence.servlet.ExportWordPageServer.extractImagesFromPage(ExportWordPageServer.java:363) at com.atlassian.confluence.servlet.ExportWordPageServer.outputWordDocument(ExportWordPageServer.java:233) at com.atlassian.confluence.servlet.ExportWordPageServer.service(ExportWordPageServer.java:172) at com.atlassian.confluence.servlet.SpringManagedServlet.service(SpringManagedServlet.java:64) {code} The page can still be exported to PDF, however if you look the exported file, the icon for the epic link is missing. This was noted for pages exported that uses the PlantUML plugin as well. h3. Workaround The workaround for pages exports that fails on JIRA issues icons is to change the icon to the other URL path and refresh confluence page to be able to export to word.
    via by Rodrigo Girardi Adami [Atlassian],
  • Confluence is unable to export to word a page that contains a jira issue link that uses a different icon other than the default. The use case was the following: 1) Setup a Confluence 5.5.3 and JIRA 6.2.7 (5.1.7 also have failed). 2) Installed the Agile plugin on JIRA and created a sample project. 3) Went to JIRA -> administration -> issues and edited the epic issue type. 4) Changed the issue icon: From this:{color:blue} /images/icons/ico_epic.png {color} To this: {color:red}/download/resources/com.pyxis.greenhopper.jira:greenhopper-webactions/images/ico_epic.png {color} 5) Set the Confluence and jira application links 6) Create a Confluence page and insert a jira issue link (+ -> jira issue -> recently viewed -> select an epic issue link) 7) Save the page and try to export to word. The page won't be displayed and the following appears in Confluence logs: {code} [http-8090-5] [[Standalone].[localhost].[/].[exportword]] log Servlet.service() for servlet exportword threw exception java.lang.NullPointerException at com.atlassian.confluence.servlet.ExportWordPageServer.createInputStreamFromRelativeUrl(ExportWordPageServer.java:426) at com.atlassian.confluence.servlet.ExportWordPageServer.extractImagesFromPage(ExportWordPageServer.java:363) at com.atlassian.confluence.servlet.ExportWordPageServer.outputWordDocument(ExportWordPageServer.java:233) at com.atlassian.confluence.servlet.ExportWordPageServer.service(ExportWordPageServer.java:172) at com.atlassian.confluence.servlet.SpringManagedServlet.service(SpringManagedServlet.java:64) {code} The page can still be exported to PDF, however if you look the exported file, the icon for the epic link is missing. This was noted for pages exported that uses the PlantUML plugin as well. h3. Workaround The workaround for pages exports that fails on JIRA issues icons is to change the icon to the other URL path and refresh confluence page to be able to export to word.
    via by Rodrigo Girardi Adami [Atlassian],
    • java.lang.NullPointerException at com.atlassian.confluence.servlet.ExportWordPageServer.createInputStreamFromRelativeUrl(ExportWordPageServer.java:426) at com.atlassian.confluence.servlet.ExportWordPageServer.extractImagesFromPage(ExportWordPageServer.java:363) at com.atlassian.confluence.servlet.ExportWordPageServer.outputWordDocument(ExportWordPageServer.java:233) at com.atlassian.confluence.servlet.ExportWordPageServer.service(ExportWordPageServer.java:172) at com.atlassian.confluence.servlet.SpringManagedServlet.service(SpringManagedServlet.java:64)
    No Bugmate found.