Posted: 29 Jun 2015 10:42 EDT Last activity: 18 Jul 2017 10:49 EDT
Local action fail: java.lang.NullPointerException
In the CPMPortal, we added a Tab like Dashbord/Pulse... in which we use a section in the class Data-Admin-Operator-ID.
In this section, we have a button that on click calls a local action under the Data-Admin-Operator-ID class. The flowAction is not excuted correctly, and returns java.lang.NullPointerException. Actually, the action is automatically excuted under CPM-Portal class, though we're working in the Data-Admin-Operator-ID class. (That's why the flowaction is not seen)
How can we correctly call our flowaction?
***Updated by moderator: Lochan to close post*** This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
It sounds like you debugged the NPE down to the class issue that you mention. If you are in the CPM-Portal class context (which would make sense if you're using a section embedded in a CPM portal), can you put your flow action in the same class? If not, do you have a Data-Admin-Operator-ID object on the clipboard that you can reference somewhere (the section?) to switch the context into that class?
Posted: 5 years ago
Updated: 5 years ago
Posted: 29 Jun 2015 11:16 EDT Updated: 29 Jun 2015 11:52 EDT
I'd have to take a closer look at your setup to understand how you're fitting the various pieces together. What versions of the product are you using? Can you put a few screenshots up here to give context? I think you want to do the "Use Clipboard Page" option of the section include on your harness (or parent section). I believe you should be able define your page and class there to get into the correct context.