本文介绍了Grails 2.4.4 GGTS 3.6.3在调试中无法工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目我试图调试,使用grails 2.4.4和GGTS3.6.3



如果运行应用程序的项目 - 工作正常



当我尝试设置断点和调试如果得到这个错误

  |加载Grails 2.4.4 
错误|
加载BuildConfig:参数类型不匹配时出错(注意:堆栈跟踪已被过滤,使用--verbose查看整个跟踪)
java.lang.IllegalArgumentException:参数类型不匹配
在org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
在grails.util.BuildSettings.getForkConfig(BuildSettings.groovy:1515)
在grails.util.BuildSettings。 buildProjectStructure(BuildSettings.groovy:1389)
在grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:1121)
在grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1116)
在grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1088)
在grails.util.BuildSettings.loadConfig(BuildSettings.groovy)
在grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1074 )
在grails.util.BuildSettings.loadConfig(BuildSettings.groovy)
在grails.util.BuildSettings $ loadConfig $ 0.callCurre nt(未知来源)
在grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1054)
在org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
错误|
加载BuildConfig:参数类型不匹配时出现错误

这看起来像是重复此链接早期版本的grails



note说声称已修正 - 但对我无效 - 其他任何问题

解决方案

昨天我遇到了同样的问题,ggts-3.4.0和grails 2.4.3。



我可以确认-noreloading参数没有任何效果。



我尝试过威廉的技术,并使用ggts-3.6.4实现了一个干净的安装,无济于事。



最后我的解决方案是解决一条grails.project.fork的注释,即:

  test:[maxMemory:768,minMemory:64,debug:false,maxPerm:256,daemon:true] 

这允许我同时运行:运行 调试我的应用程序。



Allan。


bit more shinnangins

I have a project i'm trying to debug, using grails 2.4.4 and GGTS3.6.3

if run-app the project - works ok

when I try and set break point and the debug if get this error

|Loading Grails 2.4.4
Error |
There was an error loading the BuildConfig: argument type mismatch (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.IllegalArgumentException: argument type mismatch
    at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
    at grails.util.BuildSettings.getForkConfig(BuildSettings.groovy:1515)
    at grails.util.BuildSettings.establishProjectStructure(BuildSettings.groovy:1389)
    at grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:1121)
    at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1116)
    at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1088)
    at grails.util.BuildSettings.loadConfig(BuildSettings.groovy)
    at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1074)
    at grails.util.BuildSettings.loadConfig(BuildSettings.groovy)
    at grails.util.BuildSettings$loadConfig$0.callCurrent(Unknown Source)
    at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1054)
    at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
Error |
There was an error loading the BuildConfig: argument type mismatch

this looks like a repeat of this link on earlier version of grailsprevious question

note says claimed fixed - but fails for me - any else got this issue

解决方案

I came across this same problem yesterday with ggts-3.4.0 and grails 2.4.3.

I can confirm that the -noreloading parameter has no effect.

I tried William's technique and implemented a clean install with ggts-3.6.4, alas to no avail.

In the end my solution/workaround is to leave one line of grails.project.fork uncommented out, namely:

test: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, daemon:true]

This allows me to both: run and debug my Application.

Allan.

这篇关于Grails 2.4.4 GGTS 3.6.3在调试中无法工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 01:15