Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-275

CLONE -Fix errant exception thrown in closeConnection()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • wagon-ftp
    • None

    Description

      Fix errant exception thrown in closeConnection() of the ftp wagon which is caused by calling ftp.disconnect(). Nothing wrong seems to happen in the test. But this is what we get:

      java.lang.NullPointerException
      at java.io.BufferedInputStream.read(BufferedInputStream.java:205)
      at java.io.FilterInputStream.read(FilterInputStream.java:66)
      at java.io.PushbackInputStream.read(PushbackInputStream.java:120)
      at org.apache.commons.net.io.FromNetASCIIInputStream.__read(FromNetASCIIInputStream.java:114)
      at org.apache.commons.net.io.FromNetASCIIInputStream.read(FromNetASCIIInputStream.java:209)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
      at org.apache.commons.net.telnet.TelnetInputStream.__read(TelnetInputStream.java:140)
      at org.apache.commons.net.telnet.TelnetInputStream.run(TelnetInputStream.java:464)
      at java.lang.Thread.run(Thread.java:534)

      But it seems to happen even if we don't shut down the streams so I'm not sure what's going on internally in commons-net.

      Attachments

        Activity

          People

            carlos Carlos Sanchez Gonzalez
            mb003t Marcus Bates
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: