2015-10-09 51 views
0

我試圖用「uml-class-diagram:0.4.4」插件來生成UML圖,我更願意用它生成類圖和數據庫圖。但是當我在grails命令提示符下運行命令「grails uml-class-diagram」時,會出現以下錯誤。我嘗試了很多,但找不到解決方案。請幫助我做錯任何事情。我在BuildConfig.groovy作爲runtime ":uml-class-diagram:0.4.4"使用grails插件時出現的問題「uml-class-diagram:0.4.4」

Error | 
groovy.lang.MissingMethodException: No signature of method: grails.plugin.umlclassdiagram.UmlService.redirect() is applicable for argument types: (grails.plugin.umlclassdiagram.ConfigurationCommand) values: [[email protected]] 
Error | 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
Error | 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) 
Error | 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
Error | 
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525) 
Error | 
    at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77) 
Error | 
    at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102) 
Error | 
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:194) 
Error | 
    at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:391) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
Error | 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
Error | 
    at java.lang.reflect.Method.invoke(Method.java:601) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:272) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) 
Error | 
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
Error | 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
Error | 
    at java.lang.reflect.Method.invoke(Method.java:601) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:231) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) 
Error | 
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
Error | 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
Error | 
    at java.lang.reflect.Method.invoke(Method.java:601) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:272) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) 
Error | 
    at gant.Gant.withBuildListeners(Gant.groovy:427) 
Error | 
    at gant.Gant.this$2$withBuildListeners(Gant.groovy) 
Error | 
    at gant.Gant$this$2$withBuildListeners$0.callCurrent(Unknown Source) 
Error | 
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) 
Error | 
    at gant.Gant$this$2$withBuildListeners$0.callCurrent(Unknown Source) 
Error | 
    at gant.Gant.dispatch(Gant.groovy:415) 
Error | 
    at gant.Gant.this$2$dispatch(Gant.groovy) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
Error | 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
Error | 
    at java.lang.reflect.Method.invoke(Method.java:601) 
Error | 
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) 
Error | 
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) 
Error | 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1086) 
Error | 
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110) 
Error | 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:910) 
Error | 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:733) 
Error | 
    at gant.Gant.invokeMethod(Gant.groovy) 
Error | 
    at groovy.lang.GroovyObject$invokeMethod.callCurrent(Unknown Source) 
Error | 
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) 
Error | 
    at groovy.lang.GroovyObject$invokeMethod.callCurrent(Unknown Source) 
Error | 
    at gant.Gant.executeTargets(Gant.groovy:591) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
Error | 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
Error | 
    at java.lang.reflect.Method.invoke(Method.java:601) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:231) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52) 
Error | 
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:57) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145) 
Error | 
    at gant.Gant.executeTargets(Gant.groovy:590) 
Error | 
    at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInstance(GrailsScriptRunner.java:774) 
Error | 
    at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptFile(GrailsScriptRunner.java:572) 
Error | 
    at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCaching(GrailsScriptRunner.java:471) 
Error | 
    at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCaching(GrailsScriptRunner.java:422) 
Error | 
    at org.grails.ide.api.impl.GrailsConnectorImpl.executeCommand(GrailsConnectorImpl.java:160) 
Error | 
    at org.grails.ide.eclipse.longrunning.process.GrailsProcess.run(GrailsProcess.java:130) 
Error | 
    at org.grails.ide.eclipse.longrunning.process.GrailsProcess.main(GrailsProcess.java:93) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
Error | 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
Error | 
    at java.lang.reflect.Method.invoke(Method.java:601) 
Error | 
    at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:236) 
Error | 
    at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:264) 
Error | 
Caused by: groovy.lang.MissingMethodException: No signature of method: grails.plugin.umlclassdiagram.UmlService.redirect() is applicable for argument types: (grails.plugin.umlclassdiagram.ConfigurationCommand) values: [[email protected]] 
Error | 
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:51) 
Error | 
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) 
Error | 
    at UmlClassDiagram$_run_closure1.doCall(UmlClassDiagram:16) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
Error | 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
Error | 
    at java.lang.reflect.Method.invoke(Method.java:601) 
Error | 
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) 
Error | 
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) 
Error | 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1086) 
Error | 
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110) 
Error | 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:910) 
Error | 
    at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:149) 
Error | 
    at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39) 
Error | 
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) 
Error | 
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
Error | 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
Error | 
    at java.lang.reflect.Method.invoke(Method.java:601) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:231) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) 
Error | 
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
Error | 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
Error | 
    at java.lang.reflect.Method.invoke(Method.java:601) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:272) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) 
Error | 
    at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) 
Error | 
    at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
Error | 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
Error | 
    at java.lang.reflect.Method.invoke(Method.java:601) 
Error | 
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) 
Error | 
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) 
Error | 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1086) 
Error | 
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110) 
Error | 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:910) 
Error | 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1031) 
Error | 
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110) 
Error | 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:910) 
Error | 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:731) 
Error | 
    at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44) 
Error | 
    at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1151) 
Error | 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1045) 
Error | 
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110) 
Error | 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:910) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149) 
Error | 
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
Error | 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
Error | 
    at java.lang.reflect.Method.invoke(Method.java:601) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:231) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) 
Error | 
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
Error | 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
Error | 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
Error | 
    at java.lang.reflect.Method.invoke(Method.java:601) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:272) 
Error | 
    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64) 
Error | 
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) 
Error | 
    at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) 
Error | 
    ... 68 more 

回答

0

這個問題解決宣佈它。它需要安裝Graphviz。它在文檔中被提及。我錯過了閱讀。

相關問題