Error message probably due to the format of the date

Posted by Jacopo Cappellato-3 on
URL: http://ofbiz.116.s1.nabble.com/Error-message-probably-due-to-the-format-of-the-date-tp189107.html

Hi all.

If you visit the following screen:

https://demo.hotwaxmedia.com/catalog/control/EditProductSuppliers?productId=WG-1111

and you click on the update link of one of the rows in the list, for  
example:

https://demo.hotwaxmedia.com/catalog/control/EditProductSuppliers?productId=WG-1111&partyId=BigSupplier&currencyUomId=USD&minimumOrderQuantity=500&availableFromDate=2005-01-01%2000:00:00.000

You get a bad error, and in the log I've found the following useful  
information:

java.lang.NullPointerException
java.util.GregorianCalendar.computeTime(GregorianCalendar.java:2452)
java.util.Calendar.updateTime(Calendar.java:2260)
java.util.Calendar.getTimeInMillis(Calendar.java:1044)
java.util.Calendar.getTime(Calendar.java:1017)
java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1178)
java.text.DateFormat.parse(DateFormat.java:333)
org.ofbiz.base.util.ObjectType.simpleTypeConvert(ObjectType.java:597)
org.ofbiz.entity.model.ModelEntity.convertFieldValue(ModelEntity.java:
1319)
org
.ofbiz
.entity.model.ModelEntity.convertFieldMapInPlace(ModelEntity.java:1262)
org.ofbiz.entity.finder.PrimaryKeyFinder.runFind(PrimaryKeyFinder.java:
96)
org.ofbiz.widget.screen.ModelScreenAction
$EntityOne.runAction(ModelScreenAction.java:506)
org
.ofbiz
.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:
122)
org.ofbiz.widget.screen.ModelScreenWidget
$Section.renderWidgetString(ModelScreenWidget.java:218)
org
.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:
400)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:129)


So it seems an issue with the format of the date... do you have any  
ideas of what could be the cause of this error?

If not, I'm going to look into it. Thanks,

Jacopo