Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6992196

Metro / WCF / NTLM gets HTTP/1.1 401 Unauthorized from Java after 4000 successful tries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 6u21
    • Fix Version/s: 6u21
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows

      Backports

        Description

        This customer is using our Glassfish AS with Metro and uses Windows NTLM http authentication.
        They have a WCF hosted web service that requires NTLM authentication;
        They can hit it many times (>80k) from Linux but
        after ~4000 attempts on Windows clients, it gives a Null Pointer Exception;


        They defined com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true and got

        HTTP/1.1 401 Unauthorized
        Content-Length: 0
        Date: Fri, 20 Aug 2010 17:19:22 GMT
        Server: Microsoft-HTTPAPI/1.0
        WWW-Authenticate: NTLM
        --------------------
        Exception in thread "main" com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 401: Unauthorized
                        at com.sun.xml.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:261)
                        at com.sun.xml.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:210)
                        at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:172)
                        at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:95)
                        at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:105)
                        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
                        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
                        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
                        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
                        at com.sun.xml.ws.client.Stub.process(Stub.java:319)
                        at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:157)
                        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
                        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
                        at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:140)
                        at $Proxy38.test(Unknown Source)
                        at CalculatorTest.wcf(CalculatorTest.java:41)

        They have tested the Client on WinXP Prof SP2, Windows 7,Fedora and Redhat Enterprise - the Server on WinXP Prof SP2, Windows 7 and Windows server 2003
        They have tried a number of Glassfish versions including the latest
         ( https://metro.dev.java.net/2.0.1/ June 21 )

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                robm Robert Mckenna
                Reporter:
                rabarker Rich Barker
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: