gpt4 book ai didi

grails - 将grails-2.3.2迁移到2.4.0和将JDK 1.7迁移到1.8时出错

转载 作者:行者123 更新时间:2023-12-02 15:49:51 25 4
gpt4 key购买 nike

我正在从2.3.2迁移grails-2.4.0和从1.7迁移jdk-1.8。

我正在使用this文章进行迁移。

BuildConfig.groovy

dependencies {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.
runtime 'org.springframework:spring-test:3.1.0.RELEASE'
}

plugins {
// plugins for the build system only
build ":tomcat:7.0.52.1"

// Default plugins for the compile step
compile ":scaffolding:2.1.0"
compile ':cache:1.1.3'

// Persistency plugins
runtime ":hibernate:3.6.10.14"

// Styling plugins
runtime ':twitter-bootstrap:3.3.4'
runtime ":resources:1.2.14"
runtime ":jquery:1.11.0.2"

// PDF rendering plugins
compile ":rendering:1.0.0"

// Spring security plugins
compile ":spring-security-core:2.0-RC5"

// Uncomment these (or add new ones) to enable additional resources capabilities
runtime ":zipped-resources:1.0.1"
runtime ":cached-resources:1.1"
compile ":cache-headers:1.1.7"
}

applicationContext.xml 中删除了 grailsResourceLoader web.xml 中删除了sitemesh过滤器详细信息

当我使用grails run-app运行应用程序时,它运行良好。但是当我当时使用update,Sort等时,会发生以下错误。

堆栈跟踪
ERROR org.codehaus.groovy.grails.web.errors.GrailsExceptionResolver  - NullPointerException occurred when processing request: [GET] /wba-web/airline/index - parameters:
mode:
modeId:
Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag <sitemesh:captureContent>: Error executing tag <g:render>: null
at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:189)
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:53)
at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:62)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <sitemesh:captureContent>: Error executing tag <g:render>: null
at airline_index$_run_closure10.doCall(index:26)
at airline_index.run(index:57)
... 8 more
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <g:render>: null
at airline_index$_run_closure10_closure16.doCall(index:25)
... 10 more
Caused by: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
at grails.util.CacheEntry.getValue(CacheEntry.java:141)
at grails.util.CacheEntry.getValue(CacheEntry.java:81)
... 11 more

我会错过升级的东西吗?还是这是我的代码中的错误?

快速帮助将不胜感激。

请在这里找到日志 log.txt

最佳答案

基于stacktrace的错误是,当您命中 / wba-web / airline / index 时,您将 null 值传递给渲染函数。请复制完整的堆栈跟踪以获取更多信息。

关于grails - 将grails-2.3.2迁移到2.4.0和将JDK 1.7迁移到1.8时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41033487/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com