Why is JBoss throwing a 'java.net.SocketTimeoutException: Receive timed out' error during SPNEGO based authentication?

Solution Verified - Updated -

Issue

  • Why is JBoss throwing a 'java.net.SocketTimeoutException: Receive timed out' error during SPNEGO based authentication?
14:00:12,248 ERROR [org.jboss.security.negotiation.toolkit.SecurityDomainTestServlet] (http-imaserver/127.0.0.1:8443-1) testDomain Failed: javax.security.auth.login.LoginException: Receive timed out                                   
        at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:700) [rt.jar:1.6.0_31]                                                                                                                      
        at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:542) [rt.jar:1.6.0_31]                                                                                                                                      
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_31]                                                                                                                                                       
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_31]                                                                                                                                     
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_31]                                                                                                                             
        at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_31]                                                                                                                                                                  
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769) [rt.jar:1.6.0_31]                                                                                                                                              
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) [rt.jar:1.6.0_31]                                                                                                                                          
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683) [rt.jar:1.6.0_31]                                                                                                                                               
        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_31]                                                                                                                                                        
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) [rt.jar:1.6.0_31]                                                                                                                                          
        at javax.security.auth.login.LoginContext.login(LoginContext.java:579) [rt.jar:1.6.0_31]                                                                                                                                               
        at org.jboss.security.negotiation.toolkit.SecurityDomainTestServlet.testDomain(SecurityDomainTestServlet.java:108) [classes:]                                                                                                          
        at org.jboss.security.negotiation.toolkit.SecurityDomainTestServlet.doGet(SecurityDomainTestServlet.java:77) [classes:]                                                                                                                
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.1.Final-redhat-1.jar:1.0.1.Final-redhat-1]                                                                                             
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final-redhat-1.jar:1.0.1.Final-redhat-1]                                                                                             
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.16.Final-redhat-1.jar:]                                                                                             
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.16.Final-redhat-1.jar:]                                                                                                     
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.16.Final-redhat-1.jar:]                                                                                                           
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.16.Final-redhat-1.jar:]                                                                                                           
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397) [jbossweb-7.0.16.Final-redhat-1.jar:]                                                                                                        
        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]                                                             
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.16.Final-redhat-1.jar:]                                                                                                                 
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.16.Final-redhat-1.jar:]                                                                                                                 
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.16.Final-redhat-1.jar:]                                                                                                             
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.16.Final-redhat-1.jar:]                                                                                                                   
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.16.Final-redhat-1.jar:]                                                                                                                    
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) [jbossweb-7.0.16.Final-redhat-1.jar:]                                                                                              
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) [jbossweb-7.0.16.Final-redhat-1.jar:]                                                                                                                       
        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]                                                                                                                                                                             
Caused by: java.net.SocketTimeoutException: Receive timed out                                                                                                                                                                                  
        at java.net.PlainDatagramSocketImpl.receive0(Native Method) [rt.jar:1.6.0_31]                                                                                                                                                          
        at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:145) [rt.jar:1.6.0_31]                                                                                                                                        
        at java.net.DatagramSocket.receive(DatagramSocket.java:725) [rt.jar:1.6.0_31]                                                                                                                                                          
        at sun.security.krb5.internal.UDPClient.receive(UDPClient.java:77) [rt.jar:1.6.0_31]                                                                                                                                                   
        at sun.security.krb5.KrbKdcReq$KdcCommunication.run(KrbKdcReq.java:388) [rt.jar:1.6.0_31]                                                                                                                                              
        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_31]                                                                                                                                                        
        at sun.security.krb5.KrbKdcReq.send(KrbKdcReq.java:296) [rt.jar:1.6.0_31]                                                                                                                                                              
        at sun.security.krb5.KrbKdcReq.send(KrbKdcReq.java:202) [rt.jar:1.6.0_31]                                                                                                                                                              
        at sun.security.krb5.KrbKdcReq.send(KrbKdcReq.java:175) [rt.jar:1.6.0_31]                                                                                                                                                              
        at sun.security.krb5.KrbAsReq.send(KrbAsReq.java:431) [rt.jar:1.6.0_31]                                                                                                                                                                
        at sun.security.krb5.Credentials.sendASRequest(Credentials.java:400) [rt.jar:1.6.0_31]                                                                                                                                                 
        at sun.security.krb5.Credentials.acquireTGT(Credentials.java:350) [rt.jar:1.6.0_31]                                                                                                                                                    
        at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:672) [rt.jar:1.6.0_31]                                                                                                                      
        ... 29 more                                                                                                         

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content