errors.GrailsExceptionResolver StringIndexOutOfBoundsException

时间:2014-11-24 14:47:04

标签: grails

我刚刚将我的应用程序从2.3.5升级到2.4.4。我还在使用资源插件,因为我没有时间进行资产管道所需的所有更改。

在我的布局中,我有以下代码,对我来说似乎很好

<%@ page import="org.codehaus.groovy.grails.web.servlet.GrailsApplicationAttributes" %>
<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <link href="<g:resource dir="css" file="theme.css"/>" rel="stylesheet">
    <link href="<g:resource dir="css" file="features.css"/>" rel="stylesheet">
</head>
<body>

</body>
</html>

但我一直收到错误:errors.GrailsExceptionResolver StringIndexOutOfBoundsException <{1}}

整个堆栈跟踪在

之下
<link href="<g:resource dir="css" file="theme.css"/>" rel="stylesheet">

我无法弄清楚为什么我会收到此错误。对于pages.GroovyPagesServlet FrameworkServlet 'gsp': initialization completed in 9 ms errors.GrailsExceptionResolver StringIndexOutOfBoundsException occurred when processing request: [GET] /app/login/auth String index out of range: 6. Stacktrace follows: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error applying layout : bootstrap at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198) at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63) at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53) at grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter.doFilter(RequestHolderAuthenticationFilter.java:49) at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) C 代码,StringIndexOutOfBound似乎很荒谬。

示例应用

我已经创建了一个展示问题https://github.com/Omnipresent/indexoutofbound

的示例应用

0 个答案:

没有答案