java.lang.NullPointerException

tip

Take a look at this blog post on how to set up Grid2 https://goo.gl/rxzbE6. A user related (in the email group on the source) that using older selenium libs solves this exception.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • h3. Step to replicate # Create a question and attach an attachmen to the question. # Edit the question and move it to another space. # Edit the question again. Observed Result: The following ERROR appear in the browser {code} Your Confluence administrator can use the support request form to create a support ticket which will include this information. We will respond as promptly as possible. Thank you! Return to site homepage… Cause java.lang.NullPointerException: inputStream cannot be null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) Stack Trace:[hide] java.lang.NullPointerException: inputStream cannot be null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) at com.atlassian.confluence.pages.persistence.dao.AttachmentDataStream$InputStreamWrapper.<init>(AttachmentDataStream.java:43) at com.atlassian.confluence.pages.persistence.dao.filesystem.FileSystemAttachmentDataDao.rawBinaryWrapper(FileSystemAttachmentDataDao.java:155) at com.atlassian.confluence.pages.persistence.dao.filesystem.FileSystemAttachmentDataDao.saveDataForAttachment(FileSystemAttachmentDataDao.java:150) at {code} The attachment which is stored in the filesystem are not moved to the new location after thhe question is moved to the new space. The attachment still exist in the old location in the filesystem. Because the question in the new space is trying to refer to the attachment in the new location, it could not find the attachment which resulted in the ERROR. For example Before the question was moved to the new space, the attachment is stored in the following location in the filesystem: {panel} /home/jing/atlassian/atlassian-confluence-5.6.6/data/attachments/ver003/172/223/59473922/146/60/59310146/59441182 {panel} After it has been moved it is still in the same location: {panel} /home/jing/atlassian/atlassian-confluence-5.6.6/data/attachments/ver003/172/223/59473922/146/60/59310146/59441182 {panel} By right, the value {{/172/223/59473922}} in the path above should be difference based on the new spaceid as explained here https://confluence.atlassian.com/display/DOC/Hierarchical+File+System+Attachment+Storage.
    via by Jing Hwa [Atlassian],
  • h3. Step to replicate # Create a question and attach an attachmen to the question. # Edit the question and move it to another space. # Edit the question again. Observed Result: The following ERROR appear in the browser {code} Your Confluence administrator can use the support request form to create a support ticket which will include this information. We will respond as promptly as possible. Thank you! Return to site homepage… Cause java.lang.NullPointerException: inputStream cannot be null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) Stack Trace:[hide] java.lang.NullPointerException: inputStream cannot be null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) at com.atlassian.confluence.pages.persistence.dao.AttachmentDataStream$InputStreamWrapper.<init>(AttachmentDataStream.java:43) at com.atlassian.confluence.pages.persistence.dao.filesystem.FileSystemAttachmentDataDao.rawBinaryWrapper(FileSystemAttachmentDataDao.java:155) at com.atlassian.confluence.pages.persistence.dao.filesystem.FileSystemAttachmentDataDao.saveDataForAttachment(FileSystemAttachmentDataDao.java:150) at {code} The attachment which is stored in the filesystem are not moved to the new location after the question is moved to the new space. The attachment still exist in the old location in the filesystem. Because the question in the new space is trying to refer to the attachment in the new location, it could not find the attachment which resulted in the ERROR. For example Before the question was moved to the new space, the attachment is stored in the following location in the filesystem: {panel} /home/jing/atlassian/atlassian-confluence-5.6.6/data/attachments/ver003/172/223/59473922/146/60/59310146/59441182 {panel} After it has been moved it is still in the same location: {panel} /home/jing/atlassian/atlassian-confluence-5.6.6/data/attachments/ver003/172/223/59473922/146/60/59310146/59441182 {panel} By right, the value {{/172/223/59473922}} in the path above should be difference as it is suppose to be reffering to new spaceid as explained here https://confluence.atlassian.com/display/DOC/Hierarchical+File+System+Attachment+Storage.
    via by Jing Hwa [Atlassian],
  • h3. Step to replicate # Create a question and attach an attachmen to the question. # Edit the question and move it to another space. # Edit the question again. Observed Result: The following ERROR appear in the browser {code} Your Confluence administrator can use the support request form to create a support ticket which will include this information. We will respond as promptly as possible. Thank you! Return to site homepage… Cause java.lang.NullPointerException: inputStream cannot be null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) Stack Trace:[hide] java.lang.NullPointerException: inputStream cannot be null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) at com.atlassian.confluence.pages.persistence.dao.AttachmentDataStream$InputStreamWrapper.<init>(AttachmentDataStream.java:43) at com.atlassian.confluence.pages.persistence.dao.filesystem.FileSystemAttachmentDataDao.rawBinaryWrapper(FileSystemAttachmentDataDao.java:155) at com.atlassian.confluence.pages.persistence.dao.filesystem.FileSystemAttachmentDataDao.saveDataForAttachment(FileSystemAttachmentDataDao.java:150) at {code} The attachment which is stored in the filesystem are not moved to the new location after thhe question is moved to the new space. The attachment still exist in the old location in the filesystem. Because the question in the new space is trying to refer to the attachment in the new location, it could not find the attachment which resulted in the ERROR. For example Before the question was moved to the new space, the attachment is stored in the following location in the filesystem: {panel} /home/jing/atlassian/atlassian-confluence-5.6.6/data/attachments/ver003/172/223/59473922/146/60/59310146/59441182 {panel} After it has been moved it is still in the same location: {panel} /home/jing/atlassian/atlassian-confluence-5.6.6/data/attachments/ver003/172/223/59473922/146/60/59310146/59441182 {panel} By right, the value {{/172/223/59473922}} in the path above should be difference based on the new spaceid as explained here https://confluence.atlassian.com/display/DOC/Hierarchical+File+System+Attachment+Storage.
    via by Jing Hwa [Atlassian],
  • h3. Step to replicate # Create a question and attach an attachmen to the question. # Edit the question and move it to another space. # Edit the question again. Observed Result: The following ERROR appear in the browser {code} Your Confluence administrator can use the support request form to create a support ticket which will include this information. We will respond as promptly as possible. Thank you! Return to site homepage… Cause java.lang.NullPointerException: inputStream cannot be null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) Stack Trace:[hide] java.lang.NullPointerException: inputStream cannot be null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) at com.atlassian.confluence.pages.persistence.dao.AttachmentDataStream$InputStreamWrapper.<init>(AttachmentDataStream.java:43) at com.atlassian.confluence.pages.persistence.dao.filesystem.FileSystemAttachmentDataDao.rawBinaryWrapper(FileSystemAttachmentDataDao.java:155) at com.atlassian.confluence.pages.persistence.dao.filesystem.FileSystemAttachmentDataDao.saveDataForAttachment(FileSystemAttachmentDataDao.java:150) at {code} The attachment which is stored in the filesystem are not moved to the new location after the question is moved to the new space. The attachment still exist in the old location in the filesystem. Because the question in the new space is trying to refer to the attachment in the new location, it could not find the attachment which resulted in the ERROR. For example Before the question was moved to the new space, the attachment is stored in the following location in the filesystem: {panel} /home/jing/atlassian/atlassian-confluence-5.6.6/data/attachments/ver003/172/223/59473922/146/60/59310146/59441182 {panel} After it has been moved it is still in the same location: {panel} /home/jing/atlassian/atlassian-confluence-5.6.6/data/attachments/ver003/172/223/59473922/146/60/59310146/59441182 {panel} By right, the value {{/172/223/59473922}} in the path above should be difference as it is suppose to be reffering to new spaceid as explained here https://confluence.atlassian.com/display/DOC/Hierarchical+File+System+Attachment+Storage.
    via by Jing Hwa [Atlassian],
  • How to find Docker REST API URI for Jenkins
    via Stack Overflow by pcsram
    ,
  • Error running GPW - OpenNLP
    via GitHub by joeferner
    ,
  • SonarQube - QProfile is missing
    via Stack Overflow by shaunSCM
    ,
    • java.lang.NullPointerException: inputStream cannot be null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    83 more bugmates