One Star

[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)
...

1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] Large object context variables to tRunjob

I ended up making a singleton class in a Talend routine to hold the Object.
3 REPLIES
Seventeen Stars

Re: [resolved] Large object context variables to tRunjob

hi

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

not enought memory I guess
regards
One Star

Re: [resolved] Large object context variables to tRunjob

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.
One Star

Re: [resolved] Large object context variables to tRunjob

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