groovy.lang.MissingPropertyException: No such property: jenkins for class: RemoteClass

Jenkins JIRA | John Mickey | 10 months ago
  1. 0

    I am working on configuring Active Directory via Groovy. I was able to authenticate via active directory via the UI. I have the following based on the LDAP plugin: {code:java} import jenkins.model.* import hudson.security.* import hudson.plugins.* import hudson.plugins.active_directory.* import hudson.* import jenkins.* String domain = 'my.domain.com' String site = '' String server = '192.168.1.1' String bindName = 'account@my.domain.com' String bindPassword = 'password' SecurityRealm ad_realm = new ActiveDirectorySecurityRealm(domain, site, bindName, bindPassword, server) jenkins.instance.setSecurityRealm(ad_realm) {code} This is the error: {noformat} Expected process to exit with [0], but received '255' ---- Begin output of "/opt/java/latest/bin/java" -jar "/tmp/kitchen/cache/jenkins-cli.jar" -s http://localhost:8080 groovy /tmp/groovy20160208-28479-azdr83 ---- STDOUT: STDERR: groovy.lang.MissingPropertyException: No such property: jenkins for class: RemoteClass 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 RemoteClass.run(RemoteClass:16) at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:266) at groovy.lang.GroovyShell.run(GroovyShell.java:517) at hudson.cli.GroovyCommand.run(GroovyCommand.java:86) at hudson.cli.CLICommand.main(CLICommand.java:237) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92) 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 hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:608) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:583) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:542) at hudson.remoting.UserRequest.perform(UserRequest.java:120) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63) at hudson.remoting.CallableDecoratorAdapter.call(CallableDecoratorAdapter.java:18) at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) ---- End output of "/opt/java/latest/bin/java" -jar "/tmp/kitchen/cache/jenkins-cli.jar" -s http://localhost:8080 groovy /tmp/groovy20160208-28479-azdr83 ---- Ran "/opt/java/latest/bin/java" -jar "/tmp/kitchen/cache/jenkins-cli.jar" -s http://localhost:8080 groovy /tmp/groovy20160208-28479-azdr83 returned 255 {noformat} Any idea on why I see No such property: jenkins for class: RemoteClass?

    Jenkins JIRA | 10 months ago | John Mickey
    groovy.lang.MissingPropertyException: No such property: jenkins for class: RemoteClass
  2. 0

    I am working on configuring Active Directory via Groovy. I was able to authenticate via active directory via the UI. I have the following based on the LDAP plugin: {code:java} import jenkins.model.* import hudson.security.* import hudson.plugins.* import hudson.plugins.active_directory.* import hudson.* import jenkins.* String domain = 'my.domain.com' String site = '' String server = '192.168.1.1' String bindName = 'account@my.domain.com' String bindPassword = 'password' SecurityRealm ad_realm = new ActiveDirectorySecurityRealm(domain, site, bindName, bindPassword, server) jenkins.instance.setSecurityRealm(ad_realm) {code} This is the error: {noformat} Expected process to exit with [0], but received '255' ---- Begin output of "/opt/java/latest/bin/java" -jar "/tmp/kitchen/cache/jenkins-cli.jar" -s http://localhost:8080 groovy /tmp/groovy20160208-28479-azdr83 ---- STDOUT: STDERR: groovy.lang.MissingPropertyException: No such property: jenkins for class: RemoteClass 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 RemoteClass.run(RemoteClass:16) at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:266) at groovy.lang.GroovyShell.run(GroovyShell.java:517) at hudson.cli.GroovyCommand.run(GroovyCommand.java:86) at hudson.cli.CLICommand.main(CLICommand.java:237) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92) 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 hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:608) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:583) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:542) at hudson.remoting.UserRequest.perform(UserRequest.java:120) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63) at hudson.remoting.CallableDecoratorAdapter.call(CallableDecoratorAdapter.java:18) at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) ---- End output of "/opt/java/latest/bin/java" -jar "/tmp/kitchen/cache/jenkins-cli.jar" -s http://localhost:8080 groovy /tmp/groovy20160208-28479-azdr83 ---- Ran "/opt/java/latest/bin/java" -jar "/tmp/kitchen/cache/jenkins-cli.jar" -s http://localhost:8080 groovy /tmp/groovy20160208-28479-azdr83 returned 255 {noformat} Any idea on why I see No such property: jenkins for class: RemoteClass?

    Jenkins JIRA | 10 months ago | John Mickey
    groovy.lang.MissingPropertyException: No such property: jenkins for class: RemoteClass
  3. 0

    Jenkins: Configure AD Plugin Authorization with Groovy

    Stack Overflow | 10 months ago | jsmickey
    groovy.lang.MissingPropertyException: No such property: jenkins for class: RemoteClass
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exceptions on resolving transient dependencies

    GitHub | 2 years ago | Burbaka
    groovy.lang.MissingPropertyException: No such property: baseDir for class: setup_device_types_api
  6. 0

    Titan 0.3.1 doesn't work with examples in /wiki/Graph-Configuration

    GitHub | 3 years ago | yvesx
    groovy.lang.MissingPropertyException: No such property: conf for class: groovysh_evaluate

  1. kjhdofjosvs 2 times, last 2 weeks ago
  2. rlovtangen 1 times, last 1 month ago
  3. stigkj 1 times, last 1 month ago
  4. tvrmsmith 2 times, last 1 month ago
  5. musketyr 1 times, last 1 month ago
8 more registered users
19 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.MissingPropertyException

    No such property: jenkins for class: RemoteClass

    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap()
  2. Groovy
    AbstractCallSite.callGroovyObjectGetProperty
    1. org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
    2. org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
    3 frames
  3. Unknown
    RemoteClass.run
    1. RemoteClass.run(RemoteClass:16)
    1 frame
  4. Groovy
    GroovyShell.run
    1. groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:266)
    2. groovy.lang.GroovyShell.run(GroovyShell.java:517)
    2 frames
  5. Hudson
    CliManagerImpl.main
    1. hudson.cli.GroovyCommand.run(GroovyCommand.java:86)
    2. hudson.cli.CLICommand.main(CLICommand.java:237)
    3. hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92)
    3 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  7. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:608)
    2. hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:583)
    3. hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:542)
    4. hudson.remoting.UserRequest.perform(UserRequest.java:120)
    5. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    6. hudson.remoting.Request$2.run(Request.java:326)
    7. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    7 frames
  8. Hudson
    CliManagerImpl$1.call
    1. hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63)
    1 frame
  9. Hudson :: Remoting Layer
    CallableDecoratorList$1.call
    1. hudson.remoting.CallableDecoratorAdapter.call(CallableDecoratorAdapter.java:18)
    2. hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
    2 frames
  10. jenkins.util
    ContextResettingExecutorService$2.call
    1. jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
    1 frame
  11. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames