Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Wrapped java.lang.IllegalArgumentException - BIRT

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

0 votes



2 answers

Permanent link
You could start commenting out parts of that code to try to pin-point the exact place where the exception happens.

0 votes


Permanent link
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();

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 14 '10, 7:20 a.m.

Question was seen: 8,678 times

Last updated: May 14 '10, 7:20 a.m.

Confirmation Cancel Confirm