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

Error in JSP execution for java.lang.NullPointerException



User gets a java.lang.NullPointerException when running custom JSP.

Error Messages

Error in JSP execution:
at com.pegarules.generated.html_section.ra_stream_mysection_bf7cd2354cc74b9f218c2ce6386382bc.execute(

Steps to Reproduce

Execute the command that generates the error.

Root Cause

The root cause of this problem is a defect in customer application code/rules.
Running the activity pyExtractCode with the parameter taken from the error message (com.pegarules.generated.html_section.ra_stream_mysection_bf7cd2354cc74b9f218c2ce6386382bc) User's code uses the method of an object (for example, myObject.myMethod()) without checking to see if the object is null.


This issue is resolved through the following local-change:  
Verify if the object is null before you attempt to execute one of its methods.

Published June 12, 2015 - 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?

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