Test failures on org.apache.commons.net.io.FromNetASCIIInputStream.<init>
-------------------------------------------------------------------------

                 Key: FTPSERVER-121
                 URL: https://issues.apache.org/jira/browse/FTPSERVER-121
             Project: FtpServer
          Issue Type: Bug
    Affects Versions: 1.0-M1
            Reporter: Niklas Gustavsson
            Assignee: Niklas Gustavsson
             Fix For: 1.0-M2


Resported by Peter Schellenberg.

FtpServer fails to build on some environment due to an NPE thrown by 
commons-net in the constructor of FromNetASCIIInputStream. Here's an example 
stack trace:
-------------------------------------------------------------------------------

Test set: org.apache.ftpserver.ftplet.FtpLetThrowFtpExceptionTest

-------------------------------------------------------------------------------

Tests run: 18, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.266 sec <<< 
FAILURE!

testExceptionDuringDownloadEnd(org.apache.ftpserver.ftplet.FtpLetThrowFtpExceptionTest)
  Time elapsed: 0.062 sec  <<< ERROR!

java.lang.NullPointerException

        at 
org.apache.commons.net.io.FromNetASCIIInputStream.<init>(FromNetASCIIInputStream.java:74)

        at 
org.apache.commons.net.ftp.FTPClient.retrieveFile(FTPClient.java:1282)

        at 
org.apache.ftpserver.ftplet.FtpLetReturnDisconnectTest.testExceptionDuringDownloadEnd(FtpLetReturnDisconnectTest.java:325)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at junit.framework.TestCase.runTest(TestCase.java:164)

        at junit.framework.TestCase.runBare(TestCase.java:130)

        at junit.framework.TestResult$1.protect(TestResult.java:106)

        at junit.framework.TestResult.runProtected(TestResult.java:124)

        at junit.framework.TestResult.run(TestResult.java:109)

        at junit.framework.TestCase.run(TestCase.java:120)

        at junit.framework.TestSuite.runTest(TestSuite.java:230)

        at junit.framework.TestSuite.run(TestSuite.java:225)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)

        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)

        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)

        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)

        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to