java.lang.NullPointerException error in JDBC create account operation

Hi Team,

I am trying to connect a PostgreSql database using JDBC connector in ISC. I am able to aggregate all the existing accounts into the database. Also able to insert record using query. But, while trying to implement the same into ISC getting “java.lang.NullPointerException” error.

I have attached the JDBC provisioning

GuardianDB.java (4.5 KB)

rule into the post.

Please help me to resolve the issue.

Error :

Hi @Pritam_0007

Please verify the provisioning rule execution context provides a non-null connection (and that the variable name matches), because the NullPointerException is likely happening at connection.prepareStatement(…) in checkUserTable() / executeCreateAccountQuery(). Also check result is initialized before any helper method calls it.

Thanks