It's all about the answers!

Ask a question

Wrapped java.lang.IllegalArgumentException - BIRT


Bharath M (5465428) | asked May 14 '10, 7:20 a.m.
Hi,

I was trying to define a custom column in one of the Joint Data sets and I came across this error
Wrapped java.lang.IllegalArgumentException

The code I'm using is ,

var dt = new Date(row);
var day = dt.getDay();
if(day == 0){
var dt1 = new Date(dt.setDate(dt.getDate()));
} else if(day == 1){
var dt1 = new Date(dt.setDate(dt.getDate()-1));
} else if(day == 2){
var dt1 = new Date(dt.setDate(dt.getDate()-2));
} else if(day == 3){
var dt1 = new Date(dt.setDate(dt.getDate()-3));
} else if(day == 4){
var dt1 = new Date(dt.setDate(dt.getDate()-4));
} else if(day == 5){
var dt1 = new Date(dt.setDate(dt.getDate()-5));
} else if(day == 6){
var dt1 = new Date(dt.setDate(dt.getDate()-6));
}
(dt1.getMonth()+1)+"/"+dt1.getDate()+"/"+dt1.getFullYear();

Any help is appreciated

Thanks,
Bharath

2 answers



permanent link
Rafik Jaouani (5.0k16) | answered May 14 '10, 10:47 a.m.
JAZZ DEVELOPER
You could start commenting out parts of that code to try to pin-point the exact place where the exception happens.

permanent link
Bharath M (5465428) | answered May 20 '10, 5:07 a.m.
You could start commenting out parts of that code to try to pin-point the exact place where the exception happens.

Rafik, even if I use a simple code like this, it is throwing same exception.
var dt = new Date(row["Date Gen Set::DateRange"]);

dt.getDay();

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.