Hello,
We are having an interesting problem that might be related to another posting
There is an exception in our logs
13:47:51,076 INFO [stdout] (http--0.0.0.0-8180-3) Caused by: java.lang.IllegalArgumentException: DAY_OF_MONTH: 8 -> 8
13:47:51,076 INFO [stdout] (http--0.0.0.0-8180-3) at java.util.GregorianCalendar.computeTime(GregorianCalendar.java:2764)
13:47:51,076 INFO [stdout] (http--0.0.0.0-8180-3) at java.util.Calendar.updateTime(Calendar.java:2606)
13:47:51,076 INFO [stdout] (http--0.0.0.0-8180-3) at java.util.Calendar.complete(Calendar.java:1558)
13:47:51,076 INFO [stdout] (http--0.0.0.0-8180-3) at java.util.Calendar.get(Calendar.java:1162)
13:47:51,076 INFO [stdout] (http--0.0.0.0-8180-3) at java.text.SimpleDateFormat.subFormat(SimpleDateFormat.java:1093)
13:47:51,076 INFO [stdout] (http--0.0.0.0-8180-3) at java.text.SimpleDateFormat.format(SimpleDateFormat.java:978)
13:47:51,076 INFO [stdout] (http--0.0.0.0-8180-3) at java.text.SimpleDateFormat.format(SimpleDateFormat.java:948)
13:47:51,076 INFO [stdout] (http--0.0.0.0-8180-3) at java.text.DateFormat.format(DateFormat.java:336)
13:47:51,076 INFO [stdout] (http--0.0.0.0-8180-3) at com.documentum.fc.common.DfTime.toString(DfTime.java:337)
13:47:51,076 INFO [stdout] (http--0.0.0.0-8180-3) at com.documentum.fc.common.DfValue.toString(DfValue.java:493)
13:47:51,076 INFO [stdout] (http--0.0.0.0-8180-3) at ourpackage.DFCHandler.performQuery(DFCHandler.java:199)
The exception is thrown by the code here.
iRes = query.execute(session, IDfQuery.READ_QUERY);
while (iRes.next()) {
String[] valuesObj = new String[iRes.getAttrCount()];
for (int i = 0; i < iRes.getAttrCount(); i++) {
if (iRes.getValueAt(i) instanceof IDfTime) {
/* should be thrown here */ valuesObj[i] = ((IDfTime)iRes.getValueAt(i)).toString();
} else if (iRes.getValueAt(i) instanceof IDfId) {
valuesObj[i] = ((IDfId) iRes.getValueAt(i)).toString();
} else {
/* line 199*/ valuesObj[i] = iRes.getValueAt(i).toString();
}
}
rows.add(valuesObj);
}
There is a similar post
https://community.emc.com/thread/138382?tstart=0
but the exception is not exactly the same
Any ideas?
Nikos.