|
[
Permlink
| « Hide
]
Koen Vereeken added a comment - 24/Apr/08 03:40 PM
I have the same issue .. I've read something about java.security where you can grant classes to have access to other classes.. no luck..
Hi Koen.
It's not an issue related to security configuration. The current workaround is to have the server and all remote agents running on the same JDK version. We are currently investigating a permanent solution. Regards, I have been able to reproduce this.
Bamboo remote agents is typically a case we need for managing builds on different environments, also with different versions of Java, so it would be great to have this issue resolved.
Thanks! Regards, Koen Hi Koen,
You are not limited to building projects using the JDK that was used to start the remote agent. Even if you start the remote agent with JDK 1.5, it will build plans using the JDK specified in the plan's definition. If you need further information on this, please raise a support request at http://support.atlassian.com Regards, Increasing the priority level, this issue was also reported in https://support.atlassian.com/browse/BSP-756
message.txt
It looks like the problem is that java.util.concurrent.locks.AbstractOwnableSynchronizer has been introduced in JDK 1.6, and is now part of the inheritance hierarchy of java.util.concurrent.locks.ReentrantLock$NonfairSync, which appears in the object graph of com.atlassian.bamboo.v2.build.CurrentBuildResultImpl:
com.atlassian.bamboo.v2.build.CurrentBuildResultImpl
customBuildData = java.util.concurrent.ConcurrentHashMap@1edb0
java.util.concurrent.ConcurrentHashMap ** UNRECOGNISED writeObject IMPLEMENTATION **
segments = [Ljava.util.concurrent.ConcurrentHashMap$Segment;@10e3c8c
[0] = java.util.concurrent.ConcurrentHashMap$Segment@1a90deb
java.util.concurrent.ConcurrentHashMap$Segment
java.util.concurrent.locks.ReentrantLock
sync = java.util.concurrent.locks.ReentrantLock$NonfairSync@7a1904
java.util.concurrent.locks.ReentrantLock$NonfairSync
java.util.concurrent.locks.ReentrantLock$Sync
java.util.concurrent.locks.AbstractQueuedSynchronizer
java.util.concurrent.locks.AbstractOwnableSynchronizer
java.lang.Object
java.lang.Object
Looks like a serialisation versioning bug in JDK 1.6 that we'll have to work around. I was able to successfully serialise an AbstractOwnableSynchronizer in JDK 1.6, and deserialise it in JDK 1.5, so that doesn't seem to be the problem.
I'm going to try an approach that prevents the AgentClassLoader from attempting to load classes in java.* The fix for this issue will be delivered in Bamboo 2.0.2.
Until then, the following workaround should be used: Instead of using the Bamboo Remote Agent JAR that can be downloaded from the Bamboo administration pages, use bamboo-agent-BAM-2520.jar |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||