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

TCP socket input and output streams fail to observe TCP half-close semantics

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.1.6
    • core-libs
    • None
    • generic
    • solaris_2.6

      If I try to obtain a TCP socket's output stream after I close its input stream,
      I get a null pointer exception. This is behaviour that I believe should not be
      occurring.

      To reproduce this problem, run the included test program. It should barf
      as follows:

      java.lang.NullPointerException
      at java.io.FileInputStream.<init>(FileInputStream.java)
      at java.net.SocketInputStream.<init>(SocketInputStream.java:50)
      at java.net.PlainSocketImpl.getInputStream(PlainSocketImpl.java:394)
      at java.net.Socket.getInputStream(Socket.java:290)
      at test.suck.main(suck.java:18)


            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: