Hello, I have following problem with java service code:
IDataUtil.put(changesCursor, "myId", myId);
IDataUtil.put(changesCursor, "myType", myType);
IDataUtil.put(changesCursor, "myStatus", "N");
try {
IDataUtil.put(changesCursor, "myDate", myDate);
} catch(Exception e) {
os.write("exc" + e.toString());
} catch(Error err) {
os.write("err" + err.toString());
}
os.write(…) - writes to custom log file
after that there is:
IDataUtil.put(paramsCursor, "myName", myName);
IDataUtil.put(paramsCursor, "myValue", myValue);
which puts pairs name-value list in association with first code fragment.
All of these make document like that:
myChanges [document list]
`- myId [type=Object, wrapper=java.lang.Integer]
`- myType [type=String, wrapper=UNKNOWN]
`- myDate [type=Object, wrapper=java.util.Date]
`- myStatus [type=String, wrapper=UNKNOWN]
`- myParams [document list]
`- myName [type=String, wrapper=UNKNOWN]
`- myValue [type=String, wrapper=UNKNOWN]
Everything is okey when line:
IDataUtil.put(changesCursor, “myDate”, myDate);
not exists, but once it does, in My Web Methods Console in pipeline, i havent date nor value-name pair.
It looks like if I am trying to put java.util.Date object then all “puts” to pipeline fails to execute. Another weird thing is that no error or exception is thrown, and no information in Error or Server log in IS Administrator (nor server.log).
Do you ever met problem like this? How to successfully put java.util.Date object to pipeline?
With Best Regards,
GOLAN.
ps:
English is not my native language; please excuse typing error.
ps2:
Why I doing this in java service instead flow service?
I am doing so in case for performance (which lack of it we painfully felt).