Skip to main content

External LDAP connection randomly closing

7 replies [Last post]
Anonymous

Does anyone have any idea why glassfish would randomly close and external
ldap connection? The application runs fine for a couple hours and then the
connection gets closed? Is there a property I can set to reestablish the
connection if it does get closed?

________________

Thanks and regards

Kenneth Clark

Solutions Engineer

ShadowLogo.png

Tel: 27 (0) 11 679 3075

Fax: 27 (0) 86 647 4819

Mobile: 27 (0) 84 583 1348

Email: HYPERLINK
"mailto:kenneth.clark@skyetech.co.za"kenneth.clark@skyetech.co.za

Website: http://www.skyetech.co.za

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.518 / Virus Database: 269.21.7/1322 - Release Date: 2008/03/09
12:17

[att1.html]
[image001.png]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kumarjayanti
Offline
Joined: 2003-12-10
Points: 0

Which version of GF are you using ?.

It does not appear there are any default timeout set in the code. So can you tell me how to reproduce the problem. Is there a pattern to this in terms of number of hours after which the conn is closed or is it truly random as you indicate .

chrys
Offline
Joined: 2008-06-04
Points: 0

I am running Glassfish-v2ur2 or Sun Java System Application Server 9.1_02 (build b04-fcs)

I don't know the exact amount of time it takes. Probably around an hour or so.

I get the following exception when I try to use the connection. The only way to get it back is to restart the app server.

javax.naming.CommunicationException: connection closed [Root exception is java.io.IOException: connection closed];

Caused by: java.io.IOException: connection closed
at com.sun.jndi.ldap.LdapClient.ensureOpen(LdapClient.java:1558)
at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:504)
at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1944)

kumarjayanti
Offline
Joined: 2003-12-10
Points: 0

A google search indicates that this is a very common problem with several other vendors as well...
Please file an issue on GlassFish. I will consult the LDAP folks to see how this needs to be handled.

Thanks.

chrys
Offline
Joined: 2008-06-04
Points: 0
chrys
Offline
Joined: 2008-06-04
Points: 0

I am having the same exact problem. Has anyone come up with a solution?

Thanks
Chrys

ratnfr10
Offline
Joined: 2012-10-08
Points: 0

chrys wrote:
I am having the same exact problem. Has anyone come up with a solution?

Thanks
Chrys

Hi, I have the same problem with an external LDAP (>only with an external server).
Do you find a solution or could you give us any advices ?

Thank you in advance
FX

rsoika
Offline
Joined: 2006-12-09
Points: 0

Yes I also have now the problem on GlassFish 3.1.2 (Win32) with MS Active Directory