java.lang.NullPointerException

Atlassian JIRA | Foogie Sim [Atlassian] | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    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

    Atlassian JIRA | 4 years ago | Foogie Sim [Atlassian]
    java.lang.NullPointerException
  2. 0

    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

    Atlassian JIRA | 4 years ago | Foogie Sim [Atlassian]
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Apache Jax-RS breaks spring-integration-mail

    Stack Overflow | 6 years ago | woddle
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at javax.mail.internet.MimeUtility.getEncoding()
    2. JavaMail API
      MimeMessage.writeTo
      1. javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:226)
      2. javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:299)
      3. javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1375)
      4. javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021)
      5. javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:419)
      6. javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1354)
      7. javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2107)
      8. javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2075)
      9. javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1770)
      10. javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1749)
      10 frames
    3. com.atlassian.confluence
      ExportWordPageServer.service
      1. com.atlassian.confluence.servlet.ExportWordPageServer.service(ExportWordPageServer.java:188)
      1 frame