groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.codehaus.groovy.grails.test.event.GrailsTestEventPublisher(_GrailsEvents_groovy$_run_closure5)

Jenkins JIRA | Scott Ryan | 3 years ago
  1. 0

    I am trying to run tests with the grails plugin and it worked in version 2.2.5 but with version 2.3.7 it breaks with the following errors: [workspace] $ /opt/jenkins/data/tools/com.g2one.hudson.grails.GrailsInstallation/Grails_2.3.7/bin/grails -Dgrails.work.dir=/opt/jenkins/data/jobs/TAM/workspace//target -Dserver.port=9080 -Dgrails.env=remotetest test-app --non-interactive --plain-output --stacktrace --verbose --refresh-dependencies Base Directory: /opt/jenkins/data/jobs/TAM/workspace |Loading Grails 2.3.7 |Configuring classpath . |Environment set to remotetest .......Error | Error executing script TestApp: Could not find matching constructor for: org.codehaus.groovy.grails.test.event.GrailsTestEventPublisher(_GrailsEvents_groovy$_run_closure5) groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.codehaus.groovy.grails.test.event.GrailsTestEventPublisher(_GrailsEvents_groovy$_run_closure5) at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1604) at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1405) at groovy.lang.ExpandoMetaClass.invokeConstructor(ExpandoMetaClass.java:675) at org.codehaus.groovy.runtime.callsite.MetaClassConstructorSite.callConstructor(MetaClassConstructorSite.java:46) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190) at _GrailsTest_groovy.run(_GrailsTest_groovy:65) at _GrailsTest_groovy$run.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at _GrailsProxy_groovy$run.call(Unknown Source) at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59) at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at TestApp.run(TestApp.groovy:25) at TestApp$run.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) at gant.Gant.prepareTargets(Gant.groovy:607) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInstance(GrailsScriptRunner.java:769) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptFile(GrailsScriptRunner.java:571) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCaching(GrailsScriptRunner.java:470) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsScript(GrailsScriptRunner.java:414) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(GrailsScriptRunner.java:378) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.java:226) 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:606) at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:235) at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:263) Error | Error executing script TestApp: Could not find matching constructor for: org.codehaus.groovy.grails.test.event.GrailsTestEventPublisher(_GrailsEvents_groovy$_run_closure5) Build step 'Build With Grails' marked build as failure Recording test results

    Jenkins JIRA | 3 years ago | Scott Ryan
    groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.codehaus.groovy.grails.test.event.GrailsTestEventPublisher(_GrailsEvents_groovy$_run_closure5)
  2. 0

    I am trying to run tests with the grails plugin and it worked in version 2.2.5 but with version 2.3.7 it breaks with the following errors: [workspace] $ /opt/jenkins/data/tools/com.g2one.hudson.grails.GrailsInstallation/Grails_2.3.7/bin/grails -Dgrails.work.dir=/opt/jenkins/data/jobs/TAM/workspace//target -Dserver.port=9080 -Dgrails.env=remotetest test-app --non-interactive --plain-output --stacktrace --verbose --refresh-dependencies Base Directory: /opt/jenkins/data/jobs/TAM/workspace |Loading Grails 2.3.7 |Configuring classpath . |Environment set to remotetest .......Error | Error executing script TestApp: Could not find matching constructor for: org.codehaus.groovy.grails.test.event.GrailsTestEventPublisher(_GrailsEvents_groovy$_run_closure5) groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.codehaus.groovy.grails.test.event.GrailsTestEventPublisher(_GrailsEvents_groovy$_run_closure5) at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1604) at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1405) at groovy.lang.ExpandoMetaClass.invokeConstructor(ExpandoMetaClass.java:675) at org.codehaus.groovy.runtime.callsite.MetaClassConstructorSite.callConstructor(MetaClassConstructorSite.java:46) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190) at _GrailsTest_groovy.run(_GrailsTest_groovy:65) at _GrailsTest_groovy$run.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at _GrailsProxy_groovy$run.call(Unknown Source) at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59) at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at TestApp.run(TestApp.groovy:25) at TestApp$run.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) at gant.Gant.prepareTargets(Gant.groovy:607) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInstance(GrailsScriptRunner.java:769) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptFile(GrailsScriptRunner.java:571) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCaching(GrailsScriptRunner.java:470) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsScript(GrailsScriptRunner.java:414) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(GrailsScriptRunner.java:378) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.java:226) 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:606) at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:235) at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:263) Error | Error executing script TestApp: Could not find matching constructor for: org.codehaus.groovy.grails.test.event.GrailsTestEventPublisher(_GrailsEvents_groovy$_run_closure5) Build step 'Build With Grails' marked build as failure Recording test results

    Jenkins JIRA | 3 years ago | Scott Ryan
    groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.codehaus.groovy.grails.test.event.GrailsTestEventPublisher(_GrailsEvents_groovy$_run_closure5)
  3. 0

    slave fails without setting environment

    GitHub | 2 years ago | popsikle
    groovy.lang.GroovyRuntimeException: Could not find matching constructor for: hudson.EnvVars(java.util.ArrayList)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    hockeyapp-prepare task fails

    GitHub | 3 years ago | robertomg
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':hockeyapp-prepare'.
  6. 0

    Exception for `info` and `create` commands

    GitHub | 3 years ago | pledbrook
    groovy.lang.GroovyRuntimeException: Could not find matching constructor for: uk.co.cacoethes.lazybones.PackageInfo(java.lang.String, wslite.json.JSONObject$Null)

  1. Luka 1 times, last 2 months ago
  2. Luka 1 times, last 2 months ago
10 unregistered visitors
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.GroovyRuntimeException

    Could not find matching constructor for: org.codehaus.groovy.grails.test.event.GrailsTestEventPublisher(_GrailsEvents_groovy$_run_closure5)

    at groovy.lang.MetaClassImpl.invokeConstructor()
  2. Groovy
    AbstractCallSite.callConstructor
    1. groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1604)
    2. groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1405)
    3. groovy.lang.ExpandoMetaClass.invokeConstructor(ExpandoMetaClass.java:675)
    4. org.codehaus.groovy.runtime.callsite.MetaClassConstructorSite.callConstructor(MetaClassConstructorSite.java:46)
    5. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
    6. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
    7. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
    7 frames
  3. Unknown
    _GrailsTest_groovy$run.call
    1. _GrailsTest_groovy.run(_GrailsTest_groovy:65)
    2. _GrailsTest_groovy$run.call(Unknown Source)
    2 frames
  4. Groovy
    CallSiteArray.defaultCall
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    1 frame
  5. Unknown
    _GrailsProxy_groovy$run.call
    1. _GrailsProxy_groovy$run.call(Unknown Source)
    1 frame
  6. org.codehaus.gant
    IncludeTargets$leftShift.call
    1. org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
    2. org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
    2 frames
  7. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    3 frames
  8. Unknown
    TestApp$run.call
    1. TestApp.run(TestApp.groovy:25)
    2. TestApp$run.call(Unknown Source)
    2 frames
  9. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    3 frames
  10. gant
    Gant.prepareTargets
    1. gant.Gant.prepareTargets(Gant.groovy:607)
    1 frame
  11. org.codehaus.groovy
    GrailsScriptRunner.main
    1. org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInstance(GrailsScriptRunner.java:769)
    2. org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptFile(GrailsScriptRunner.java:571)
    3. org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCaching(GrailsScriptRunner.java:470)
    4. org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsScript(GrailsScriptRunner.java:414)
    5. org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(GrailsScriptRunner.java:378)
    6. org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.java:226)
    6 frames
  12. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  13. org.codehaus.groovy
    GrailsStarter.main
    1. org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:235)
    2. org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:263)
    2 frames