groovy.lang.MissingMethodException: No signature of method: static java.lang.System.setProperty() is applicable for argument types: (java.lang.String, java.lang.Boolean) values: [clover.license.path, true]

Atlassian JIRA | Kevin Shekleton | 6 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

    I am logging this from http://jira.grails.org/browse/GPCLOVER-1, which seems to be a dead project that no one is looking at. Brian Atkinson's original description: The clover plugin seems to be having trouble parsing its command line options. If the following command is run (cwd=C:\hudson\workspace\genesis-instrument\grails-genesis-instrument): C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\grails-tools\org.grails-grails-distribution-1.2.2-zip\bin\grails.bat -Dgrails.project.work.dir=C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\grails-work -Dserver.port=4216 test-app --non-interactive -clover.on -clover.license.path=C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\clover.license -clover.initstring=C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\clover\clover.db The following output is produced: {noformat} Welcome to Grails 1.2.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\grails-tools\org.grails-grails-distribution-1.2.2-zip Base Directory: C:\hudson\workspace\genesis-instrument\grails-genesis-instrument Resolving dependencies... Dependencies resolved in 1656ms. Running script C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\grails-tools\org.grails-grails-distribution-1.2.2-zip\scripts\TestApp.groovy Environment set to test Setting non-interactive mode Clover: Using config: [license:[path:true], initstring:true, on:true] Error executing script TestApp: No signature of method: static java.lang.System.setProperty() is applicable for argument types: (java.lang.String, java.lang.Boolean) values: [clover.license.path, true] groovy.lang.MissingMethodException: No signature of method: static java.lang.System.setProperty() is applicable for argument types: (java.lang.String, java.lang.Boolean) values: [clover.license.path, true] at _Events.configureLicense(_Events.groovy:435) at _Events.this$4$configureLicense(_Events.groovy) at _Events$this$4$configureLicense.callCurrent(Unknown Source) at _Events.toggleCloverOn(_Events.groovy:299) at _Events$_run_closure3.doCall(_Events.groovy:56) at _GrailsEvents_groovy$_run_closure5.doCall(_GrailsEvents_groovy:58) at _GrailsEvents_groovy$_run_closure5.call(_GrailsEvents_groovy) at _GrailsEvents_groovy.run(_GrailsEvents_groovy:62) at _GrailsEvents_groovy$run.call(Unknown Source) at _GrailsClean_groovy$run.call(Unknown Source) at _GrailsClean_groovy.run(_GrailsClean_groovy:29) at _GrailsClean_groovy$run.call(Unknown Source) at TestApp.run(TestApp.groovy:44) at TestApp$run.call(Unknown Source) at gant.Gant.processTargets(Gant.groovy:494) at gant.Gant.processTargets(Gant.groovy:480) Error executing script TestApp: No signature of method: static java.lang.System.setProperty() is applicable for argument types: (java.lang.String, java.lang.Boolean) values: [clover.license.path, true] {noformat} What is interesting is how the clover config seems to be significantly off. A similar call run on Ubuntu 10.04 and RHEL 5.3 machines seems to parse the path correctly: {noformat} /home/brian/tmp/genesis-instrument/target/grails-tools/org.grails-grails-distribution-1.2.2-zip/bin/grails \ -Dgrails.project.work.dir=/home/brian/tmp/genesis-instrument/target/grails-work \ -Dmaven.localRepository=/home/brian/.m2/repository \ -Dserver.port=43897 \ test-app \ --non-interactive \ -clover.on \ -clover.license.path=C:\\hudson\\workspace\\genesis-instrument\\grails-genesis-instrument\\target\\clover.license \ -clover.initstring=C:\\hudson\\workspace\\genesis-instrument\\grails-genesis-instrument\\target\\clover\\clover.db {noformat} Produces: {noformat} /home/brian/tmp/genesis-instrument/target/grails-tools/org.grails-grails-distribution-1.2.2-zip/bin/grails: 6: [[: not found Welcome to Grails 1.2.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /home/brian/tmp/genesis-instrument/target/grails-tools/org.grails-grails-distribution-1.2.2-zip Base Directory: /home/brian/tmp/genesis-instrument Resolving dependencies... Dependencies resolved in 2323ms. Running script /home/brian/tmp/genesis-instrument/target/grails-tools/org.grails-grails-distribution-1.2.2-zip/scripts/TestApp.groovy Environment set to test Setting non-interactive mode Clover: Using config: [license:[path:C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\clover.license], initstring:C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\clover\clover.db, on:true] Using clover license path: C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\clover.license ... {noformat} This proceeds to fail because the path does not work, but at this point I am unsure why on windows this call fails, but on linux it works.

    Atlassian JIRA | 6 years ago | Kevin Shekleton
    groovy.lang.MissingMethodException: No signature of method: static java.lang.System.setProperty() is applicable for argument types: (java.lang.String, java.lang.Boolean) values: [clover.license.path, true]
  2. 0

    I am logging this from http://jira.grails.org/browse/GPCLOVER-1, which seems to be a dead project that no one is looking at. Brian Atkinson's original description: The clover plugin seems to be having trouble parsing its command line options. If the following command is run (cwd=C:\hudson\workspace\genesis-instrument\grails-genesis-instrument): C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\grails-tools\org.grails-grails-distribution-1.2.2-zip\bin\grails.bat -Dgrails.project.work.dir=C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\grails-work -Dserver.port=4216 test-app --non-interactive -clover.on -clover.license.path=C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\clover.license -clover.initstring=C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\clover\clover.db The following output is produced: {noformat} Welcome to Grails 1.2.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\grails-tools\org.grails-grails-distribution-1.2.2-zip Base Directory: C:\hudson\workspace\genesis-instrument\grails-genesis-instrument Resolving dependencies... Dependencies resolved in 1656ms. Running script C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\grails-tools\org.grails-grails-distribution-1.2.2-zip\scripts\TestApp.groovy Environment set to test Setting non-interactive mode Clover: Using config: [license:[path:true], initstring:true, on:true] Error executing script TestApp: No signature of method: static java.lang.System.setProperty() is applicable for argument types: (java.lang.String, java.lang.Boolean) values: [clover.license.path, true] groovy.lang.MissingMethodException: No signature of method: static java.lang.System.setProperty() is applicable for argument types: (java.lang.String, java.lang.Boolean) values: [clover.license.path, true] at _Events.configureLicense(_Events.groovy:435) at _Events.this$4$configureLicense(_Events.groovy) at _Events$this$4$configureLicense.callCurrent(Unknown Source) at _Events.toggleCloverOn(_Events.groovy:299) at _Events$_run_closure3.doCall(_Events.groovy:56) at _GrailsEvents_groovy$_run_closure5.doCall(_GrailsEvents_groovy:58) at _GrailsEvents_groovy$_run_closure5.call(_GrailsEvents_groovy) at _GrailsEvents_groovy.run(_GrailsEvents_groovy:62) at _GrailsEvents_groovy$run.call(Unknown Source) at _GrailsClean_groovy$run.call(Unknown Source) at _GrailsClean_groovy.run(_GrailsClean_groovy:29) at _GrailsClean_groovy$run.call(Unknown Source) at TestApp.run(TestApp.groovy:44) at TestApp$run.call(Unknown Source) at gant.Gant.processTargets(Gant.groovy:494) at gant.Gant.processTargets(Gant.groovy:480) Error executing script TestApp: No signature of method: static java.lang.System.setProperty() is applicable for argument types: (java.lang.String, java.lang.Boolean) values: [clover.license.path, true] {noformat} What is interesting is how the clover config seems to be significantly off. A similar call run on Ubuntu 10.04 and RHEL 5.3 machines seems to parse the path correctly: {noformat} /home/brian/tmp/genesis-instrument/target/grails-tools/org.grails-grails-distribution-1.2.2-zip/bin/grails \ -Dgrails.project.work.dir=/home/brian/tmp/genesis-instrument/target/grails-work \ -Dmaven.localRepository=/home/brian/.m2/repository \ -Dserver.port=43897 \ test-app \ --non-interactive \ -clover.on \ -clover.license.path=C:\\hudson\\workspace\\genesis-instrument\\grails-genesis-instrument\\target\\clover.license \ -clover.initstring=C:\\hudson\\workspace\\genesis-instrument\\grails-genesis-instrument\\target\\clover\\clover.db {noformat} Produces: {noformat} /home/brian/tmp/genesis-instrument/target/grails-tools/org.grails-grails-distribution-1.2.2-zip/bin/grails: 6: [[: not found Welcome to Grails 1.2.2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /home/brian/tmp/genesis-instrument/target/grails-tools/org.grails-grails-distribution-1.2.2-zip Base Directory: /home/brian/tmp/genesis-instrument Resolving dependencies... Dependencies resolved in 2323ms. Running script /home/brian/tmp/genesis-instrument/target/grails-tools/org.grails-grails-distribution-1.2.2-zip/scripts/TestApp.groovy Environment set to test Setting non-interactive mode Clover: Using config: [license:[path:C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\clover.license], initstring:C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\clover\clover.db, on:true] Using clover license path: C:\hudson\workspace\genesis-instrument\grails-genesis-instrument\target\clover.license ... {noformat} This proceeds to fail because the path does not work, but at this point I am unsure why on windows this call fails, but on linux it works.

    Atlassian JIRA | 6 years ago | Kevin Shekleton
    groovy.lang.MissingMethodException: No signature of method: static java.lang.System.setProperty() is applicable for argument types: (java.lang.String, java.lang.Boolean) values: [clover.license.path, true]

    Root Cause Analysis

    1. groovy.lang.MissingMethodException

      No signature of method: static java.lang.System.setProperty() is applicable for argument types: (java.lang.String, java.lang.Boolean) values: [clover.license.path, true]

      at _Events.configureLicense()
    2. Unknown
      TestApp$run.call
      1. _Events.configureLicense(_Events.groovy:435)
      2. _Events.this$4$configureLicense(_Events.groovy)
      3. _Events$this$4$configureLicense.callCurrent(Unknown Source)
      4. _Events.toggleCloverOn(_Events.groovy:299)
      5. _Events$_run_closure3.doCall(_Events.groovy:56)
      6. _GrailsEvents_groovy$_run_closure5.doCall(_GrailsEvents_groovy:58)
      7. _GrailsEvents_groovy$_run_closure5.call(_GrailsEvents_groovy)
      8. _GrailsEvents_groovy.run(_GrailsEvents_groovy:62)
      9. _GrailsEvents_groovy$run.call(Unknown Source)
      10. _GrailsClean_groovy$run.call(Unknown Source)
      11. _GrailsClean_groovy.run(_GrailsClean_groovy:29)
      12. _GrailsClean_groovy$run.call(Unknown Source)
      13. TestApp.run(TestApp.groovy:44)
      14. TestApp$run.call(Unknown Source)
      14 frames
    3. gant
      Gant.processTargets
      1. gant.Gant.processTargets(Gant.groovy:494)
      2. gant.Gant.processTargets(Gant.groovy:480)
      2 frames