JNDI naming exception on JRE7
We are facing a problem , we have code base complied in JDK 6 . Now we are migrating to JRE-7 . Which eventually means we are running code compiled in JDK-6 with JRE -7 . Every thing is working fine apart from JNDI . We are getting following exception.
2015-05-25 09:44:41,769 ERROR ne.LdapNeNotifListener - NamingExceptionEvent recieved from ABC:
javax.naming.NamingException: LDAP response read timed out, timeout used:-1ms.
at com.sun.jndi.ldap.Connection.readReply(Connection.java:483)
at com.sun.jndi.ldap.LdapClient.getSearchReply(LdapClient.java:639)
at com.sun.jndi.ldap.LdapClient.getSearchReply(LdapClient.java:607)
at com.sun.jndi.ldap.LdapCtx.getSearchReply(LdapCtx.java:1919)
at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(LdapNamingEnumeration.java:129)
at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(LdapNamingEnumeration.java:216)
at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(LdapNamingEnumeration.java:189)
at com.sun.jndi.ldap.NamingEventNotifier.run(NamingEventNotifier.java:134)
at java.lang.Thread.run(Thread.java:745)
As we can see that time out is -1 hence infinite according to JAVA docs . Not sure what is causing problem here.
Any help would be appreciated.
I just downloaded and tested JRE version 7u80 .
Everything is working fine here . I did not see any exception .
It is JRE version below or equal 7u79 that is causing problem
Yes it works with latest JRE version 7u80. Also observed that this error occurs when dealing with bulk data only.
Has anyone noticed the same usecase ?
Could it be this issue? Oracle says fixed in 7 update 91, but I can't tell for sure. Resolution date and other backports made around the same time as your report. http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8081560
链接地址: http://www.djcxy.com/p/26468.html上一篇: 如何防止特定模板的隐式模板实例化?
下一篇: JRE7上的JNDI命名异常