My EJB3 test with SPNEGO authentication sometime fails because EJB call hangs. I see an exception in the output.log (not sure if it's related):
02:10:34,609 ERROR [SocketServerInvoker] Thread[AcceptorThread[ServerSocket[addr=/127.0.0.1,port=0,localport=3873]],5,jboss] failed to handle socket
java.io.IOException: java.lang.NegativeArraySizeException
at org.jboss.security.negotiation.net.SPNEGOServerSocket.accept(SPNEGOServerSocket.java:137)
at org.jboss.remoting.transport.socket.SocketServerInvoker.accept(SocketServerInvoker.java:1169)
at org.jboss.remoting.transport.socket.SocketServerInvoker.access$200(SocketServerInvoker.java:69)
at org.jboss.remoting.transport.socket.SocketServerInvoker$AcceptThread.run(SocketServerInvoker.java:1080)
Caused by: java.lang.NegativeArraySizeException
at org.jboss.security.negotiation.net.SPNEGOServerSocket.acceptSocket(SPNEGOServerSocket.java:181)
at org.jboss.security.negotiation.net.SPNEGOServerSocket.accept(SPNEGOServerSocket.java:132)
... 3 more
Failed build:
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eap-52-AS-testsuite-SPNEGO-jcacek/13/testReport/