waiting on a com.sun.jndi.ldap.LdapRequest
Scott Battaglia
scott.battaglia at gmail.com
Wed Aug 29 13:30:32 EDT 2007
It would appear that the LDAP server is not always responding to a read
request. You can try setting a read timeout on the connection.
-Scott
On 8/29/07, Holger Koch <hoko at gmx.de> wrote:
>
> Hi,
>
> i have a problem with CAS and ldaps. It works, but from time to time
> (maybe
> every 3 or 4 time) it hangs. It seems that the problem does not occured
> with
> LDAP instead of LDAPS.
> I configured log4j for DEBUG output and the last entry in this case is:
>
> 2007-08-29 14:26:22,722 DEBUG [
> org.jasig.cas.web.flow.InitialFlowSetupAction] -
> Action 'InitialFlowSetupAction' beginning execution
> 2007-08-29 14:26:22,722 DEBUG [
> org.jasig.cas.web.flow.InitialFlowSetupAction] -
> Placing service in FlowScope: http://malabo.unix.db.de/nagios
> 2007-08-29 14:26:22,722 DEBUG [
> org.jasig.cas.web.flow.InitialFlowSetupAction] -
> Action 'InitialFlowSetupAction' completed execution; result is 'success'
> 2007-08-29 14:26:22,722 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Action
> 'AuthenticationViaFormAction' beginning execution
> 2007-08-29 14:26:22,722 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Executing setupForm
> 2007-08-29 14:26:22,722 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Creating new form
> object
> with name 'credentials'
> 2007-08-29 14:26:22,723 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Creating new
> instance of
> form object class [class
> org.jasig.cas.authentication.principal.UsernamePasswordCredentials]
> 2007-08-29 14:26:22,723 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Putting form object
> of
> type [class
> org.jasig.cas.authentication.principal.UsernamePasswordCredentials]
> in scope Flow with name 'credentials'
> 2007-08-29 14:26:22,723 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Creating new form
> errors
> for object with name 'credentials'
> 2007-08-29 14:26:22,723 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - No property editor
> registrar set, no custom editors to register
> 2007-08-29 14:26:22,723 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Putting form errors
> instance in scope Flash
> 2007-08-29 14:26:22,723 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Action
> 'AuthenticationViaFormAction' completed execution; result is 'success'
> 2007-08-29 14:26:22,723 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Action
> 'AuthenticationViaFormAction' beginning execution
> 2007-08-29 14:26:22,723 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Action
> 'AuthenticationViaFormAction' completed execution; result is 'success'
> 2007-08-29 14:26:24,791 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Action
> 'AuthenticationViaFormAction' beginning execution
> 2007-08-29 14:26:24,791 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Executing bind
> 2007-08-29 14:26:24,791 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Found existing form
> object with name 'credentials' of type [class
> org.jasig.cas.authentication.principal.UsernamePasswordCredentials] in
> scope Flow
> 2007-08-29 14:26:24,791 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - No property editor
> registrar set, no custom editors to register
> 2007-08-29 14:26:24,791 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Binding allowed
> request
> parameters in map['lt' ->
>
> '_c4DD9AC37-AD54-A540-274C-72D80BA799EA_k338E905B-9AE8-3C47-5B54-BC72107C1202',
> 'service' -> 'http://malabo.unix.db.de/nagios', '_eventId' -> 'submit',
> 'password' -> '1111', 'username' -> 'holgerkoch'] to form object with name
> 'credentials', pre-bind formObject toString = null
> 2007-08-29 14:26:24,791 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - (Any field is
> allowed)
> 2007-08-29 14:26:24,792 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Binding completed
> for
> form object with name 'credentials', post-bind formObject toString =
> holgerkoch
> 2007-08-29 14:26:24,792 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - There are [0]
> errors,
> details: []
> 2007-08-29 14:26:24,792 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Executing
> validation
> 2007-08-29 14:26:24,792 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Invoking validator
> org.jasig.cas.validation.UsernamePasswordCredentialsValidator at 177060f
> 2007-08-29 14:26:24,792 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Validation
> completed for
> form object
> 2007-08-29 14:26:24,792 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - There are [0]
> errors,
> details: []
> 2007-08-29 14:26:24,792 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Putting form errors
> instance in scope Flash
> 2007-08-29 14:26:24,792 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Action
> 'AuthenticationViaFormAction' completed execution; result is 'success'
> 2007-08-29 14:26:24,792 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Action
> 'AuthenticationViaFormAction' beginning execution
> 2007-08-29 14:26:24,792 DEBUG
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - Found existing form
> object with name 'credentials' of type [class
> org.jasig.cas.authentication.principal.UsernamePasswordCredentials] in
> scope Flow
>
>
>
> then i make a threaddump and i see this:
>
>
>
> "http-8443-Processor22" daemon prio=1 tid=0x092c2d58 nid=0x724d in
> Object.wait()
> [0x56429000..0x5642aea0]
> at java.lang.Object.wait(Native Method)
> - waiting on <0x5237bda8> (a com.sun.jndi.ldap.LdapRequest)
> at com.sun.jndi.ldap.Connection.readReply(Connection.java:418)
> - locked <0x5237bda8> (a com.sun.jndi.ldap.LdapRequest)
> at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:340)
> - locked <0x523657c0> (a com.sun.jndi.ldap.LdapClient)
> at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:192)
> - locked <0x523657c0> (a com.sun.jndi.ldap.LdapClient)
> at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2637)
> at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
> at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(
> LdapCtxFactory.java:175)
> at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(
> LdapCtxFactory.java:193)
> at
> com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java
> :136)
> at
> com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
>
>
> Did anybody have a hint for me?
>
>
> best regards
>
> Holger Koch
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
--
-Scott Battaglia
LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070829/f0a6e504/attachment.html
More information about the cas
mailing list