ASControl (EM Console) Error When Configuring An Instance Keystore (Doc ID 1352387.1)

Last updated on DECEMBER 18, 2015

Applies to:

Oracle Containers for J2EE - Version 10.1.3.0.0 to 10.1.3.5.0 [Release AS10gR3]
Information in this document applies to any platform.
***Checked for relevance on 18-Dec-2015***

Symptoms

1. Create keystore and key alias like this.

$ORACLE_HOME/jdk/bin/keytool -genkey -alias mykey -keypass mkpwd1 -keystore \
mykeystore1.jks -storetype jks -storepass mkspwd1 -keysize 1024 -keyalg rsa \
-dname "CN=bokim-pc.kr.oracle.com, OU=Support, O=Oracle, L=Seoul, S=ON,C=KR"

$ORACLE_HOME/jdk/bin/keytool -genkey -alias mykey2 -keypass mkpwd2 -keystore \
mykeystore1.jks -storetype jks -storepass mkspwd1 -keysize 1024 -keyalg rsa \
-dname "CN=bokim-pc.kr.oracle.com, OU=Support, O=Oracle, L=Seoul, S=ON,C=KR"


Notice:  just for demonstration purposes self signed certificates are being used here, for production purposes you must get certificates from a security provider.



2. And go to AS Control.

- Select oc4j instance.
- Select administration.
- Select Instance keystore.
- After filling out the form " Instance Keystore and Identity Certificates" like this.

Keystore Name = mykeystore1
Keystore Path = jdk/bin
Keystore Type = JKS
Password = mykspwd1
Confirm Password = mykspwd1

Identity Certificates
Signature Key
Key Alias = mykey
Key Password = mkpwd1
Confirm Password = mkpwd1

Encryption Key
Key Alias = mykey2
Key Password = mkpwd2
Confirm Password = mkpwd2


3. Click 'OK' button and then instance the console throws the following error:



oracle.oc4j.admin.jmx.shared.exceptions.JMXRuntimeException: RuntimeException thrown by the invoke method of the Dynamic MBean at oracle.oc4j.admin.jmx.distributed.SimpleInstanceMBeanServerDelegate.setAttribute(SimpleInstanceMBeanServerDelegate.java:782) at oracle.oc4j.admin.jmx.server.state.LocalizationFilterMBeanServer.setAttribute(LocalizationFilterMBeanServer.java:528) at oracle.sysman.ias.studio.jmx.spi.JMXConnectorImpl.setAttribute(JMXConnectorImpl.java:379) at oracle.sysman.ias.studio.sdk.SDKJMXUtil.setAttributeValue(SDKJMXUtil.java:539) at oracle.sysman.ias.studio.oc4j.sec.JMXOc4jKeystoreAdminBean.setData(JMXOc4jKeystoreAdminBean.java:218) at oracle.sysman.ias.studio.oc4j.sec.Oc4jKeystoreHelper.handleEvent(Oc4jKeystoreHelper.java:194) at oracle.sysman.ias.studio.sdk.AbstractController.handleEvent(AbstractController.java:769) at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:378) at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:765) at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:283) at oracle.sysman.ias.studio.app.StudioConsole.doGet(StudioConsole.java:385) at oracle.cabo.servlet.UIXServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.sysman.ias.studio.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:75) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.sysman.ias.studio.app.MultipleJVMFilter.doFilter(MultipleJVMFilter.java:85) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17) at oracle.sysman.ias.studio.app.PostLogonFilter.doFilter(PostLogonFilter.java:80) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17) at oracle.sysman.ias.studio.app.ShortHostnameRedirectFilter.doFilter(ShortHostnameRedirectFilter.java:68) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595) Caused by: javax.management.RuntimeMBeanException: RuntimeException thrown by the invoke method of the Dynamic MBean at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:227) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at oracle.oc4j.admin.jmx.server.state.LocalizationFilterMBeanServer.invoke(LocalizationFilterMBeanServer.java:579) at oracle.oc4j.admin.jmx.distributed.SimpleInstanceMBeanServerDelegate.setAttribute(SimpleInstanceMBeanServerDelegate.java:752) ... 30 more Caused by: javax.management.RuntimeMBeanException: Error setting attribute: stagedConfig for: oc4j:J2EEServer=standalone,handler=security,j2eeType=WSMHandlerGlobalConfig at oracle.oc4j.admin.jmx.server.mbeans.model.DefaultModelMBeanImpl.invoke(DefaultModelMBeanImpl.java:709) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) ... 35 more Caused by: oracle.oc4j.admin.jmx.shared.exceptions.JMXClusterRuntimeException: Error setting attribute: stagedConfig for: oc4j:J2EEServer=standalone,handler=security,j2eeType=WSMHandlerGlobalConfig at oracle.oc4j.admin.management.farm.mbeans.J2EEServerAgr.setAttribute(J2EEServerAgr.java:1735) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243) at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1073) at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:954) at oracle.oc4j.admin.jmx.server.mbeans.model.DefaultModelMBeanImpl.invoke(DefaultModelMBeanImpl.java:700) ... 36 more ---- Embedded exception javax.management.RuntimeMBeanException: RuntimeException thrown by the invoke method of the Dynamic MBean at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:227) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at oracle.oc4j.admin.jmx.server.state.LocalizationFilterMBeanServer.invoke(LocalizationFilterMBeanServer.java:579) at oracle.oc4j.admin.jmx.distributed.SimpleInstanceMBeanServerDelegate.setAttribute(SimpleInstanceMBeanServerDelegate.java:752) at oracle.oc4j.admin.jmx.server.state.LocalizationFilterMBeanServer.setAttribute(LocalizationFilterMBeanServer.java:528) at oracle.sysman.ias.studio.jmx.spi.JMXConnectorImpl.setAttribute(JMXConnectorImpl.java:379) at oracle.sysman.ias.studio.sdk.SDKJMXUtil.setAttributeValue(SDKJMXUtil.java:539) at oracle.sysman.ias.studio.oc4j.sec.JMXOc4jKeystoreAdminBean.setData(JMXOc4jKeystoreAdminBean.java:218) at oracle.sysman.ias.studio.oc4j.sec.Oc4jKeystoreHelper.handleEvent(Oc4jKeystoreHelper.java:194) at oracle.sysman.ias.studio.sdk.AbstractController.handleEvent(AbstractController.java:769) at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:378) at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:765) at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:283) at oracle.sysman.ias.studio.app.StudioConsole.doGet(StudioConsole.java:385) at oracle.cabo.servlet.UIXServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.sysman.ias.studio.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:75) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.sysman.ias.studio.app.MultipleJVMFilter.doFilter(MultipleJVMFilter.java:85) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17) at oracle.sysman.ias.studio.app.PostLogonFilter.doFilter(PostLogonFilter.java:80) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17) at oracle.sysman.ias.studio.app.ShortHostnameRedirectFilter.doFilter(ShortHostnameRedirectFilter.java:68) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
...

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms