Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-9843

JBoss Negotiation - SPNEGOServerSocket throws NegativeArraySizeException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • TBD EAP 5
    • EAP_EWP 5.2.0 ER2
    • Security
    • None
    • Hide
      • get the EAP sources
      • apply the patch with SPNEGO tests
      • build the EAP (with -Dunsecure.build=true property)
      • build and run testsuite (Ant target "tests-jboss-negotiation")
      unzip -q jboss-eap-src-5.2.0-ER2.zip
      cd jboss-eap-5.2-src/jboss-as
      patch -p0 -i /tmp/eap52-spnego-120824.patch
      cd thirdparty
      rm -r */ *.ent
      cd ../build
      ./build.sh -Dbuild.unsecure=true clean main
      cd ../testsuite
      ./build.sh clean main tests-jboss-negotiation
      
      Show
      get the EAP sources apply the patch with SPNEGO tests build the EAP (with -Dunsecure.build=true property) build and run testsuite (Ant target "tests-jboss-negotiation") unzip -q jboss-eap-src-5.2.0-ER2.zip cd jboss-eap-5.2-src/jboss-as patch -p0 -i /tmp/eap52-spnego-120824.patch cd thirdparty rm -r */ *.ent cd ../build ./build.sh -Dbuild.unsecure= true clean main cd ../testsuite ./build.sh clean main tests-jboss-negotiation
    • Not Required
    • NEW

    Description

      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/

      Attachments

        1. dev07-jstack-JUnitTestRunner-1.txt
          10 kB
        2. dev07-jstack-Main-1.txt
          30 kB
        3. eap52-spnego-120824.patch
          156 kB
        4. eap52-spnego-121105.patch
          157 kB
        5. negotiation-log.zip
          227 kB

        Activity

          People

            Unassigned Unassigned
            josef.cacek@gmail.com Josef Cacek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: