When i go to url:
https://localhost3:8443/projectmgr/control/MyTimesheet and enter a date in the second form: Add a new weekly Timesheet and press enter I get: Exception: org.ofbiz.base.conversion.ConversionException Message: java.text.ParseException: Unparseable date: "2009-11-18" ---- cause --------------------------------------------------------------------- Exception: java.text.ParseException Message: Unparseable date: "2009-11-18" ---- stack trace --------------------------------------------------------------- java.text.ParseException: Unparseable date: "2009-11-18" java.text.DateFormat.parse(DateFormat.java:337) org.ofbiz.base.conversion.DateTimeConverters $StringToTimestamp.convert(DateTimeConverters.java:414) org.ofbiz.base.conversion.DateTimeConverters $StringToTimestamp.convert(DateTimeConverters.java:396) org.ofbiz.base.util.ObjectType.simpleTypeConvert(ObjectType.java:511) -- http://www.antwebsystems.com : Quality OFBiz support for competitive rates.... |
Administrator
|
Adrian,
I confirm at r835282 Thanks Jacques From: "Hans Bakker" <[hidden email]> > When i go to url: > https://localhost3:8443/projectmgr/control/MyTimesheet > > and enter a date in the second form: Add a new weekly Timesheet > and press enter I get: > > Exception: org.ofbiz.base.conversion.ConversionException > Message: java.text.ParseException: Unparseable date: "2009-11-18" > ---- cause > --------------------------------------------------------------------- > Exception: java.text.ParseException > Message: Unparseable date: "2009-11-18" > ---- stack trace > --------------------------------------------------------------- > java.text.ParseException: Unparseable date: "2009-11-18" > java.text.DateFormat.parse(DateFormat.java:337) > org.ofbiz.base.conversion.DateTimeConverters > $StringToTimestamp.convert(DateTimeConverters.java:414) > org.ofbiz.base.conversion.DateTimeConverters > $StringToTimestamp.convert(DateTimeConverters.java:396) > org.ofbiz.base.util.ObjectType.simpleTypeConvert(ObjectType.java:511) > > > > -- > http://www.antwebsystems.com : > Quality OFBiz support for competitive rates.... > |
In reply to this post by Hans Bakker
That's interesting. The converter is working correctly. The
createTimesheetForThisWeek service is expecting a java.sql.Timestamp data type, not a java.sql.Date data type. The fact that it worked before was a bug - it should have failed before the switch to the new conversion code. The requiredDate parameter needs to be changed to java.sql.Date, or the data entry field needs to support a time component. -Adrian Hans Bakker wrote: > When i go to url: > https://localhost3:8443/projectmgr/control/MyTimesheet > > and enter a date in the second form: Add a new weekly Timesheet > and press enter I get: > > Exception: org.ofbiz.base.conversion.ConversionException > Message: java.text.ParseException: Unparseable date: "2009-11-18" > ---- cause > --------------------------------------------------------------------- > Exception: java.text.ParseException > Message: Unparseable date: "2009-11-18" > ---- stack trace > --------------------------------------------------------------- > java.text.ParseException: Unparseable date: "2009-11-18" > java.text.DateFormat.parse(DateFormat.java:337) > org.ofbiz.base.conversion.DateTimeConverters > $StringToTimestamp.convert(DateTimeConverters.java:414) > org.ofbiz.base.conversion.DateTimeConverters > $StringToTimestamp.convert(DateTimeConverters.java:396) > org.ofbiz.base.util.ObjectType.simpleTypeConvert(ObjectType.java:511) > > > |
I found the prior code that made this work and updated the String to
Timestamp converter. I don't like what is being done there, but I committed it anyway for backward compatibility. -Adrian Adrian Crum wrote: > That's interesting. The converter is working correctly. The > createTimesheetForThisWeek service is expecting a java.sql.Timestamp > data type, not a java.sql.Date data type. The fact that it worked before > was a bug - it should have failed before the switch to the new > conversion code. > > The requiredDate parameter needs to be changed to java.sql.Date, or the > data entry field needs to support a time component. > > -Adrian > > Hans Bakker wrote: >> When i go to url: https://localhost3:8443/projectmgr/control/MyTimesheet >> >> and enter a date in the second form: Add a new weekly Timesheet >> and press enter I get: >> >> Exception: org.ofbiz.base.conversion.ConversionException >> Message: java.text.ParseException: Unparseable date: "2009-11-18" >> ---- cause >> --------------------------------------------------------------------- >> Exception: java.text.ParseException >> Message: Unparseable date: "2009-11-18" >> ---- stack trace >> --------------------------------------------------------------- >> java.text.ParseException: Unparseable date: "2009-11-18" >> java.text.DateFormat.parse(DateFormat.java:337) >> org.ofbiz.base.conversion.DateTimeConverters >> $StringToTimestamp.convert(DateTimeConverters.java:414) >> org.ofbiz.base.conversion.DateTimeConverters >> $StringToTimestamp.convert(DateTimeConverters.java:396) >> org.ofbiz.base.util.ObjectType.simpleTypeConvert(ObjectType.java:511) >> >> >> > |
Free forum by Nabble | Edit this page |