• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] error: set context variable value = row3.*

#1 2008-07-17 00:11:44

strpdsnk
Member
Registered: 2008-03-25
Posts: 328

[resolved] error: set context variable value = row3.*

Basically, I used a tBufferOutput component in the job reference by tRunJob_1, and I'm trying to set the values that were passed back to be the new values of the related context variable, and I'm getting the error below. (pics 1-6)

the code in tJava_1

Code:

context.OldFile=row3.OldFile;
context.mtime=row3.mtime;
context.mtime_string=row3.mtime_string;
context.NewFile=row3.NewFile;
context.RejectFile=row3.RejectFile;

the resulting error

Starting job BBdataTransform at 17:57 16/07/2008.
Exception in component tRunJob_2
java.lang.NullPointerException
    at routines.system.RuntimeUtils.getRuntimeType(RuntimeUtils.java:32)
    at routines.system.RuntimeUtils.isDateType(RuntimeUtils.java:22)
    at routines.system.RuntimeUtils.tRunJobConvertContext(RuntimeUtils.java:43)
    at bbfiletransform.bbdatatransform_0_8.BBdataTransform.tRunJob_2Process(BBdataTransform.java:1771)
    at bbfiletransform.bbdatatransform_0_8.BBdataTransform.tRunJob_1Process(BBdataTransform.java:1725)
    at bbfiletransform.bbdatatransform_0_8.BBdataTransform.runJobInTOS(BBdataTransform.java:1992)
\\SBADEVSMF.smithbreeden.dev\odyssey\imdi\bloomberg\BB_Stock_206877_StockAll_213919_BloombergDL.src|1216080258000|Mon Jul 14 20:04:18 EDT 2008|\\SBADEVSMF.smithbreeden.dev\odyssey\imdi\bloomberg\BB_Stock_206877_StockAll_213919_BloombergDL__Reformat.txt|\\SBADEVSMF.smithbreeden.dev\odyssey\imdi\bloomberg\BB_Stock_206877_StockAll_213919_BloombergDL__REJECT.txt
    at bbfiletransform.bbdatatransform_0_8.BBdataTransform.main(BBdataTransform.java:1846)
moment    pid    root_pid    father_pid    project    job    context    priority    type    origin    message    code
[tLogRow_1] 2008-07-16 17:57:53|jYplGI|jYplGI|jYplGI|BBFILETRANSFORM|BBdataTransform|Default|6|Java Exception|tRunJob_2||1
Job BBdataTransform ended at 17:57 16/07/2008. [exit code=1]

but if I set the parameters in tRunJob_2 to the values below (pic 7), then the job runs fine, so the problem must be my code in tJava_1...
        Parameter            Values
        OldFile                  row3.OldFile
        NewFile                 row3.NewFile


Related topics:
[Forum, topic 2914] Dynamically assign values to a job's context variables


Uploaded Images

Last edited by strpdsnk (2008-07-17 00:46:53)

Offline

#2 2008-07-17 04:05:59

shong
Talend team
Registered: 2007-08-29
Posts: 10310
Website

Re: [resolved] error: set context variable value = row3.*

Hello strpdsnk

the code in tJava_1

Using the tJavaRow replace tJava.

Best regards

        shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Online

#3 2008-07-17 20:36:50

strpdsnk
Member
Registered: 2008-03-25
Posts: 328

Re: [resolved] error: set context variable value = row3.*

thanks, that fixed it!

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] error: set context variable value = row3.*

Board footer

Powered by FluxBB