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.

  • h3.Steps to Reproduce # Create a page # Insert an image *From the Web*. You can link it to an image hosted in an anonymously-accessible Confluence instance. # Make sure that the page renders the image properly, then shutdown the server that hosts the image, or simply remove the image # Export the page created earlier to Word Notice that the following stack trace will be thrown: {code} 2013-06-03 23:38:52,775 ERROR [http-8512-5] [ContainerBase.[Standalone].[localhost].[/c512]] log Unhandled exception occurred whilst decorating page -- url: /c512/exportword | userName: admin | referer: http://localhost:8512/c512/display/ds/testdasdsa java.lang.NullPointerException at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:226) at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:299) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1375) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021) at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:419) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1354) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2107) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2075) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1770) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1749) at com.atlassian.confluence.servlet.ExportWordPageServer.service(ExportWordPageServer.java:188) {code} h3.Observation Editing the page again to try to remove the broken image is not possible, as the image will be "hidden". h3.Workaround # Install the [Confluence Source Editor|https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.editor.confluence-source-editor] # Edit the page, then click on the *<>* button on the top right corner of the editor # Look for the broken image, example: {code} <ac:image> <ri:url ri:value="http://localhost:8420/c42/download/attachments/589826/global.logo"/> </ac:image> {code} # Remove the broken image tags, or change the link to a valid link for the image (if the image have been moved) # Hit *Apply*, and save the page
    via by Foogie Sim [Atlassian],
  • h3.Steps to Reproduce # Create a page # Insert an image *From the Web*. You can link it to an image hosted in an anonymously-accessible Confluence instance. # Make sure that the page renders the image properly, then shutdown the server that hosts the image, or simply remove the image # Export the page created earlier to Word Notice that the following stack trace will be thrown: {code} 2013-06-03 23:38:52,775 ERROR [http-8512-5] [ContainerBase.[Standalone].[localhost].[/c512]] log Unhandled exception occurred whilst decorating page -- url: /c512/exportword | userName: admin | referer: http://localhost:8512/c512/display/ds/testdasdsa java.lang.NullPointerException at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:226) at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:299) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1375) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021) at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:419) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1354) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2107) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2075) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1770) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1749) at com.atlassian.confluence.servlet.ExportWordPageServer.service(ExportWordPageServer.java:188) {code} h3.Observation Editing the page again to try to remove the broken image is not possible, as the image will be "hidden". h3.Workaround # Install the [Confluence Source Editor|https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.editor.confluence-source-editor] # Edit the page, then click on the *<>* button on the top right corner of the editor # Look for the broken image, example: {code} <ac:image> <ri:url ri:value="http://localhost:8420/c42/download/attachments/589826/global.logo"/> </ac:image> {code} # Remove the broken image tags, or change the link to a valid link for the image (if the image have been moved) # Hit *Apply*, and save the page
    via by Foogie Sim [Atlassian],
  • Apache Jax-RS breaks spring-integration-mail
    via Stack Overflow by woddle
    ,
  • Java Examples: Send email in Java with attachment
    via by Unknown author,
    • java.lang.NullPointerException at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:226) at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:299) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1375) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021) at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:419) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1354) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2107) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2075) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1770) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1749) at com.atlassian.confluence.servlet.ExportWordPageServer.service(ExportWordPageServer.java:188)

    Users with the same issue

    Unknown visitor1 times, last one,