wls-eng / arm-oraclelinux-wls

Microsoft Azure ARM Templates to create Oracle Linux VM with pre-installed Weblogic Server
Apache License 2.0
0 stars 7 forks source link

Fail to connect managed server via T3 from remote WLST client. #314

Open galiacheng opened 3 years ago

galiacheng commented 3 years ago

Reproduced steps:

  1. Deploy WebLogic cluster with Azure WebLogic Marketplace offer , no application gateway enabled.
  2. Access managed server msp1 from external WLST client via T3 string like t3://13.92.229.223:8001

Expected result: Connection succeed.

Actual result: Connection failed with error:

wls:/offline> connect('weblogic','helloword','t3://13.92.229.223:8001')
Connecting to t3://13.92.229.223:8001 with userid weblogic ...
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "<iostream>", line 19, in connect
  File "<iostream>", line 553, in raiseWLSTException
WLSTException: Error occurred while performing connect : Error getting the initial context. There is no server running at t3://13.92.229.223:8001 : Failed to initialize JNDI context, tried 2 time or times totally, the interval of each time is 0ms.
Timed out while attempting to establish connection to :t3://13.92.229.223:8001
Use dumpStack() to view the full stacktrace :
wls:/offline> dumpStack()
This Exception occurred at Fri Apr 23 15:09:45 CST 2021.
javax.naming.CommunicationException: Failed to initialize JNDI context, tried 2 time or times totally, the interval of each time is 0ms.
Timed out while attempting to establish connection to :t3://13.92.229.223:8001 [Root exception is java.io.IOException: Timed out while attempting to establish connection to :t3://13.92.229.223:8001]
        at weblogic.jndi.WLInitialContextFactoryDelegate.throwRetryException(WLInitialContextFactoryDelegate.java:467)
        at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:403)
        at weblogic.jndi.Environment.getContext(Environment.java:353)
        at weblogic.jndi.Environment.getContext(Environment.java:322)
        at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:131)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
        at javax.naming.InitialContext.init(InitialContext.java:244)
        at javax.naming.InitialContext.<init>(InitialContext.java:216)
        at weblogic.management.scripting.WLSTHelper.populateInitialContext(WLSTHelper.java:757)
        at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:235)
        at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:71)
        at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:239)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.python.core.PyReflectedFunction.__call__(Unknown Source)
        at org.python.core.PyMethod.__call__(Unknown Source)
        at org.python.core.PyObject.__call__(Unknown Source)
        at org.python.core.PyObject.invoke(Unknown Source)
        at org.python.pycode._pyx114.connect$1(<iostream>:13)
        at org.python.pycode._pyx114.call_function(<iostream>)
        at org.python.core.PyTableCode.call(Unknown Source)
        at org.python.core.PyTableCode.call(Unknown Source)
        at org.python.core.PyTableCode.call(Unknown Source)
        at org.python.core.PyFunction.__call__(Unknown Source)
        at org.python.pycode._pyx119.f$0(<console>:1)
        at org.python.pycode._pyx119.call_function(<console>)
        at org.python.core.PyTableCode.call(Unknown Source)
        at org.python.core.PyCode.call(Unknown Source)
        at org.python.core.Py.runCode(Py.java:1226)
        at org.python.core.Py.exec(Py.java:1252)
        at org.python.util.PythonInterpreter.exec(Unknown Source)
        at org.python.util.InteractiveInterpreter.runcode(Unknown Source)
        at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
        at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
        at weblogic.management.scripting.utils.WLSTInterpreter.runsource(WLSTInterpreter.java:1095)
        at weblogic.management.scripting.WLST.main(WLST.java:232)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at weblogic.WLST.main(WLST.java:47)
Caused by: java.io.IOException: Timed out while attempting to establish connection to :t3://13.92.229.223:8001
        at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:367)
        at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:318)
        at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:161)
        at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:258)
        at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:222)
        at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
        at weblogic.rjvm.ClientServerURL.findOrCreateRJVM(ClientServerURL.java:177)
        at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:354)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:368)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:163)
        at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:350)
        ... 42 more

javax.naming.CommunicationException: Failed to initialize JNDI context, tried 2 time or times totally, the interval of each time is 0ms.
Timed out while attempting to establish connection to :t3://13.92.229.223:8001 [Root exception is java.io.IOException: Timed out while attempting to establish connection to :t3://13.92.229.223:8001]
galiacheng commented 3 years ago

Workaround:

The server configuration should be: image

T3 connection: image