/t5/coldfusion-discussions/coldfusion-to-java-date-issue/td-p/833660May 19, 2008
May 19, 2008
Copy link to clipboard
Copied
I am sending a date to a customers weblogic code which is
throwing this error. I need help converting a date entered on a
form to the java date format.
weblogic.jms.common.JMSException: Error deserializing object
at
weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:144)
at
com.xxx.iag.billing.framework.server.ServerMessageHandler.onMessage(ServerMessageHandler.java:349)
at
com.xxx.iag.billing.framework.server.ServerMessageHandler.run(ServerMessageHandler.java:405)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.ClassNotFoundException:
coldfusion.runtime.OleDateTime
/t5/coldfusion-discussions/coldfusion-to-java-date-issue/m-p/833661#M76977May 19, 2008
May 19, 2008
Copy link to clipboard
Copied
akhurana wrote:
> I am sending a date to a customers weblogic code which
is throwing this error.
> I need help converting a date entered on a form to the
java date format.
>
> weblogic.jms.common.JMSException: Error deserializing
object
> at
>
weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:144)
> at
>
com.xxx.iag.billing.framework.server.ServerMessageHandler.onMessage(ServerMessag
> eHandler.java:349)
> at
>
com.xxx.iag.billing.framework.server.ServerMessageHandler.run(ServerMessageHandl
> er.java:405)
> at java.lang.Thread.run(Thread.java:534)
> Caused by: java.lang.ClassNotFoundException:
coldfusion.runtime.OleDateTime
if it can handle java epoch offset, you can try getTime()
Paul,
I need to send in fixed dates (start and end), so epoch is
not really an option and the formats need to be "mm/dd/yyyy". Any
help at this point will be really helpful.
akhurana wrote:
> Paul, I need to send in fixed dates (start and end), so
epoch is not really
> an option and the formats need to be "mm/dd/yyyy". Any
help at this point
> will be really helpful.
not sure i'm following, java epoch offsets *are* dates (to
java). in any case if
that app is looking for date strings, just use dateFormat()
on it.
/t5/coldfusion-discussions/coldfusion-to-java-date-issue/m-p/833664#M76980May 20, 2008
May 20, 2008
Copy link to clipboard
Copied
Paul,
Their sample code does this:
hnmReq.setDate("DateFrom", new Date(fromDate));
where the fromDate variable is set to just a date in this
format: mm/dd/yy:
Their dump shows the value set to this format: [ Tue May 20
00:00:00 EDT 2008 ] for 05/20/2008
I need to get this done in coldfusion. The "LONG" format does
not give the date/time in the format above and they see the
java.lang.ClassNotFoundException: coldfusion.runtime.OleDateTime