Testing A Connection From Policy Studio Fails With "Connection Timed Out"

(Doc ID 1934350.1)

Last updated on AUGUST 18, 2016

Applies to:

Oracle API Gateway - Version 11.1.1.6.0 to 11.1.2 [Release 11gR1 to 11gR2]
Information in this document applies to any platform.

Symptoms

The "Test Connection" funtionality from Policy Studio fails with "Connection timed out".

 

Example messages when testing an LDAP Connection from Policy Studio:

DEBUG   02/Oct/2014:13:49:13.815 [26089700] url : [url{ldap://10.11.12.13:389}]
DEBUG   02/Oct/2014:13:49:13.815 [26089700] cacheTimeout : [cacheTimeout{300000}]
DEBUG   02/Oct/2014:13:49:13.815 [26089700] cacheSize : [cacheSize{8}]
DEBUG   02/Oct/2014:13:49:13.815 [26089700] authType : [authType{SIMPLE}]
DEBUG   02/Oct/2014:13:49:13.815 [26089700] userName : [userName{cn=smuser,o=toyota}]
DEBUG   02/Oct/2014:13:49:13.815 [26089700] authRealm : [authRealm{}]
DEBUG   02/Oct/2014:13:49:13.815 [26089700] sslEnabled : [sslEnabled{0}]
DEBUG   02/Oct/2014:13:49:13.815 [26089700] sslCertificate : [sslCertificate{-1}]
DEBUG   02/Oct/2014:13:49:13.816 [26089700] Setting default(s) for field: cacheTimeout
DEBUG   02/Oct/2014:13:49:13.816 [26089700] Setting default(s) for field: cacheSize
DEBUG   02/Oct/2014:13:49:13.816 [26089700] In ScreenAttributeHolder.validateAttrs
ERROR   02/Oct/2014:13:52:23.114 [26089700] java exception:
javax.naming.CommunicationException: 10.11.12.13:389 [Root exception is java.net.ConnectException: Connection timed out]
    at com.sun.jndi.ldap.Connection.<init>(Connection.java:224)
    at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:136)
    at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1600)
    at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2698)
    at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:316)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:193)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:211)
    at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154)
    at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
    at javax.naming.InitialContext.init(InitialContext.java:242)
    at javax.naming.InitialContext.<init>(InitialContext.java:216)
    at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:101)
    at com.vordel.common.ldap.ContextCache$CachedContext.<init>(ContextCache.java:47)
    at com.vordel.common.ldap.ContextCache$1.factory(ContextCache.java:72)
    at com.vordel.common.ldap.ContextCache$1.factory(ContextCache.java:57)
[...]
Caused by: java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
    at java.net.Socket.connect(Socket.java:579)
    at java.net.Socket.connect(Socket.java:528)
    at java.net.Socket.<init>(Socket.java:425)
    at java.net.Socket.<init>(Socket.java:208)
    at com.sun.jndi.ldap.Connection.createSocket(Connection.java:366)
    at com.sun.jndi.ldap.Connection.<init>(Connection.java:201)
    ... 64 more

 

Changes

The "Test Connection" functionality in Policy Studio creates a connection from Policy Studio to the backend server.
It does not test the connection from the Gateway instance to the backend server.

As Policy Studio is typically running on a different host, additional firewall configurations might be necessary to allow the connection from Policy Studio to the backend server.

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