Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Large object context variables to tRunjob

I'm having an issue passing an object context variable to a subjob.
The variable is set in the tJavaFlex like so,
context.parentObj = dbu.getObj();

then I'm checking it to make sure it was set.
After the first iteration I'm getting this:
Exception in thread "main" java.lang.Error: java.lang.Error: java.lang.StackOverflowError
at warehouse.testjob_0_1.TestJob.tRunJob_1Process(TestJob.java:439)
at warehouse.testjob_0_1.TestJob.runJobInTOS(TestJob.java:857)
at warehouse.testjob_0_1.TestJob.main(TestJob.java:721)
Caused by: java.lang.Error: java.lang.StackOverflowError
at warehouse.testjob_0_1.TestJob.tJavaFlex_1Process(TestJob.java:674)
at warehouse.testjob_0_1.TestJob.tRunJob_1Process(TestJob.java:430)
... 2 more
Caused by: java.lang.StackOverflowError
at java.lang.Class.privateGetPublicMethods(Class.java:2627)
at java.lang.Class.getMethods(Class.java:1457)
at routines.system.JSONObject.populateMap(JSONObject.java:790)
at routines.system.JSONObject.<init>(JSONObject.java:248)
at routines.system.JSONObject.wrap(JSONObject.java:1365)
at routines.system.JSONObject.populateMap(JSONObject.java:817)
at routines.system.JSONObject.<init>(JSONObject.java:248)
at routines.system.JSONObject.wrap(JSONObject.java:1365)
at routines.system.JSONObject.populateMap(JSONObject.java:817)
...

Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I ended up making a singleton class in a Talend routine to hold the Object.

View solution in original post

3 Replies
Anonymous
Not applicable
Author

hi

java.lang.Error: java.lang.Error: java.lang.StackOverflowError

not enought memory I guess
regards
Anonymous
Not applicable
Author

So then, what can be done? I've already tried increasing the JVM memory settings for the job. I don't think memory should be this tight grabbing just one object from the database. The only time I see the issue is passing it through to another Runjob.
Anonymous
Not applicable
Author

I ended up making a singleton class in a Talend routine to hold the Object.