2
使用Grails 1.1 beta2和一個JSP頁面。該JSP包括CSS參考:樣式表上的Grails NumberFormatException
<link rel="stylesheet" type="text/css" href="styles.css">
當這條線包括Grails的與錯誤pukes:
[7000] errors.GrailsExceptionResolver java.lang.NumberFormatException: For input string: "styles" org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NumberFormatException: For input string: "styles"
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:92)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1061)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:893)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:892)
at groovy.lang.Closure.call(Closure.java:279)
at groovy.lang.Closure.call(Closure.java:274)
at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleAction(Simp
leGrailsControllerHelper.java:340)
...
如果刪除樣式表標籤,然後在頁面加載錯誤免費(但沒有CSS)。任何想法爲什麼?