groovy.lang.MissingPropertyException: No such property: testTargetPatterns for class: _Events

Atlassian JIRA | Benjamin Wolff | 3 years ago
  1. 0

    Using the latest Clover plugin version 3.2.0 with the latest Grails version 2.3.5 leads to the following error when the "test-app" command is invoked: {code} | Error Error executing script TestApp: No such property: testTargetPatterns for class: _Events (Use --stacktrace to see the full trace) {code} Running it with --stacktrace leads to the following output: {code} | Error Error executing script TestApp: No such property: testTargetPatterns for class: _Events (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) groovy.lang.MissingPropertyException: No such property: testTargetPatterns for class: _Events at _Events$_run_closure3.doCall(_Events.groovy:75) at _GrailsTest_groovy$_run_closure1.doCall(_GrailsTest_groovy:102) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at TestApp$_run_closure1.doCall(TestApp.groovy:32) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy) at gant.Gant.withBuildListeners(Gant.groovy:427) at gant.Gant.this$2$withBuildListeners(Gant.groovy) at gant.Gant$this$2$withBuildListeners$0.callCurrent(Unknown Source) at gant.Gant.dispatch(Gant.groovy:415) at gant.Gant.this$2$dispatch(Gant.groovy) at gant.Gant.invokeMethod(Gant.groovy) at gant.Gant.executeTargets(Gant.groovy:591) at gant.Gant.executeTargets(Gant.groovy:590) {code} It turns out that the error is in the <clover grails plugin>/scripts/_Events.groovy script at line 75: {code} defStoredTestTargetPatterns = testTargetPatterns; {code} Apparently the "testTargetPattern" global variable was removed in the course of Grails 2.3.3, when some script variables where put into helper classes. See also: http://grails.1312388.n4.nabble.com/Plugin-issue-can-t-find-targetPhasesAndTypes-td4652199.html There is currently no related Grails JIRA that I'm aware of. If this issue can't be worked out somehow it would require to create a Grails JIRA to check if the variable could be reintroduced or why it was removed.

    Atlassian JIRA | 3 years ago | Benjamin Wolff
    groovy.lang.MissingPropertyException: No such property: testTargetPatterns for class: _Events
  2. 0

    Using the latest Clover plugin version 3.2.0 with the latest Grails version 2.3.5 leads to the following error when the "test-app" command is invoked: {code} | Error Error executing script TestApp: No such property: testTargetPatterns for class: _Events (Use --stacktrace to see the full trace) {code} Running it with --stacktrace leads to the following output: {code} | Error Error executing script TestApp: No such property: testTargetPatterns for class: _Events (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) groovy.lang.MissingPropertyException: No such property: testTargetPatterns for class: _Events at _Events$_run_closure3.doCall(_Events.groovy:75) at _GrailsTest_groovy$_run_closure1.doCall(_GrailsTest_groovy:102) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at TestApp$_run_closure1.doCall(TestApp.groovy:32) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy) at gant.Gant.withBuildListeners(Gant.groovy:427) at gant.Gant.this$2$withBuildListeners(Gant.groovy) at gant.Gant$this$2$withBuildListeners$0.callCurrent(Unknown Source) at gant.Gant.dispatch(Gant.groovy:415) at gant.Gant.this$2$dispatch(Gant.groovy) at gant.Gant.invokeMethod(Gant.groovy) at gant.Gant.executeTargets(Gant.groovy:591) at gant.Gant.executeTargets(Gant.groovy:590) {code} It turns out that the error is in the <clover grails plugin>/scripts/_Events.groovy script at line 75: {code} defStoredTestTargetPatterns = testTargetPatterns; {code} Apparently the "testTargetPattern" global variable was removed in the course of Grails 2.3.3, when some script variables where put into helper classes. See also: http://grails.1312388.n4.nabble.com/Plugin-issue-can-t-find-targetPhasesAndTypes-td4652199.html There is currently no related Grails JIRA that I'm aware of. If this issue can't be worked out somehow it would require to create a Grails JIRA to check if the variable could be reintroduced or why it was removed.

    Atlassian JIRA | 3 years ago | Benjamin Wolff
    groovy.lang.MissingPropertyException: No such property: testTargetPatterns for class: _Events
  3. 0

    Unable to use Clover-for-Grails with Grails 2.3. Build fails with an exception: {noformat} |Environment set to test ................................... [mkdir] Created dir: C:\Work\grails-clover-plugin-hg\testcases\petclinic233\target\test-reports\html . [mkdir] Created dir: C:\Work\grails-clover-plugin-hg\testcases\petclinic233\target\test-reports\plain .Error | Error executing script TestApp: No such property: testTargetPatterns for class: _Events groovy.lang.MissingPropertyException: No such property: testTargetPatterns for class: _Events at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231) at _Events$_run_closure3.doCall(_Events.groovy:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1086) at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:910) {noformat} *Reason:* In the Grails 2.3 the _GrailsTest.groovy has been refactored into GrailsProjectTestRunner and GrailsProjectTestCompiler. The testTargetPatterns property has been removed. *Probable fix:* Replace testTargetPattern by iterator over testNames.

    Atlassian JIRA | 3 years ago | Marek Parfianowicz [Atlassian]
    groovy.lang.MissingPropertyException: No such property: testTargetPatterns for class: _Events
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to use Clover-for-Grails with Grails 2.3. Build fails with an exception: {noformat} |Environment set to test ................................... [mkdir] Created dir: C:\Work\grails-clover-plugin-hg\testcases\petclinic233\target\test-reports\html . [mkdir] Created dir: C:\Work\grails-clover-plugin-hg\testcases\petclinic233\target\test-reports\plain .Error | Error executing script TestApp: No such property: testTargetPatterns for class: _Events groovy.lang.MissingPropertyException: No such property: testTargetPatterns for class: _Events at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231) at _Events$_run_closure3.doCall(_Events.groovy:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1086) at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:910) {noformat} *Reason:* In the Grails 2.3 the _GrailsTest.groovy has been refactored into GrailsProjectTestRunner and GrailsProjectTestCompiler. The testTargetPatterns property has been removed. *Probable fix:* Replace testTargetPattern by iterator over testNames.

    Atlassian JIRA | 3 years ago | Marek Parfianowicz [Atlassian]
    groovy.lang.MissingPropertyException: No such property: testTargetPatterns for class: _Events
  6. 0

    Replace closure names in reports not working - Grails 2.3.2

    GitHub | 3 years ago | marcuskrantz
    groovy.lang.MissingPropertyException: No such property: grailsApp for class: _Events

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. groovy.lang.MissingPropertyException

      No such property: testTargetPatterns for class: _Events

      at _Events$_run_closure3.doCall()
    2. Unknown
      _GrailsTest_groovy$_run_closure1.doCall
      1. _Events$_run_closure3.doCall(_Events.groovy:75)
      2. _GrailsTest_groovy$_run_closure1.doCall(_GrailsTest_groovy:102)
      2 frames
    3. org.codehaus.gant
      GantMetaClass.invokeMethod
      1. org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      2. org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
      3. org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
      4. org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
      5. org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
      6. org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
      7. org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
      8. org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      8 frames
    4. Unknown
      TestApp$_run_closure1.doCall
      1. TestApp$_run_closure1.doCall(TestApp.groovy:32)
      1 frame
    5. org.codehaus.gant
      GantBinding$_initializeGantBinding_closure5_closure16.doCall
      1. org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      2. org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
      3. org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
      4. org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
      5. org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
      6. org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
      7. org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
      7 frames
    6. gant
      Gant.executeTargets
      1. gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
      2. gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
      3. gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
      4. gant.Gant.withBuildListeners(Gant.groovy:427)
      5. gant.Gant.this$2$withBuildListeners(Gant.groovy)
      6. gant.Gant$this$2$withBuildListeners$0.callCurrent(Unknown Source)
      7. gant.Gant.dispatch(Gant.groovy:415)
      8. gant.Gant.this$2$dispatch(Gant.groovy)
      9. gant.Gant.invokeMethod(Gant.groovy)
      10. gant.Gant.executeTargets(Gant.groovy:591)
      11. gant.Gant.executeTargets(Gant.groovy:590)
      11 frames