defaultGrailsBootstrapClass NPE期间:bootRun

时间:2016-11-15 04:37:55

标签: grails intellij-idea

  1. 使用IntelliJ Ultimate,最新版本,在Arch Linux上运行
  2. 过去两年使用Grails 3.1.1构建了一个应用程序
  3. 最近升级到3.2.2
  4. 无法再使用' run-app'由于无法解析:个人资料
  5. 能够右键单击并调试Application.main(),继续工作
  6. 准备好运行' war',通过' run-app'实现同样的问题。 (无法解决:个人资料)
  7. 将代码合并到IntelliJ中的新Grails项目
  8. 继续尝试运行app
  9. 时出现同样的错误
        > Building 85% > :bootRun2016-11-14 23:34:22.969 ERROR --- [           main] o.s.boot.SpringApplication               : Application startup failed
        > Building 85% > :bootRun
        java.lang.NullPointerException: null
                at org.codehaus.groovy.runtime.CurriedClosure.(CurriedClosure.java:58)
                at org.codehaus.groovy.runtime.CurriedClosure.(CurriedClosure.java:84)
                at groovy.lang.Closure.curry(Closure.java:534)
                at org.grails.web.servlet.boostrap.DefaultGrailsBootstrapClass.callInit(DefaultGrailsBootstrapClass.java:61)
                at org.grails.web.servlet.context.GrailsConfigUtils.executeGrailsBootstraps(GrailsConfigUtils.java:65)
                at org.grails.plugins.web.servlet.context.BootStrapClassRunner.onStartup(BootStrapClassRunner.groovy:53)
                at grails.boot.config.GrailsApplicationPostProcessor.onApplicationEvent(GrailsApplicationPostProcessor.groovy:256)
                at grails.boot.config.GrailsApplicationPostProcessor.onApplicationEvent(GrailsApplicationPostProcessor.groovy)
                at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)
                at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
                at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:382)
                at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:336)
                at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:877)
                at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)
                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)
                at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
                at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)
                at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)
                at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
                at grails.boot.GrailsApp.run(GrailsApp.groovy:83)
                at grails.boot.GrailsApp.run(GrailsApp.groovy:387)
                at grails.boot.GrailsApp.run(GrailsApp.groovy:374)
                at grails.boot.GrailsApp$run.call(Unknown Source)
                at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
                at my_app.Application.main(Application.groovy:8)
    

0 个答案:

没有答案