History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-606
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Graeme Rocher
Reporter: Marc Palmer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Grails

Null date fields cause bind exception instead of passing through as null value

Created: 16/Jan/07 05:22 AM   Updated: 30/Jan/07 02:06 PM
Component/s: None
Affects Version/s: 0.4
Fix Version/s: 0.4

Time Tracking:
Not Specified

File Attachments: 1. Text File GrailsDataBinder-patch.txt (2 kb)



 Description  « Hide
Unable to parse structured date from request for date [visitor.dateOfBirth]
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:468)
at java.lang.Integer.parseInt(Integer.java:497)
at org.codehaus.groovy.grails.web.binding.GrailsDataBinder.checkStructuredDateDefinitions(GrailsDataBinder.java:256)
at org.codehaus.groovy.grails.web.binding.GrailsDataBinder.bind(GrailsDataBinder.java:141)
at org.codehaus.groovy.grails.web.metaclass.BindDynamicMethod.invoke(BindDynamicMethod.java:66)
at gjdk.org.codehaus.groovy.grails.web.metaclass.BindDynamicMethod_GroovyReflector.invoke(Unknown Source)
at groovy.lang.MetaMethod.invoke(MetaMethod.java:115)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:559)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:449)
at org.codehaus.groovy.runtime.Invoker.invokePojoMethod(Invoker.java:129)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:117)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:111)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:187)
at org.codehaus.groovy.grails.web.plugins.ControllersGrailsPlugin$_closure4_closure51_closure73.doCall(ControllersGrailsPlugin.groovy:349)

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Graeme Rocher - 16/Jan/07 06:37 AM
Patch attached for the moment