Upgrade fails with java.lang.NullPointerException on com.niku.odf.object.audit.AuditTriggerBuilder.moveOBSAttributesFromAttributeList
search cancel

Upgrade fails with java.lang.NullPointerException on com.niku.odf.object.audit.AuditTriggerBuilder.moveOBSAttributesFromAttributeList

book

Article ID: 387365

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

Upgrade to 16.2.2 fails on postupgrade with error java.lang.NullPointerException: Cannot invoke "com.niku.union.odf.object.ODFObject.getAttribute(String)" because "object" is null

Steps to Reproduce 

  1. Start an upgrade from 16.2.1 to 16.2.3 

Expected Results: Upgrade to complete successfully

Actual Results: Upgrade fails on 16.2.2 post upgrade stage with error with below error 

Executing Ant script: C:\1621\clarity\upgrade\16.2.2\component\postupgrade\database.xml
Total bootstrap time: 0H:0M:4.714S
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "com.niku.union.odf.object.ODFObject.getAttribute(String)" because "object" is null
        at com.niku.odf.object.audit.AuditTriggerBuilder.moveOBSAttributesFromAttributeList(AuditTriggerBuilder.java:150)
        at com.niku.odf.object.audit.AuditTriggerBuilder.<init>(AuditTriggerBuilder.java:101)
        at com.niku.odf.object.audit.AuditTriggerBuilder.<init>(AuditTriggerBuilder.java:78)
        at com.niku.odf.object.AuditTriggerGenerator.createOrReplaceAuditTriggers(AuditTriggerGenerator.java:120)
        at com.niku.odf.object.AuditTriggerGenerator.upgradeObjectTriggers(AuditTriggerGenerator.java:103)
        at com.niku.odf.object.Bootstrap.upgradeAuditTriggers(Bootstrap.java:1529)
        at com.niku.odf.object.Bootstrap.main(Bootstrap.java:1457)
        at com.niku.odf.object.Bootstrap.main(Bootstrap.java:1124)

Environment

Clarity 16.2.2 and versions going through 16.2.2 on upgrade

Resolution

Enable feature TEAM_DEFINITIONS_F28976 and was able to complete the upgrade successfully 

  1. Rollback Clarity to 16.2.1
  2. On the app server, run the command to enable Team Definitions Feature: 
    admin toggle-feature TEAM_DEFINITIONS_F28976 1
  3. Restart the upgrade
  4. Let the upgrade complete 
  5. Disable the toggle admin toggle-feature TEAM_DEFINITIONS_F28976 0