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

sun.net.www.http null pointer exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.0
    • 1.2.0
    • core-libs
    • None
    • 1.2beta2
    • sparc
    • solaris_2.5
    • Not verified

      This bug appears on jdk1.2, does not appear on jdk1.1.4. I am running a complex test suite (applet attack test suite). On win95 I receive the following exception :
      java.lang.NullPointerException
      at sun.net.www.http.ClientVector.run(KeepAliveCache.java:235)
      at java.lang.Thread.run(Thread.java:472)
      On Solaris, the test suite hangs (appletviewer window opens, starts some tests, and stops)

      I suspect that the someone inserted a null into the following array:
      (from KeepAliveCache.java)
             for (int i = 0; i < size(); i++) {
                  h = (HttpClient) elementAt(i);
                  h.closeServer();
       

      When I tried to simplify the test case, in order to be more specific about the exception, the exception did not occur.

      I am willing to share the test case. Let me know if required....

            brenaudsunw Benjamin Renaud (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: