gpt4 book ai didi

python - 如何在 Weblogic 中启用 JMX 以通过 WLST 设置任何属性

转载 作者:太空宇宙 更新时间:2023-11-04 10:05:11 24 4
gpt4 key购买 nike

我遇到以下错误。

java.lang.RuntimeException: java.lang.RuntimeException: The requested attribute is not exposed through JMX: setEnabled

我该如何解决这个问题。

这是我在 WLST(Weblogic 脚本工具)中尝试过的命令集。

wls:/MiCommApp/serverConfig> cd('/Servers/'  'AdminServer' '/SSL/' 'AdminServer' )
wls:/MiCommApp/serverConfig/Servers/AdminServer/SSL/AdminServer> cmo.setEnabled(true)
Traceback (innermost last):
File "<console>", line 1, in ?
at weblogic.management.jmx.ExceptionMapper.matchJMXException(ExceptionMapper.java:74)
at weblogic.management.jmx.MBeanServerInvocationHandler.doInvoke(MBeanServerInvocationHandler.java:508)
at weblogic.management.jmx.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:382)
at com.sun.proxy.$Proxy16.setEnabled(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)

java.lang.RuntimeException: java.lang.RuntimeException: The requested attribute
is not exposed through JMX: setEnabled

最佳答案

在使用此命令 edit()startEdit()

更改任何实例变量的设置之前,我们已经进入编辑模式

WLST 提示 !> 表示我们处于编辑模式。

wls:/myBeaDir/serverConfig/Servers/MiCommApp/SSL/MiCommApp> edit()
Location changed to edit tree. This is a writable tree with
DomainMBean as the root. To make changes you will need to start
an edit session via startEdit().

For more help, use help('edit')

wls:/myBeaDir/edit> startEdit()
Starting an edit session ...
Started edit session, please be sure to save and activate your
changes once you are done.
wls:/myBeaDir/edit !> cd('/Servers/' 'MiCommApp' '/SSL/' 'MiCommApp' )
wls:/myBeaDir/edit/Servers/MiCommApp/SSL/MiCommApp !>

关于python - 如何在 Weblogic 中启用 JMX 以通过 WLST 设置任何属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41377947/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com