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

Create REST Integration wizard triggers Null Pointer Exception

SA-47551

Summary



When uploading a JSON sample, the REST Integration wizard triggers a Null Pointer Exception while generating rules.


Error Messages



[PegaRULES-Batch-2] [STANDARD] [] [your_app:01.01.01] (internal.util.PRServiceUtils) ERROR your_user - Rule Generator thrown exception:
java.lang.NullPointerException
at com.pega.pegarules.integration.config.internal.mapping.RuleGeneratorREST.addRequestDTSteps(RuleGeneratorREST.java:777)
at com.pega.pegarules.integration.config.internal.mapping.RuleGeneratorREST.addRequestDTSteps(RuleGeneratorREST.java:822)



Steps to Reproduce

  1. Start the Create REST Integration wizard.
  2. Enter the URL for the REST Service.
  3. Select a Method and upload the Request and Response JSON files in the Configure window. Test the Method.
  4. Navigate to the Generate Record screen > Select the Class Names, Ruleset, and Ruleset Versions for the Integration.


Root Cause



A defect in Pegasystems’ code or rules. When a JSON sample has a value array, it is parsed correctly but its Meta data is not saved.


Resolution



Apply HFix-38996.


Published December 4, 2017 - Updated October 8, 2020

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?

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