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
- Start the Create REST Integration wizard.
- Enter the URL for the REST Service.
- Select a Method and upload the Request and Response JSON files in the Configure window. Test the Method.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.