Getting Error: java.lang.NullPointerException in the flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2020 10:32 AM
Hi,
I created a catalog items with two choice fields and one is dependent on another.
1. category -- values are database and Network
2.Subcategory- values are depending on choosing the value of category.
I have created a flow designer ,if category is DB , it creates task to Team1 .If category is N/W ,task is getting created to Team2.
In the flow designer i created one action which helps to get display values of "category and subcategory".
Now when i test the action,it works fine and it displays category and subcategory values of RITM.
But when i test wth the flow,it is throwing the Error: java.lang.NullPointerException and category ,sub category values are empty.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2021 08:46 AM
Did you get any reply regarding this? We have a similar issue whereby we run the Flow as a test successfully but run it as intended (automated form creates a ticket, Flow is triggered by ticket) and the Flow gives the same Java error:
Flow Designer: Operation(SCA Onboarding Create.Lookup SCA Variable Records From Catalog Item$1.callSub) failed with error: java.lang.NullPointerException
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2021 03:30 PM
This is probably too late, but NULL pointers are usually a dot walk to an empty or non-existing field.
I would recommend the good old gs.log() to log the values of all the dot walked variables and see if anything is missing along the way.
A good try{<your code here>}catch(e){gs.log(e)} can also help you find where things broke or found null pointers.
Hope this helps.
Ran in to your article due to a similar issue, but mine is preventing me from publishing my flow. When i test my action it works, but the publish it is stating that i have a null pointer that i just cannot find.
I'm ready to go back to workflow.