2016-12-29 81 views
1

我收到以下錯誤。如何啓用Weblogic中的JMX通過WLST設置任何屬性

了java.lang.RuntimeException:了java.lang.RuntimeException:請求 屬性不通過JMX暴露:的setEnabled

我怎樣才能解決這個問題。

這是我在WLST(Weblogic Sc​​ripting Tool)中試過的一組命令。

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 

回答

1

我們必須改變使用此設置任何實例變量之前幹什麼去了編輯模式命令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 !> 
相關問題