PDA

View Full Version : Unparseable date


andrejan
10-02-2003, 09:58
Hello,

The message below is appearing constantly in the IS server log file:

2003-10-02 15:49:52 CEST [ISC.0076.0004W] BinCoder decode error creating as String java.util.Date, s=Thu Oct 02 15:49:52 MEST 2003.
Excpt:java.text.ParseException: Unparseable date: "Thu Oct 02 15:49:52 MEST 2003"

Does anybody know what is causing this, and how to solve this?
I don't know if it has anything to do with this, but this Integration Server is configured as a Reverse Invoke Server. There is to custom logic on this server.

IS 6.01, SP2 on Solaris.

Thanks,
Andre

fredh666
10-02-2003, 11:42
Since this error is happening on the Reverse Invoke Server my guess is that the error in the result of a particular call that is fowarded to an internal server. The internal service is returning a date. The date in the result pipeline is serialized to a String format and the RI Server is barfing when converting the string "Thu Oct 02 15:49:52 MEST 2003" back to a date.

Are their different versions of the JVM on the Reverse Invoke Server and the internal server? Are they different OSes?

It is possible that the JVM doesn't recognize the timezone "MEST". I can't find a list of supported timezone "text". The Java Doc for SimpleDateFormat, which is doing the deserialization from String to java.util.Date, states: "Time zones are interpreted as text if they have names.".

HTH,
Fred

andrejan
10-03-2003, 02:43
Different JVM versions! There's a clue. The RI server is running on 1.3.1, the IS server on 1.4.1. I will change that.