[resolved] Large object context variables to tRunjob

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


Accepted Solutions
Highlighted
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.

View solution in original post


All 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
Highlighted
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.
Highlighted
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.

View solution in original post

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog