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

Atlassian JIRA | Benjamin Wolff | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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

    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