Ticket #11 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

DATE fields can have times but the modify study wizard breaks on that

Reported by: kees.vanbochove@… Owned by: j.a.m.wesbeek@…
Priority: major Milestone:
Component: Version:
Keywords: Cc:
Product: Operating system:
URL: Hardware:

Description

If a DATE field has also a time (as is the case in the PPSH study that is added in development mode of #698), the create/modify study wizard breaks on the Sample step, with the following error.

Of course DATE fields should not contain a time (we should probably create a DATETIME field for that, but in this case with birth date it is genuinely a date) but still they could be imported or entered directly in the program as in this case. So the data layer should handle that correctly.

java.text.ParseException?: Unparseable date: "01/01/1959 00:02"

at java.text.DateFormat?.parse(DateFormat?.java:337)
at dbnp.studycapturing.TemplateEntity?.setFieldValue(TemplateEntity?.groovy:456)
at dbnp.studycapturing.TemplateEntity?$setFieldValue$0.call(Unknown Source)
at dbnp.studycapturing.WizardController?$_handleSubjects_closure16_closure120_closure121.doCall(WizardController?.groovy:1151)
at dbnp.studycapturing.WizardController?$_handleSubjects_closure16_closure120.doCall(WizardController?.groovy:1147)
at dbnp.studycapturing.WizardController?$_handleSubjects_closure16.doCall(WizardController?.groovy:1145)
at dbnp.studycapturing.WizardController?.handleSubjects(WizardController?.groovy:1143)
at dbnp.studycapturing.WizardController?$_closure2_closure34_closure63.doCall(WizardController?.groovy:375)
at org.apache.shiro.web.servlet.ShiroFilter?.executeChain(ShiroFilter?.java:687)
at org.apache.shiro.web.servlet.ShiroFilter?.doFilterInternal(ShiroFilter?.java:616)
at org.apache.shiro.web.servlet.OncePerRequestFilter?.doFilter(OncePerRequestFilter?.java:81)
at java.lang.Thread.run(Thread.java:637)

2010-07-23 11:54:22,797 [http-8080-1] ERROR errors.GrailsExceptionResolver? - Exception thrown executing org.codehaus.groovy.grails.webflow.engine.builder.ClosureInvokingAction?@5ff935cb in state 'subjects' of flow 'wizard/pages' -- action execution attributes were 'map[[empty]]'
org.springframework.webflow.execution.ActionExecutionException?: Exception thrown executing org.codehaus.groovy.grails.webflow.engine.builder.ClosureInvokingAction?@5ff935cb in state 'subjects' of flow 'wizard/pages' -- action execution attributes were 'map[[empty]]'

at org.apache.shiro.web.servlet.ShiroFilter?.executeChain(ShiroFilter?.java:687)
at org.apache.shiro.web.servlet.ShiroFilter?.doFilterInternal(ShiroFilter?.java:616)
at org.apache.shiro.web.servlet.OncePerRequestFilter?.doFilter(OncePerRequestFilter?.java:81)
at java.lang.Thread.run(Thread.java:637)

Caused by: java.text.ParseException?: Unparseable date: "01/01/1959 00:02"

at java.text.DateFormat?.parse(DateFormat?.java:337)
at dbnp.studycapturing.TemplateEntity?.setFieldValue(TemplateEntity?.groovy:456)
at dbnp.studycapturing.TemplateEntity?$setFieldValue$0.call(Unknown Source)
at dbnp.studycapturing.WizardController?$_handleSubjects_closure16_closure120_closure121.doCall(WizardController?.groovy:1151)
at dbnp.studycapturing.WizardController?$_handleSubjects_closure16_closure120.doCall(WizardController?.groovy:1147)
at dbnp.studycapturing.WizardController?$_handleSubjects_closure16.doCall(WizardController?.groovy:1145)
at dbnp.studycapturing.WizardController?.handleSubjects(WizardController?.groovy:1143)
at dbnp.studycapturing.WizardController?$_closure2_closure34_closure63.doCall(WizardController?.groovy:375)
... 4 more

2010-07-23 11:54:23,074 [http-8080-1] ERROR [Tomcat].[localhost] - Exception Processing ErrorPage?[errorCode=500, location=/grails-errorhandler]
java.lang.IllegalStateException?: Cannot reset buffer after response has been committed

at org.apache.catalina.connector.Response.resetBuffer(Response.java:691)
at org.apache.catalina.core.StandardHostValve?.custom(StandardHostValve?.java:409)
at org.apache.catalina.core.StandardHostValve?.status(StandardHostValve?.java:343)
at org.apache.catalina.core.StandardHostValve?.throwable(StandardHostValve?.java:287)
at org.apache.catalina.core.StandardHostValve?.invoke(StandardHostValve?.java:142)
at org.apache.catalina.valves.ErrorReportValve?.invoke(ErrorReportValve?.java:102)
at org.apache.catalina.core.StandardEngineValve?.invoke(StandardEngineValve?.java:109)
at org.apache.catalina.connector.CoyoteAdapter?.service(CoyoteAdapter?.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:637)

Change History

Changed 4 years ago by j.a.m.wesbeek@…

This was fixed in SVN #881

Changed 4 years ago by j.a.m.wesbeek@…

This was fixed in SVN #881

Note: See TracTickets for help on using tickets.