perjantai 25. maaliskuuta 2011

ERROR errors.GrailsExceptionResolver - No signature of method: org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper.g

If you get this exception when trying to read uploaded files, you know you're missing enctype="multipart/form-data" from the form tag.


2011-03-25 09:45:25,798 [http-8080-2] ERROR errors.GrailsExceptionResolver - No signature of method: org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper.getFile() is applicable for argument types: (java.lang.String) values: [file]
Possible solutions: getXML(), getAt(java.lang.String), getAt(java.lang.String), getLocale(), getJSON(), getHeader(java.lang.String)
groovy.lang.MissingMethodException: No signature of method: org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper.getFile() is applicable for argument types: (java.lang.String) values: [file]
Possible solutions: getXML(), getAt(java.lang.String), getAt(java.lang.String), getLocale(), getJSON(), getHeader(java.lang.String)
at check.ProductScreenBinaryController$_closure7.doCall(check.ProductScreenBinaryController:85)
at check.ProductScreenBinaryController$_closure7.doCall(check.ProductScreenBinaryController)
at java.lang.Thread.run(Thread.java:680)

Ei kommentteja:

Lähetä kommentti