Grails 2.4.4 GGTS 3.6.3 not working in debug

三世轮回 提交于 2019-12-25 04:26:42

问题


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 grails previous question

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


回答1:


Brute force method. download fresh 'latest' copy of GGTS (I did 3.6.3-sr1). I then imported my project from previous workspace on 3.6.2 that i'd let get upgraded.

once imported into clean build and new workspace the problem seemed to go away.




回答2:


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.



来源:https://stackoverflow.com/questions/28126532/grails-2-4-4-ggts-3-6-3-not-working-in-debug

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!