You are not logged in.

Unanswered posts



Important! This site has been replaced. All content here is read-only. Please visit our brand-new community at https://community.talend.com/. We look forward to hearing from you there!



#1 2012-12-26 10:57:40

sumit_gwynniebee
Member
11 posts

sumit_gwynniebee said:

Java problem running Talend Job

Hi All,

I am trying to use tFileInputJSON component for extracting a particular field value from large JSON data.

It works fine with same data set on a particular machine, but fails to do so on other.


2012-12-25 02:30:09;J4J7Gu;J4J7Gu;J4J7Gu;sampleJob;sampleProcess;Default;6;Java Exception;tFileInputJSON_1;javax.script.ScriptException:sun.org.mozilla.javascript.EvaluatorException: Encountered code generation error while compiling script: generated bytecode for method exceeds 64K limit. (<Unknown source>#1) in <Unknown source> at line number 1;1

Please suggest what I can do to fix/work around this problem.

Regards,
Sumit.

Offline

#2 2012-12-27 06:25:40

xdshi
Talend Team


xdshi said:

Re: Java problem running Talend Job

Hi,

Because this is code generation error, you should check the code in Talend studio to find where is the wrong place, exactly. Or you can upload it on the post, we can help to make a research on it.

Best regards
Sabrina
mini_100294_1.png


What we can do is to make sure that Talend will be your best choice!

Offline

#3 2013-02-13 18:34:04

nestoru
Member
57 posts

nestoru said:

Re: Java problem running Talend Job

Hi xdshi,

This is I believe not related to java code generation but rather with Rhino Scrip Engine evaluator (which generates javascript on the fly I believe)

You can try yourself using a big json file which you can generate for example using a bash script like the one I posted in http://thinkinginsoftware.blogspot.com/ … poses.html

You will get no Java errors.

Should we open a ticket for this? This is working for Talend 4.2.2 BTW.

Thanks,

- Nestor
[img]http://www.talendforge.org/forum/img/members/32502/mini_102636_Screen Shot 2013-02-13 at 12.20.48 PM.png[/img][img]http://www.talendforge.org/forum/img/members/32502/mini_102636_Screen Shot 2013-02-13 at 12.22.27 PM.png[/img]

Last edited by nestoru (2013-02-13 18:35:50)

Offline

#4 2013-02-18 07:28:12

xdshi
Talend Team


xdshi said:

Re: Java problem running Talend Job

Hi,

If you using Talend Enterprise subscription version(Talend 4.2.2), you can report a ticket on http://support.talend.com/otrs/customer.pl.
BTW, the link http://thinkinginsoftware.blogspot.com/ … poses.htmlyou provided is invalid, would you give another one to me for view.

Best regards
Sabrina


What we can do is to make sure that Talend will be your best choice!

Offline

#5 2013-02-19 03:26:15

nestoru
Member
57 posts

nestoru said:

Re: Java problem running Talend Job

Hi Sabrina,

No, we use the community version. I have used https://jira.talendforge.org to report issues in the past so I believe that is still an option correct?

The link is valid from here at least. Try just searching for "create a big json file" in thinkinginsoftware.blogspot.com instead.

Best regards,
-Nestor

Offline

#6 2013-02-19 03:37:48

xdshi
Talend Team


xdshi said:

Re: Java problem running Talend Job

Hi,

No, we use the community version. I have used https://jira.talendforge.org to report issues in the past so I believe that is still an option correct?

It is OK. We often report an issue on jira on which talend developer, engineer and professional guys will review it and give the proper response.

The link is valid from here at least. Try just searching for "create a big json file" in thinkinginsoftware.blogspot.com instead.

Unfortunately, I cannot navigate to the website thinkinginsoftware.blogspot.com. Maybe something wrong with that, I will get down to this problem.

Best regards
Sabrina


What we can do is to make sure that Talend will be your best choice!

Offline

#7 2013-02-19 20:31:07

nestoru
Member
57 posts

nestoru said:

Re: Java problem running Talend Job

Let me paste the post here for your convenience. Also I have added the ticket in JIRA https://jira.talendforge.org/browse/TDI-24813

Create a big JSON file for test purposes:
----------------------------------------------
Sometimes you need to try your parser with huge files either for performance reasons or to find out its limitations. Talend tFileInputJSON has a bug in version 5 as stated in this post.

Any script will do the trick here. Here is a quick bash to generate such big json file:

#!/bin/bash
#generateBigJson.sh

MAX=15000
echo "{\"arr\":["
i=1
while [ $i -le $MAX ]; do
  echo -ne "{\"id\":$i, \"next\":$((i+1))}"
  if [ "$i" -ne "$MAX" ]; then
    echo ","
  fi
  let i=i+1
done
echo "]}"
POSTED BY NESTOR URQUIZA AT 9:17 AM   

Cheers,

- Nestor

Offline

#8 2013-02-20 03:30:34

xdshi
Talend Team


xdshi said:

Re: Java problem running Talend Job

Hi,

I got the post info, thanks for your help. I will track this issue on jira and give you a notification on forum  as long as this issue has been fixed.

Best regards
Sabrina


What we can do is to make sure that Talend will be your best choice!

Offline

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy