在我们的公共测试环境中,首次尝试在WLST中进行连接始终失败。然后第二次尝试始终工作并建立连接。我无法找到任何类似的使用谷歌,所以我希望有人在这里可以帮助。WLST与管理端口的连接在第一次尝试时始终失败
我第一次尝试;
<Oct 7, 2014 1:49:03 PM EEST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<Oct 7, 2014 1:49:03 PM EEST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
Traceback (innermost last):
File "<console>", line 1, in ?
File "<iostream>", line 22, in connect
File "<iostream>", line 653, in raiseWLSTException
WLSTException: Error occured while performing connect : Error getting the initial context. There is no server running at t3s://xxx.xxx.xxx.xxx:nnnn
dumpStack()显示以下内容;
javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3s://xxx.xxx.xxx.xxx:nnnn: Destination unreachable; nested exception is:
java.net.SocketException: Write failed: Broken pipe; No available router to destination]
javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3s://xxx.xxx.xxx.xxx:nnnn: Destination unreachable; nested exception is:
java.net.SocketException: Write failed: Broken pipe; No available router to destination]
之后,我尝试再次连接,发生这种情况;
Connecting to t3s://xxx.xxx.xxx.xxx:nnnn with userid adminuserid ...
Successfully connected to Admin Server 'ourTestServer' that belongs to domain 'ourTestDomain'.
现在我已经试过这10倍左右,它总是做同样的,第一次尝试失败,第二次尝试的作品。每次我使用IP而不是地址的名称。这是在带有最新安全补丁的WLS 10.3.6的Linux(RHEL6)中。
我假设这条线从服务器的日志是相关的,因为它发生在信息行上面29秒后发生;
####<Oct 7, 2014 1:49:32 PM EEST> <Warning> <Socket> <machinename.domain.local> <ourTestServer> <[ACTIVE] ExecuteThread: '19' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1412678972504> <BEA-000449> <Closing socket as no data read from it on xxx.xxx.xxx.xxx:nnnn during the configured idle timeout of 25 secs>
我不知所措,第一次尝试失败,第二次尝试的作品总是如此。
我在Windows上有完全相同的问题。一台管理服务器,一台主机,并且它总是在第二次尝试时连接。 Oracle的支持没有帮助,所以我们必须在我们的脚本中添加逻辑来捕获异常并再次尝试连接......祝您好运 – 2014-10-09 15:03:12