Attribute of Shared Credential Missing When Creating New External Application (Doc ID 1338295.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.4.0 and later
Information in this document applies to any platform.

Symptoms


When creating a new External Application in WebCenter Enterprise Manager (EM) for an email connection, the following error is raised when clicking on apply:

Error:
Configuration options currently unavailable. The application might be down, did not start properly, or is incorrectly packaged. Check the log files for further details.



The following is written into the WC_Spaces-diagnostic.log at the same time:

[2011-05-25T16:15:57.000+08:00] [AdminServer] [ERROR] [] [javax.enterprise.resource.webcontainer.jsf.application] [tid: [ACTIVE].ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: eea14f485f2552f4:1224d42f:1301ad6c230:-8000-0000000000000eca,0] [APP: em] oracle.sysman.emSDK.app.exception.EMSystemException[[
javax.faces.el.EvaluationException: oracle.sysman.emSDK.app.exception.EMSystemException
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
...
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:1)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused by: oracle.sysman.emSDK.app.exception.EMSystemException
at oracle.sysman.emai.model.workplace.ServiceConfigModelBase.throwEMSystemException(ServiceConfigModelBase.java:853)
at oracle.sysman.emai.model.workplace.ServiceConfigModelBase.createConnection(ServiceConfigModelBase.java:315)
at oracle.sysman.emai.view.workplace.ServiceConfigViewBaseBean.createConnection(ServiceConfigViewBaseBean.java:479)
at oracle.sysman.emai.view.workplace.ServiceConfigViewBaseBean.createUpdateConnection(ServiceConfigViewBaseBean.java:338)
at oracle.sysman.emai.view.workplace.ExternalAppConfigView.createUpdateConnection(ExternalAppConfigView.java:111)
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:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at oracle.sysman.emas.fwk.config.ConfigTemplateViewBean$ActionMethod.executeMethod(ConfigTemplateViewBean.java:1319)
at oracle.sysman.emas.fwk.config.ConfigTemplateViewBean$ActionMethod.execute(ConfigTemplateViewBean.java:1294)
at oracle.sysman.emas.fwk.config.ConfigTemplateViewBean.executeSaveChanges(ConfigTemplateViewBean.java:1569)
at oracle.sysman.emas.fwk.config.ConfigTemplateViewBean.saveChangesDuringRequest(ConfigTemplateViewBean.java:1450)
at oracle.sysman.emas.fwk.config.ConfigTemplateViewBean.applyAction(ConfigTemplateViewBean.java:1211)
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:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
... 75 more
Caused by: javax.management.RuntimeMBeanException: javax.management.RuntimeMBeanException: java.util.NoSuchElementException: Attribute javaserializeddata has no value
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:205)
at weblogic.rmi.internal.BasicRemoteRef.invoke_aroundBody0(BasicRemoteRef.java:222)
at weblogic.rmi.internal.BasicRemoteRef.invoke_aroundBody1$advice(BasicRemoteRef.java:218)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:1)
at javax.management.remote.rmi.RMIConnectionImpl_1034_WLStub.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:993)
at weblogic.management.remote.wlx.ClientProvider$WLXMBeanServerConnectionWrapper.invoke(ClientProvider.java:291)
at weblogic.management.remote.wlx.ClientProvider$WLXMBeanServerConnectionWrapper.invoke(ClientProvider.java:291)
at oracle.sysman.emas.sdk.model.jmx.JMXUtil.invokeOperation(JMXUtil.java:92)
at oracle.sysman.emai.model.workplace.ExternalApplicationModel.addSharedPublicCredential(ExternalApplicationModel.java:274)
at oracle.sysman.emai.model.workplace.ExternalApplicationModel.setMBeanFromConfig(ExternalApplicationModel.java:261)
at oracle.sysman.emai.model.workplace.ExternalApplicationModel.setMBeanFromConfig(ExternalApplicationModel.java:60)
at oracle.sysman.emai.model.workplace.ServiceConfigModelBase.setMBeanFromConfig(ServiceConfigModelBase.java:489)
at oracle.sysman.emai.model.workplace.ServiceConfigModelBase.createConnection(ServiceConfigModelBase.java:286)
... 96 more
Caused by: javax.management.RuntimeMBeanException: java.util.NoSuchElementException: Attribute javaserializeddata has no value
at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean.doInvoke(OracleStandardEmitterMBean.java:981)
at oracle.adf.mbean.share.AdfMBeanInterceptor.internalInvoke(AdfMBeanInterceptor.java:104)
...
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:1)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
... 4 more
Caused by: java.lang.RuntimeException: java.util.NoSuchElementException: Attribute javaserializeddata has no value
at oracle.adf.mbean.share.connection.ConnectionsHelper.resetCredentials(ConnectionsHelper.java:260)
at oracle.adf.mbean.share.connection.extapp.ExtAppConnectionMXBeanImpl.storeSharedCredentials(ExtAppConnectionMXBeanImpl.java:1320)
at oracle.adf.mbean.share.connection.extapp.ExtAppConnectionMXBeanImpl.specifySharedUser(ExtAppConnectionMXBeanImpl.java:717)
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:597)
at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean.doInvoke(OracleStandardEmitterMBean.java:973)
... 52 more
Caused by: java.util.NoSuchElementException: Attribute javaserializeddata has no value
at javax.naming.directory.BasicAttribute.get(BasicAttribute.java:281)
at oracle.security.jps.internal.credstore.ldap.CredentialEntityMapper.getEntity(CredentialEntityMapper.java:266)
at oracle.security.jps.internal.policystore.ldap.JpsLdapDataManager.queryBaseEntities(JpsLdapDataManager.java:1290)
at oracle.security.jps.internal.credstore.ldap.CsfStoreManager.getCredential(CsfStoreManager.java:684)
at oracle.security.jps.internal.credstore.ldap.CsfStoreManager.modifyCredential(CsfStoreManager.java:612)
at oracle.security.jps.internal.credstore.ldap.CsfStoreManager.modifyCredential(CsfStoreManager.java:606)
at oracle.security.jps.internal.credstore.ldap.LdapCredentialStore.resetCredential(LdapCredentialStore.java:441)
at oracle.adf.share.security.providers.jps.actions.StoreCredentialAction.run(StoreCredentialAction.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.adf.share.security.providers.jps.CSFCredentialStore.storeCredentialCSF(CSFCredentialStore.java:968)
at oracle.adf.share.security.providers.jps.CSFCredentialStore.storeCredentialCSF(CSFCredentialStore.java:918)
at oracle.adf.share.security.providers.jps.CSFCredentialStore.storeCredential(CSFCredentialStore.java:882)
at oracle.adf.share.security.credentialstore.CredentialProvisioner.storeCredential(CredentialProvisioner.java:86)
at oracle.adf.share.security.credentialstore.CredentialProvisioner.storeCredential(CredentialProvisioner.java:59)
at oracle.adf.mbean.share.connection.ConnectionsHelper.resetCredentials(ConnectionsHelper.java:251)
... 59 more

]]



The External Application was defined as follows:

Application Name: ext_rsmtp_mail
Enable Automatic Login: unchecked
Authentication Method: POST
No additional Login Fields specified

Enable Shared Credentials: checked
User Name and Password is specified

When looking at the System MBean Browser it shows Application Defined MBeans: ExtAppConnectionProvider:ext_rsmtp_mail.
It is under oracle.adf.share.connections -> Application: webcenter -> ADFConnections -> ExtAppConnectionProvider -> ext_rsmtp_mail.

It shows the attributes for ext_rsmtp_mail, among others the following:

SharedCredential: Unavailable
SharedCredentialEnabled: true

All the policy & credential have been migrated to OID.

When clicking Weblogic Domain-> Security -> Credentials, it throws the following error:

Failed to retrieve all credentials from the credential store.
Attribute javaserializeddata has no value...


A similar exception is logged to WC_Spaces-diagnostic.log.

Steps to Reproduce:

  1. Try to create a new External Application in EM with the following details:
    Application Name: ext_rsmtp_mail
    Enable Automatic Login: unchecked
    Authentication Method: POST
    No additional Login Fields specified

    Enable Shared Credentials: checked
    User Name and Password is specified

     
  2. Click on Apply and notice the error.

 

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