• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tContextLoad generating java.lang.NullPointerException

#1 2009-03-31 23:24:31

SMaz
Member
Registered: 2008-04-21
Posts: 186
Website

tContextLoad generating java.lang.NullPointerException

Tags: [bug, context, db2, error, java]

I have a job that has been working fine for several months.

Our DBA changed the passwords on the database and updated the Default.properties file w/ the new password (All database components use context variables to make the connection).  Since he did, the job has begun to generate the following errors:

v_dummy|82

v_loglines|3

Exception in component tContextLoad_2

java.lang.NullPointerException

        at weeklypayroll.wpp_loadallocations2b_1_5.WPP_LoadAllocations2B.tDB2Input_2Process(WPP_LoadAllocations2B.java:1151)

        at weeklypayroll.wpp_loadallocations2b_1_5.WPP_LoadAllocations2B.tDB2Connection_1Process(WPP_LoadAllocations2B.java:367)

        at weeklypayroll.wpp_loadallocations2b_1_5.WPP_LoadAllocations2B.runJobInTOS(WPP_LoadAllocations2B.java:5644)

        at weeklypayroll.wpp_loadallocations2b_1_5.WPP_LoadAllocations2B.main(WPP_LoadAllocations2B.java:5528)


The job also gets some additional parameters from a database and sets context variables via a tContextLoad.  See the photos.

I inserted a tLogRow to dump the data fetched from the table.  As you can see, it is clearly working. The correct values are being returned from the database.  However, the tContextLoad fails for some mysterious reason. 

The job is deployed on an AIX server and was developed in Windows

Can anyone offer some insight or spot something wrong in the attached screen shots?
Also - from the dump/trace above, it does not appear that the tContextLoad is actually telling me WHERE in the code it failed. It is just saying it did.


Uploaded Images

Last edited by SMaz (2009-03-31 23:28:43)

Offline

#2 2009-04-01 05:11:16

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

Re: tContextLoad generating java.lang.NullPointerException

Hello

You can debug your job and see where it throws the exception in your code. Go to Navigator-->.Java-->src-->yourProjectName-->yourJobName_0_1, open yourJobName.java and debug your job.

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!

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tContextLoad generating java.lang.NullPointerException

Board footer

Powered by FluxBB