"oracle.ods.virtualization.engine.util.DirectoryException: Invalid port number" When Configuring Failover for LDAP Authentication Providers (Doc ID 1370156.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Business Process Management Suite - Version 11.1.1.4.0 to 11.1.1.4.0 [Release 11gR1]
Information in this document applies to any platform.

Symptoms

In WLS Admin Console, multiple LDAP Authentication Providers have been configured for failover as explained in the following document:

Oracle Fusion Middleware Securing Oracle WebLogic Server
11g Release 1 (10.3.4)
Part Number E13707-04

"Configuring Failover for LDAP Authentication Providers"
http://download.oracle.com/docs/cd/E17904_01/web.1111/e13707/atn.htm#i1199014

Each host name:port has been separated using a space character.

However, the following stack trace is shown in logs when the failover configuration is parsed when trying to login into Worklist or Workspace:

<Jul 12, 2011 5:15:37 PM CEST> <Warning> <oracle.jps.idmgmt> <JPS-01520> <Cannot initialize identity store.>
<Jul 12, 2011 5:15:38 PM CEST> <Error> <oracle.bpm.services.organization> <BEA-000000> <Exception
exception.70692.type: error
exception.70692.severity: 2
exception.70692.name: Error while granting BPMOrganizationAdmin role to SOAOperator.
exception.70692.description: Error occured while granting the application role BPMOrganizationAdmin to application role SOAOperator.
exception.70692.fix: In the policy store, please add SOAOperator role as a member of BPMOrganizationAdmin role, if it is not already present.

ORABPEL-10585

Service error.
Internal Error; Service error occurs in JpsProvider in method getIdentityStore().
Refer to the log file that is configured for oracle.soa.services.identity for more details on this error and contact Oracle Support Services

at oracle.tip.pc.services.identity.jps.JpsProvider.getIdentityStore(JpsProvider.java:362)
at oracle.tip.pc.services.identity.jps.JpsProvider.init(JpsProvider.java:335)
at oracle.tip.pc.services.identity.jps.JpsProvider.<init>(JpsProvider.java:299)
at oracle.tip.pc.services.identity.jps.JpsProvider.getInstance(JpsProvider.java:311)
at oracle.bpm.bpmn.engine.runtime.DeploymentDescriptorUtil.grantBPMOrganizationAdminRoleToSOAOperator(DeploymentDescriptorUtil.java:292)
at oracle.bpm.bpmn.engine.service.BPMNServiceEngine.stateChanged(BPMNServiceEngine.java:578)
at oracle.integration.platform.blocks.mesh.FabricLifecycle.notifyListeners(FabricLifecycle.java:46)
at oracle.integration.platform.blocks.mesh.FabricLifecycle.setState(FabricLifecycle.java:30)
at oracle.integration.platform.blocks.mesh.MeshImpl.postDeployInit(MeshImpl.java:119)
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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy306.postDeployInit(Unknown Source)
at oracle.integration.platform.kernel.FabricKernelInitializerServlet$1.run(FabricKernelInitializerServlet.java:555)
at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
Caused By: oracle.security.jps.service.idstore.IdentityStoreException: oracle.security.idm.ConfigurationException: oracle.security.idm.ConfigurationException: oracle.ods.virtualization.engine.util.DirectoryException: Invalid port number
at oracle.security.jps.internal.idstore.util.IdentityStoreUtil.getIdentityStoreFactory(IdentityStoreUtil.java:238)
at oracle.security.jps.internal.idstore.AbstractIdmIdentityStore.getIdmFactory(AbstractIdmIdentityStore.java:177)
at oracle.security.jps.internal.idstore.AbstractIdmIdentityStore.initStore(AbstractIdmIdentityStore.java:124)
at oracle.security.jps.internal.idstore.AbstractIdmIdentityStore.getIdmStore(AbstractIdmIdentityStore.java:110)
at oracle.tip.pc.services.identity.jps.JpsProvider.getIdentityStore(JpsProvider.java:360)
...
Caused By: oracle.security.idm.ConfigurationException: oracle.security.idm.ConfigurationException: oracle.ods.virtualization.engine.util.DirectoryException: Invalid port number
at oracle.security.idm.providers.libovd.LibOVDIdentityStoreFactory.setup(LibOVDIdentityStoreFactory.java:231)
at oracle.security.idm.providers.libovd.LibOVDIdentityStoreFactory.<init>(LibOVDIdentityStoreFactory.java:132)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at oracle.security.idm.IdentityStoreFactoryBuilder.getIdentityStoreFactory(IdentityStoreFactoryBuilder.java:127)
...
Caused By: oracle.security.idm.ConfigurationException: oracle.ods.virtualization.engine.util.DirectoryException: Invalid port number
at oracle.security.idm.providers.libovd.LibOVDIdentityStoreFactory.jpsInit(LibOVDIdentityStoreFactory.java:279)
at oracle.security.idm.providers.libovd.LibOVDIdentityStoreFactory.setup(LibOVDIdentityStoreFactory.java:185)
at oracle.security.idm.providers.libovd.LibOVDIdentityStoreFactory.<init>(LibOVDIdentityStoreFactory.java:134)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
...
Caused By: oracle.ods.virtualization.engine.util.DirectoryException: Invalid port number
at oracle.ods.virtualization.engine.util.LDAPURL.decodePort(LDAPURL.java:161)
at oracle.ods.virtualization.engine.util.LDAPURL.decodeHostPort(LDAPURL.java:147)
at oracle.ods.virtualization.engine.util.LDAPURL.<init>(LDAPURL.java:81)
at oracle.security.idm.providers.libovd.LibOVDIdentityStoreFactory.jpsInit(LibOVDIdentityStoreFactory.java:257)
at oracle.security.idm.providers.libovd.LibOVDIdentityStoreFactory.setup(LibOVDIdentityStoreFactory.java:188)
at oracle.security.idm.providers.libovd.LibOVDIdentityStoreFactory.<init>(LibOVDIdentityStoreFactory.java:134)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)


As a result of this behavior you can't login into Worklist or Workspace.

The actual workaround is to disable failover, meaning, specifying a single host instead of many hosts on each Authenticator Provider.

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