问题遇到的现象和发生背景
启动weblogic的WLST时报错
操作环境、软件版本等信息
centos8.1 安装weblogic14.1 ,JDK19
尝试过的解决方法
查了一下说是JAVA初始化错误,但是都没有解决方法
我想要达到的结果
成功启动WLST,并且可以使用
报错内容如下:
[weblogic@node1 bin]$ /u02/weblogic/Oracle/Middleware/wlserver/common/bin/wlst.sh
WARNING: This is a deprecated script. Please invoke the wlst.sh script under oracle_common/common/bin.
Initializing WebLogic Scripting Tool (WLST) ...
main:20: RuntimeWarning: PyTableCode.call caught a Throwable that is not an Exception:
java.lang.ExceptionInInitializerError
Jython internals might be in a bad state now that can cause deadlocks later on.
See http://bugs.jython.org/issue2536 for details.
Traceback (most recent call last):
File "", line 20, in
java.lang.ExceptionInInitializerError
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:495)
at java.base/java.lang.Class.forName(Class.java:474)
at org.python.core.Py.loadAndInitClass(Py.java:1107)
at org.python.core.Py.findClassInternal(Py.java:1020)
at org.python.core.Py.findClass(Py.java:1067)
at org.python.core.packagecache.PackageManager.basicDoDir(PackageManager.java:113)
at org.python.core.packagecache.SysPackageManager.doDir(SysPackageManager.java:154)
at org.python.core.PyJavaPackage.fillDir(PyJavaPackage.java:120)
at org.python.core.imp.importAll(imp.java:1192)
at org.python.core.imp.importAll(imp.java:1180)
at org.python.pycode._pyx3.f$0(:349)
at org.python.pycode._pyx3.call_function()
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1614)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:296)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:291)
at weblogic.management.scripting.utils.WLSTInterpreter.execfile(WLSTInterpreter.java:1128)
at weblogic.management.scripting.utils.WLSTUtil.execWLSTScript(WLSTUtil.java:285)
at weblogic.management.scripting.utils.WLSTUtil.setupOfflineInternal(WLSTUtil.java:468)
at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:372)
at weblogic.management.scripting.utils.WLSTUtilWrapper.setupOffline(WLSTUtilWrapper.java:29)
at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:270)
at weblogic.management.scripting.WLST.main(WLST.java:140)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at weblogic.WLST.main(WLST.java:47)
Caused by: java.lang.UnsupportedOperationException: Preview Features not enabled, need to run with --enable-preview
at java.base/jdk.internal.misc.PreviewFeatures.ensureEnabled(PreviewFeatures.java:49)
at java.base/jdk.internal.vm.Continuation.(Continuation.java:53)
... 28 more
java.lang.ExceptionInInitializerError: java.lang.ExceptionInInitializerError
Problem invoking WLST - Traceback (most recent call last):
File "", line 20, in
java.lang.ExceptionInInitializerError
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:495)
at java.base/java.lang.Class.forName(Class.java:474)
at org.python.core.Py.loadAndInitClass(Py.java:1107)
at org.python.core.Py.findClassInternal(Py.java:1020)
at org.python.core.Py.findClass(Py.java:1067)
at org.python.core.packagecache.PackageManager.basicDoDir(PackageManager.java:113)
at org.python.core.packagecache.SysPackageManager.doDir(SysPackageManager.java:154)
at org.python.core.PyJavaPackage.fillDir(PyJavaPackage.java:120)
at org.python.core.imp.importAll(imp.java:1192)
at org.python.core.imp.importAll(imp.java:1180)
at org.python.pycode._pyx3.f$0(:349)
at org.python.pycode._pyx3.call_function()
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1614)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:296)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:291)
at weblogic.management.scripting.utils.WLSTInterpreter.execfile(WLSTInterpreter.java:1128)
at weblogic.management.scripting.utils.WLSTUtil.execWLSTScript(WLSTUtil.java:285)
at weblogic.management.scripting.utils.WLSTUtil.setupOfflineInternal(WLSTUtil.java:468)
at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:372)
at weblogic.management.scripting.utils.WLSTUtilWrapper.setupOffline(WLSTUtilWrapper.java:29)
at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:270)
at weblogic.management.scripting.WLST.main(WLST.java:140)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at weblogic.WLST.main(WLST.java:47)
Caused by: java.lang.UnsupportedOperationException: Preview Features not enabled, need to run with --enable-preview
at java.base/jdk.internal.misc.PreviewFeatures.ensureEnabled(PreviewFeatures.java:49)
at java.base/jdk.internal.vm.Continuation.(Continuation.java:53)
... 28 more
java.lang.ExceptionInInitializerError: java.lang.ExceptionInInitializerError