groovy.lang.MissingPropertyException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I am creating {{mavenJob}} s which should only store a Sonar Preview report (this is for all git branches except of master). I use htmlpublisher, the IMO relevant section is: {code} mavenJob("project1-branches") { publishers { jacocoCodeCoverage() publishHtml { report("target/sonar/issues-report/") { // since 1.28 reportName("Sonar Preview") reportFiles("issues-report.html") // defaults to 'index.html' if omitted allowMissing(true) // defaults to false if omitted keepAll(true) // defaults to false if omitted } } extendedEmail('foo@example.com', '$DEFAULT_SUBJECT', '$DEFAULT_CONTENT') } } {code} With job-dsl-plugin 1.30 all works fine, however with version 1.31 I get the following stack trace (complete output attached): {code} groovy.lang.MissingPropertyException: No such property: jobManagement for class: javaposse.jobdsl.dsl.helpers.publisher.MavenPublisherContext 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 javaposse.jobdsl.dsl.helpers.publisher.PublisherContext$_publishHtml_closure9_closure67_closure68_closure69.doCall(PublisherContext.groovy:281) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at {code} I just reverted to 1.30 and this version works fine again.
    via by Mirko Friedenhagen,
  • I am creating {{mavenJob}} s which should only store a Sonar Preview report (this is for all git branches except of master). I use htmlpublisher, the IMO relevant section is: {code} mavenJob("project1-branches") { publishers { jacocoCodeCoverage() publishHtml { report("target/sonar/issues-report/") { // since 1.28 reportName("Sonar Preview") reportFiles("issues-report.html") // defaults to 'index.html' if omitted allowMissing(true) // defaults to false if omitted keepAll(true) // defaults to false if omitted } } extendedEmail('foo@example.com', '$DEFAULT_SUBJECT', '$DEFAULT_CONTENT') } } {code} With job-dsl-plugin 1.30 all works fine, however with version 1.31 I get the following stack trace (complete output attached): {code} groovy.lang.MissingPropertyException: No such property: jobManagement for class: javaposse.jobdsl.dsl.helpers.publisher.MavenPublisherContext 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 javaposse.jobdsl.dsl.helpers.publisher.PublisherContext$_publishHtml_closure9_closure67_closure68_closure69.doCall(PublisherContext.groovy:281) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at {code} I just reverted to 1.30 and this version works fine again.
    via by Mirko Friedenhagen,
  • Load Titan graph with Gremlin
    via Stack Overflow by yossico
    ,
  • MongoDB exception when saving upload
    via Stack Overflow by superloop
    ,
    • groovy.lang.MissingPropertyException: No such property: jobManagement for class: javaposse.jobdsl.dsl.helpers.publisher.MavenPublisherContext 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 javaposse.jobdsl.dsl.helpers.publisher.PublisherContext$_publishHtml_closure9_closure67_closure68_closure69.doCall(PublisherContext.groovy:281) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)

    Users with the same issue

    musketyr
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    45 more bugmates