[Grails] 使用<g:datePicker>的noSelection时,出现java.util.ConcurrentModificationException

dmpx123456 2010-03-09
刚学grails没多久,在用<g:datePicker>的noSelection时,出现java.util.ConcurrentModificationException异常。

view:
<g:datePicker name="date" precision="day" default="none" noSelection="${['null':'']}" years="${2000..2100}"/>

点击查询button出现以下异常:
2010-03-09 15:43:10,875 [http-8080-2] ERROR errors.GrailsExceptionResolver  - null
java.util.ConcurrentModificationException
        at java.util.LinkedHashMap$LinkedHash Iterator.nextEntry(LinkedHashMap.java:373)
        at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:384)
        at java.lang.Thread.run(Thread.java:619)
2010-03-09 15:43:10,890 [http-8080-2] 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:619)

请教高手。。。。
Global site tag (gtag.js) - Google Analytics