cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
40
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: tejas varade on 11-05-2012 10:39:25 AM
Actually I am stuck on one point. I am trying to set the application data and then retrieve the same from a custom class. But I am getting a null pointer.
 
I am reading an XML file to set the application data. I have implemented the StartApplicationInterface in my class TestOnAppLoad. (public class TestOnAppLoad implements StartApplicationInterface)
 
Inside the onStartApplication method I am using the setApplicationData method to set the values read from the XML file to application data.
 
 
Now, in my other class TestCustomElementSetDataToSession I am extending from the ActionElementBase . (public class TestCustomElementSetDataToSession extends ActionElementBase)
 
And inside the doAction method I my reading the application data names. (String [] appDataNamesArray = aeData.getApplicationAPI().getApplicationDataNames();)
 
But I am getting a null pointer on the above line.
 
It would be really helpful if you could suggest something also if I could get some sample code to refer from.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links