|
|
|
|
|
|
|
|
|
Re: Java at 100% CPU [message #1060913 is a reply to message #1060230] |
Wed, 29 May 2013 07:02 |
k z Messages: 71 Registered: October 2012 |
Member |
|
|
I've just tiried that. I'm using role-based authorization strategy and active directory plugins for security. The service installed itself successfully but there is a problem with connection.
If I do not specify credentials I got 403 exception
Failing to obtain https://<MyTestHudsonURL>/computer/nemedia/slave-agent.jnlp
java.io.IOException: Failed to load https://<MyTestHudsonURL>/computer/nemedia/slave-agent.jnlp: 403 Forbidden
at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:222)
at hudson.remoting.Launcher.run(Launcher.java:184)
at hudson.remoting.Launcher.main(Launcher.java:160)
Waiting 10 seconds before retry
If I specify credentials (-jnlpCredentials <user>:<password>) I got NoClassDefFoundError exception
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:213)
at hudson.remoting.Launcher.run(Launcher.java:184)
at hudson.remoting.Launcher.main(Launcher.java:160)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more
The only way I was able to get slave connected to master was to either grant Anonymous user Read permission (which is not acceptable in production env) or download slave-agent.jnlp to my file system and point out to that file in config. In both cases exception was thrown but the connection was successful.
May 29, 2013 8:37:54 AM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Hudson agent is running in headless mode.
May 29, 2013 8:37:54 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [https://<MyTestHudsonURL>/, https://<MyTestHudsonURL>:443/]
May 29, 2013 8:37:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to <MyTestHudsonURL>:51996
May 29, 2013 8:37:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
May 29, 2013 8:37:56 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected
May 29, 2013 8:37:58 AM org.eclipse.hudson.jna.NativeUtils <init>
INFO: Error getting Native Support Extensions
java.lang.NullPointerException
at org.eclipse.hudson.jna.NativeUnixSupport.all(NativeUnixSupport.java:46)
at org.eclipse.hudson.jna.NativeUtils.getAvailableNativeUnixSupports(NativeUtils.java:74)
at org.eclipse.hudson.jna.NativeUtils.<init>(NativeUtils.java:48)
at org.eclipse.hudson.jna.NativeUtils.<clinit>(NativeUtils.java:44)
at java.io.ObjectStreamClass.hasStaticInitializer(Native Method)
at java.io.ObjectStreamClass.computeDefaultSUID(Unknown Source)
at java.io.ObjectStreamClass.access$100(Unknown Source)
at java.io.ObjectStreamClass$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.getSerialVersionUID(Unknown Source)
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at hudson.remoting.UserRequest.deserialize(UserRequest.java:171)
at hudson.remoting.UserRequest.perform(UserRequest.java:91)
at hudson.remoting.UserRequest.perform(UserRequest.java:41)
at hudson.remoting.Request$2.run(Request.java:276)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1$1.run(Engine.java:53)
at java.lang.Thread.run(Unknown Source)
Are you planning to integrate slave windows service somehow better with hudson security model or I should use workaround with local slave-agent.jnlp file ?
[Updated on: Wed, 29 May 2013 07:03] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.05214 seconds