java.lang.NullPointerException

Atlassian JIRA | Bruno Rosa | 4 months ago
  1. 0

    h3. Summary Bamboo throws the following error while attempting to export data out of Bamboo: {code:java} 2016-07-21 14:11:52,858 INFO [http-apr-8085-exec-5] [XmlMigrator] Writing xml to file: C:\bamboo-home\exports\export_bamboo_51020_20160721.zip\db-export\artifacts.xml 2016-07-21 14:11:52,858 INFO [http-apr-8085-exec-5] [XmlMigrator] Exporting with: com.atlassian.bamboo.artifact.ArtifactMapper 2016-07-21 14:11:52,954 INFO [http-apr-8085-exec-5] [XmlMigrator] Ensuring the the file has been unmounted 2016-07-21 14:11:52,955 INFO [http-apr-8085-exec-5] [XmlMigrator] Unmounted C:\bamboo-home\exports\export_bamboo_51020_20160721.zip 2016-07-21 14:11:52,963 INFO [http-apr-8085-exec-5] [ServerLifecycleManagerImpl] Server state changed to 'RUNNING' from 'PAUSED' by 'bamboouser' 2016-07-21 14:11:52,964 ERROR [http-apr-8085-exec-5] [Export] java.lang.NullPointerException java.lang.NullPointerException at com.atlassian.bamboo.artifact.ArtifactMapper.exportProperties(ArtifactMapper.java:102) at com.atlassian.bamboo.artifact.ArtifactMapper.exportProperties(ArtifactMapper.java:21) {code} h3. Steps to Reproduce # Go to {{Bamboo administration >> Overview >> System >> Export}}. # Click on the *Export* button. # Wait for the export process to finish. h3. Expected Results The export process writes to the {{artifacts.xml}} file successfully: {code:java} 2016-07-28 17:29:42,625 INFO [http-nio-8085-exec-9] [XmlMigrator] Writing xml to file: /Users/brosa/Documents/Atlassian/restore/sqlserver/bamboo-5.10.3/home/exports/export_restore5103_51020_20160728.zip/db-export/artifacts.xml 2016-07-28 17:29:42,625 INFO [http-nio-8085-exec-9] [XmlMigrator] Exporting with: com.atlassian.bamboo.artifact.ArtifactMapper 2016-07-28 17:29:42,716 INFO [http-nio-8085-exec-9] [XmlMigrator] Finished writing to file: /Users/brosa/Documents/Atlassian/restore/sqlserver/bamboo-5.10.3/home/exports/export_restore5103_51020_20160728.zip/db-export/artifacts.xml ... {code} And reports: {code:java} ... 2016-07-28 17:30:10,983 INFO [http-nio-8085-exec-9] [XmlMigrator] Finished updating zip 2016-07-28 17:30:10,983 INFO [http-nio-8085-exec-9] [XmlMigrator] Ensuring the the file has been unmounted 2016-07-28 17:30:10,984 INFO [http-nio-8085-exec-9] [XmlMigrator] Unmounted /Users/brosa/Documents/Atlassian/restore/sqlserver/bamboo-5.10.3/home/exports/export_restore5103_51020_20160728.zip 2016-07-28 17:30:10,984 INFO [http-nio-8085-exec-9] [XmlMigrator] Export completed. 00:02:55.010 {code} No error messages in the logs. h3. Actual Results The export process fails while trying to export and write the {{artifacts.xml}} file with: {code:java} 2016-07-21 14:11:52,858 INFO [http-apr-8085-exec-5] [XmlMigrator] Writing xml to file: C:\bamboo-home\exports\export_bamboo_51020_20160721.zip\db-export\artifacts.xml 2016-07-21 14:11:52,858 INFO [http-apr-8085-exec-5] [XmlMigrator] Exporting with: com.atlassian.bamboo.artifact.ArtifactMapper 2016-07-21 14:11:52,954 INFO [http-apr-8085-exec-5] [XmlMigrator] Ensuring the the file has been unmounted 2016-07-21 14:11:52,955 INFO [http-apr-8085-exec-5] [XmlMigrator] Unmounted C:\bamboo-home\exports\export_bamboo_51020_20160721.zip 2016-07-21 14:11:52,963 INFO [http-apr-8085-exec-5] [ServerLifecycleManagerImpl] Server state changed to 'RUNNING' from 'PAUSED' by 'bamboouser' 2016-07-21 14:11:52,964 ERROR [http-apr-8085-exec-5] [Export] java.lang.NullPointerException java.lang.NullPointerException at com.atlassian.bamboo.artifact.ArtifactMapper.exportProperties(ArtifactMapper.java:102) at com.atlassian.bamboo.artifact.ArtifactMapper.exportProperties(ArtifactMapper.java:21) {code} h3. Workaround The problem is caused by the {{null}} value assigned to the *ARCHIVER_TYPE* column inside the *ARTIFACT* table. This column does not accept {{null}} values. It is possible to identify the problem with the following SELECT statement: {code:java|title=Checking if you are affected by this bug} select * from ARTIFACT where ARCHIVER_TYPE is null; {code} If the above search return {{null}} values, you can change them to 0 using the following steps: # Stop Bamboo. # (!) Take a backup of the Bamboo database before moving forward. # Run the following SQL query: {code:java|title=Updating null values to 0} update ARTIFACT set ARCHIVER_TYPE = 0 where ARCHIVER_TYPE is null; {code} # Start Bamboo.

    Atlassian JIRA | 4 months ago | Bruno Rosa
    java.lang.NullPointerException
  2. 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
  3. 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.bamboo.artifact.ArtifactMapper.exportProperties()
    2. com.atlassian.bamboo
      ArtifactMapper.exportProperties
      1. com.atlassian.bamboo.artifact.ArtifactMapper.exportProperties(ArtifactMapper.java:102)
      2. com.atlassian.bamboo.artifact.ArtifactMapper.exportProperties(ArtifactMapper.java:21)
      2 frames