Bamboo升级5.5-> 5.7后AIX代理失败

时间:2015-01-09 20:57:28

标签: java jna aix bamboo

我们总是很难使用Bamboo升级,因为AIX代理不受官方支持。这一点也不例外,从5.5.1到5.7.2(悲伤)它正在尝试接收/启动一项工作,显然无法读取某些序列化的XML。上一次移动到5.5.1我们不得不使用以前版本的JNA(3.4.0)而不是使用Bamboo(4.1.0)打包的版本。这次没有发生,所以我们使用Bamboo 5.7附带的最新产品。代理上线,但即使是简单的命令也无法执行(悲伤)任何想法都会受到赞赏!

AIX上的Java版本目前是:

java version "1.7.0"
Java(TM) SE Runtime Environment (build pap6470sr6fp1-20140108_01(SR6 FP1))
IBM J9 VM (build 2.6, JRE 1.7.0 AIX ppc64-64 Compressed References 20140106_181350 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR6_20140106_1601_B181350
JIT  - r11.b05_20131003_47443.02
GC   - R26_Java726_SR6_20140106_1601_B181350_CMPRSS
J9CL - 20140106_181350)
JCL - 20140103_01 based on Oracle 7u51-b11

以下是代理尝试执行第一个作业时显示错误的日志的一部分:

2015-01-08 12:11:38,417 INFO [Thread-5] [AgentHeartBeatJobScheduler] Scheduled AgentHeartBeatJobScheduler to run every 60s. Next run at Thu Jan 08 12:11:38 PST 2015
2015-01-08 12:11:38,455 INFO [Thread-5] [RemoteAgent] **************************************************************************************************************************************************
2015-01-08 12:11:38,455 INFO [Thread-5] [RemoteAgent] *                                                                                                                                                *
2015-01-08 12:11:38,455 INFO [Thread-5] [RemoteAgent] * Bamboo agent 'ibmaix71vm2.woods.ad' ready to receive builds.
2015-01-08 12:11:38,455 INFO [Thread-5] [RemoteAgent] * Remote Agent Home: /bamboo/bamboo-agent-home
2015-01-08 12:11:38,456 INFO [Thread-5] [RemoteAgent] * Broker URL: failover:(tcp://192.168.223.200:54663?wireFormat.maxInactivityDuration=300000)?initialReconnectDelay=15000&maxReconnectAttempts=10
2015-01-08 12:11:38,456 INFO [Thread-5] [RemoteAgent] *                                                                                                                                                *
2015-01-08 12:11:38,456 INFO [Thread-5] [RemoteAgent] **************************************************************************************************************************************************
2015-01-08 12:11:38,511 INFO [scheduler_Worker-1] [AgentHeartBeatJob] executableBuildAgent still unavailable. Heartbeat skipped.
2015-01-08 12:16:38,425 INFO [0-BAM::ibmaix71vm2.woods.ad::Agent:pool-3-thread-1] [BuildAgentControllerImpl] Agent 747175938 checking build queue for executables...
2015-01-08 12:16:38,825 ERROR [0-BAM::ibmaix71vm2.woods.ad::Agent:pool-3-thread-1] [BuildAgentControllerImpl] Unknown exception occurred on 'ibmaix71vm2.woods.ad'. Agent will attempt to recover its normal operation...
com.thoughtworks.xstream.converters.ConversionException: java.lang.ref.ReferenceQueue$Null : java.lang.ref.ReferenceQueue$Null
---- Debugging information ----
message             : java.lang.ref.ReferenceQueue$Null
cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : java.lang.ref.ReferenceQueue$Null
class               : com.atlassian.util.concurrent.ResettableLazyReference$InternalReference
required-type       : com.atlassian.util.concurrent.ResettableLazyReference$InternalReference
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path                : /result/value/parentBuildContext/variableContext/effectiveStateRef/referrent/queue
line number         : 234
class[1]            : com.atlassian.bamboo.variable.VariableContextImpl$1
class[2]            : com.atlassian.bamboo.variable.VariableContextImpl
class[3]            : com.atlassian.bamboo.v2.build.BuildContextImpl
converter-type[1]   : com.atlassian.bamboo.serialization.xstream.BuildContextXStreamConverter
class[4]            : org.springframework.remoting.support.RemoteInvocationResult
version             : not available
-------------------------------
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
        at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
        at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:474)
        at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:406)
        at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
        at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)

1 个答案:

答案 0 :(得分:1)

Atlassian的某位建议尝试OpenJDK并解决了我们的问题。根据@technomage,我们没有时间尝试不同的JVM构建,但是发现这个link用于下载。