大家好,我正在尝试将 AIX 服务器从机连接到 Windows 主从机。下面是我的配置页面。
在 AIX 服务器上找到的 JRE 版本是这样的(顶部是 java 路径,我没有包含 /bin,因为 Hudson 在尝试运行时会自动添加它们;请参见下面的日志):
gbnruad0016:/usr/java5/jre/bin/
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pap32devifx-20110627 (SR12 FP5 ))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc-32 j9vmap3223ifx-20110624 (JIT enabled)
J9VM - 20110623_85457_bHdSMr
JIT - 20100623_16197ifx10_r8
GC - FP22011_06)
JCL - 20110627
但是,当我想运行从代理时,我得到了这些错误,
[10/23/13 04:07:58] [SSH] Checking java version of java
[10/23/13 04:07:58] [SSH] java -version returned 1.4.2.
[10/23/13 04:07:58] [SSH] Checking java version of /usr/bin/java
Couldn't figure out the Java version of /usr/bin/java
[10/23/13 04:07:59] [SSH] Checking java version of /usr/java/default/bin/java
[10/23/13 04:07:59] [SSH] Checking java version of /usr/java/latest/bin/java
[10/23/13 04:07:59] [SSH] Checking java version of /usr/local/bin/java
[10/23/13 04:07:59] [SSH] Checking java version of /usr/local/java/bin/java
[10/23/13 04:07:59] [SSH] Checking java version of /gcdm/sys/cdms011/hudson/jdk/bin/java
[10/23/13 04:07:59] [SSH] Checking java version of /usr/java5/bin/java
hudson.util.IOException2: Could not find any known supported java version in [java, /usr/bin/java, /usr/java/default/bin/java, /usr/java/latest/bin/java, /usr/local/bin /java, /usr/local/java/bin/java, /gcdm/sys/cdms011/hudson/jdk/bin/java, /usr/java5/bin/ java], and we also failed to install JDK as a fallback
at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:230)
at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:184)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:184)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Sorry, this connection is closed.
at com.trilead.ssh2.transport.TransportManager.sendMessage(TransportManager.java:637)
at com.trilead.ssh2.channel.ChannelManager.openSessionChannel (ChannelManager.java:582)
at com.trilead.ssh2.Session.<init>(Session.java:40)
at com.trilead.ssh2.Connection.openSession(Connection.java:1047)
at com.trilead.ssh2.Connection.exec(Connection.java:1434)
at hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:253)
at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:228)
... 7 more
Caused by: java.io.IOException: Unexpected SSH_MSG_CHANNEL_EXTENDED_DATA message for non-existent channel 103
at com.trilead.ssh2.channel.ChannelManager.msgChannelExtendedData (ChannelManager.java:832)
at com.trilead.ssh2.channel.ChannelManager.handleMessage(ChannelManager.java:1639)
at com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:775)
at com.trilead.ssh2.transport.TransportManager$1.run(TransportManager.java:470)
... 1 more
[10/23/13 04:07:59] [SSH] Connection closed.
不知道1.4.2版本是从哪里来的?我在本地机器上检查了它的 1.6.0,在 AIX 服务器上检查了它的 1.5.0。
也许这就是这个错误的根本原因?
谢谢!