【问题标题】:GGTS 3.6.2 and Grails 2.4.4 Run-App and Test-App will not workGGTS 3.6.2 和 Grails 2.4.4 Run-App 和 Test-App 将不起作用
【发布时间】:2014-10-28 19:59:56
【问题描述】:

我最近一直在尝试将我们的一些项目从 Grails 2.2.1 升级到 2.4.3/4。使用命令行,我能够执行 run-app/test-app 并且一切正常。

我的问题是,当我尝试在 GGTS 中执行 Run-App 或 Test-App 时,进程会启动,但会立即终止,并在 eclipse 日志中显示下面的堆栈跟踪。如果我尝试用 2.2.1 grails 版本做同样的事情,它工作正常。

!ENTRY org.grails.ide.eclipse.core 4 0 2014-10-28 15:52:05.158
!MESSAGE Internal Error
!STACK 0
java.lang.NullPointerException
    at org.grails.ide.eclipse.core.workspace.GrailsProject.getServerPort(GrailsProject.java:139)
    at org.grails.ide.eclipse.core.launch.GrailsLaunchConfigurationDelegate.addKillPortArg(GrailsLaunchConfigurationDelegate.java:333)
    at org.grails.ide.eclipse.core.launch.GrailsLaunchConfigurationDelegate.launch(GrailsLaunchConfigurationDelegate.java:259)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

【问题讨论】:

标签: eclipse grails ggts


【解决方案1】:

有同样的问题。 在所有相关项目上:

  • grails clean-all
  • 右击项目Grails Tools -> Refresh Dependencies
  • grails maven-install(仅适用)

完成所有操作后,您应该能够在您的项目上运行:grails run-app。 就我而言,这是一个陈旧的项目,同时我更新了 GGTS。

【讨论】:

    【解决方案2】:

    就我而言,我能够:

    1. 关闭 Eclipse
    2. 重启 Eclipse
    3. 确保 application.properties 具有新的 Grails 版本
    4. 运行“grails clean”
    5. 运行“grails upgrade”,选项 3
    6. “grails run-app”有效。

    我以为我已经完全升级了东西,但要么我没有(我在整个过程中被打断了),要么只是需要重新启动 Eclipse。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-12
      • 1970-01-01
      • 1970-01-01
      • 2010-11-18
      • 1970-01-01
      • 2013-11-21
      • 2010-11-08
      • 1970-01-01
      相关资源
      最近更新 更多