Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Upgrade of CMA in 7.2 throwing NullPointerException

SA-24931

Summary



When upgrading Care Management Framework (CMA) from v7.13 to 7.14, after importing the Care Management Framework archive(AB_CMA714_for_Pega_71.jar), validation revealed that rule sets and rules for PegaCareTemplates and Pega278XML are missing.  Attempting to import the archive again fails with a message saying all rules are already in the database. 
 

Error Messages



2016-06-22 15:14:27,500 [ttp-nio-8443-exec-51] [TABTHREAD0] [ ] [CareManagement:07.13] ( internal.mgmt.Executable) ERROR [email protected] - Exception
java.lang.NullPointerException
at com.pega.pegarules.deploy.internal.inventory.SynchronizerImpl.synchronizeOnClass(SynchronizerImpl.java:606)
at com.pega.pegarules.deploy.internal.inventory.SynchronizerImpl.synchronize(SynchronizerImpl.java:483)
at com.pega.pegarules.deploy.internal.inventory.SynchronizerImpl.correlate(SynchronizerImpl.java:173)
at com.pega.pegarules.deploy.internal.PRRuleMgmtUtilsImpl.markInventoryForConsumption(PRRuleMgmtUtilsImpl.java:368)
at com.pegarules.generated.activity.ra_action_pyexaminepegaarchive_70b5fe1919c0764d2e106322ac5e36ec.step3_circum0(ra_action_pyexaminepegaarchive_70b5fe1919c0764d2e106322ac5e36ec.java:393)
at com.pegarules.generated.activity.ra_action_pyexaminepegaarchive_70b5fe1919c0764d2e106322ac5e36ec.perform(ra_action_pyexaminepegaarchive_70b5fe1919c0764d2e106322ac5e36ec.java:104)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)
at com.pegarules.generated.flow.ra_action_pximportpegaarchive_5645e10c8c1c4720df44a97caca9c337.RunTaskActivity(ra_action_pximportpegaarchive_5645e10c8c1c4720df44a97caca9c337.java:3948)
at com.pegarules.generated.flow.ra_action_pximportpegaarchive_5645e10c8c1c4720df44a97caca9c337.Task_UTILITY77_circum0(ra_action_pximportpegaarchive_5645e10c8c1c4720df44a97caca9c337.java:1195)
at com.pegarules.generated.flow.ra_action_pximportpegaarchive_5645e10c8c1c4720df44a97caca9c337.perform(ra_action_pximportpegaarchive_5645e10c8c1c4720df44a97caca9c337.java:621)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)


Steps to Reproduce



Attempt to upgrade from v7.13 to 7.14.  Even though the import says it was successful when validating rulesets see that not all rules have been imported.


Root Cause



A defect in Pegasystems’ code or rules.  The v7.13 introduced an invalid Rule-Admin-Skill instance which is causing the import to fail.

Resolution



Query the rules schema to see the problem rule:
select pzinskey from pr4_rule where pxobjclass = 'Rule-Admin-Skill' and pxinsname is null;

PZINSKEY
--------------------------------------------------------------------------------

RULE-ADMIN-SKILL  #20150703T091037.045 GMT

Delete the problem rule and commit:

delete from pr4_rule where pxobjclass = 'Rule-Admin-Skill' and pxinsname is null;

1 row deleted.

 commit;

Commit complete.
 

 

Published July 3, 2016 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us