• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tMap Null pointer exception...

#1 2008-03-04 19:59:36

javydreamercsw
Member
Registered: 2007-08-09
Posts: 83

tMap Null pointer exception...

Tags: [bug, java, tos2.3.1]

I think the following is a bug and I submit it to you guys.

In the following simple job I have a tMap where it's input are DWH (Data Warehouse dimension table) and POMS (source table). The job works when there are records on the DWH table but gives a Null pointer exception when the amount of records is 0 (table empty). Shouldn't the main row be rejected based on the tmap settings and captured in the create output?

I know that the null pointer is related with the empty resultset.


Uploaded Images

Offline

#2 2008-03-05 10:24:13

amaumont
Talend team
Registered: 2006-09-20
Posts: 471

Re: tMap Null pointer exception...

Indeed, I think you are right, you found a bug. Please, create an issue in the bug tracker and assign to me.

Thanks for your support :-)

Offline

#3 2008-03-05 11:12:22

javydreamercsw
Member
Registered: 2007-08-09
Posts: 83

Re: tMap Null pointer exception...

This is the bug id. Sorry I forgot to assign it to you.

0003267

Offline

#4 2008-03-06 17:04:12

amaumont
Talend team
Registered: 2006-09-20
Posts: 471

Re: tMap Null pointer exception...

Thank you, I hope I will be able to correct this problem for Talend 2.3.2.

Offline

#5 2008-03-06 18:07:43

amaumont
Talend team
Registered: 2006-09-20
Posts: 471

Re: tMap Null pointer exception...

I think i found the cause of this error.

The only case where I reproduced the error is when I set the column "row6.newKey" as Integer, I can't see it on your screenshot.

In my point of view you should only set your column "Var.Numeric" as Integer also by checking nullable. Indeed when no lookup row matches for table "row2", "row6.newKey" become null, but "Var.Numeric" can't be set with a null value, then it occurs NullPointerException.

I hope this solution will resolve your problem ;-)

Offline

#6 2008-03-06 19:07:07

javydreamercsw
Member
Registered: 2007-08-09
Posts: 83

Re: tMap Null pointer exception...

Indeed that solved the problem. Maybe the bug should now concentrate in the element GUI detecting that as an error I guess...

Offline

#7 2008-03-07 10:41:49

amaumont
Talend team
Registered: 2006-09-20
Posts: 471

Re: tMap Null pointer exception...

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tMap Null pointer exception...

Board footer

Powered by FluxBB