I have a strange error in FTPTest on Windows/JDK 1.2 : java version "1.2.2" Classic VM (build JDK-1.2.2_016, native threads, symcjit)
this error does not happen with jdk 1.4 I wonder whether it comes from : - the jdk, - commons-net, - ant's FTP task Cheers, Antoine ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Buildfile: build.xml prepare: check_for_optional_packages: build: [javac] Compiling 3 source files to C:\dev\asf\ant\build\classes [copy] Copying 2 files to C:\dev\asf\ant\build\classes compile-tests: [mkdir] Created dir: C:\dev\asf\ant\build\testcases [javac] Compiling 206 source files to C:\dev\asf\ant\build\testcases [javac] Note: 6 files use or override a deprecated API. Recompile with "-deprecation" for details. [javac] 1 warning run-single-test-only: A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has occurred in : 'org/apache/commons/net/telnet/TelnetInputStream.run ()V': Interpreting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has occurred in : 'org/apache/commons/net/telnet/TelnetInputStream.__read ()I': Interpreting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has occurred in : 'org/apache/commons/net/telnet/TelnetInputStream.read ([BII)I': Interpreting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has occurred in : 'org/apache/commons/net/telnet/TelnetInputStream.read ()I': Interpreting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has occurred in : 'org/apache/commons/net/telnet/TelnetOutputStream.write (I)V': Interpreting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi [junit] Testsuite: org.apache.tools.ant.taskdefs.optional.net.FTPTest [junit] Tests run: 25, Failures: 0, Errors: 1, Time elapsed: 6,289 sec [junit] ------------- Standard Output --------------- [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] could not connect to host localhost on port 21 [junit] ------------- ---------------- --------------- [junit] Testcase: test1 took 0,371 sec [junit] Testcase: test2 took 0,33 sec [junit] Testcase: test2ButCaseInsensitive took 0,2 sec [junit] Testcase: test2bisButCaseInsensitive took 0,191 sec [junit] Testcase: test3 took 0,19 sec [junit] Testcase: testAllowSymlinks took 0,19 sec [junit] Testcase: testAlternateExcludeInclude took 0,19 sec [junit] Testcase: testAlternateIncludeExclude took 0,201 sec [junit] Testcase: testChildrenOfExcludedDirectory took 0,19 sec [junit] Testcase: testExcludeHasPrecedence took 0,19 sec [junit] Testcase: testExcludeOneFile took 0,191 sec [junit] Testcase: testFileSymlink took 0,18 sec [junit] Testcase: testFullPathMatchesCaseInsensitive took 0,19 sec [junit] Testcase: testFullPathMatchesCaseSensitive took 0,19 sec [junit] Testcase: testFullpathDiffersInCaseScanningInsensitive took 0,191 sec [junit] Testcase: testFullpathDiffersInCaseScanningSensitive took 0,19 sec [junit] Testcase: testGetFollowSymlinksFalse took 0,28 sec [junit] Testcase: testGetFollowSymlinksTrue took 0,191 sec [junit] Testcase: testGetWithSelector took 0,32 sec [junit] Caused an ERROR [junit] current thread not owner [junit] java.lang.IllegalMonitorStateException: current thread not owner [junit] at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:444) [junit] at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:472) [junit] at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:521) [junit] at org.apache.commons.net.ftp.FTP.quit(FTP.java:734) [junit] at org.apache.commons.net.ftp.FTPClient.logout(FTPClient.java:614) [junit] at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2054) [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java, Compiled Code) [junit] at org.apache.tools.ant.Task.perform(Task.java, Compiled Code) [junit] at org.apache.tools.ant.Target.execute(Target.java, Compiled Code) [junit] at org.apache.tools.ant.Target.performTasks(Target.java, Compiled Code) [junit] at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled Code) [junit] at org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:273) [junit] at org.apache.tools.ant.BuildFileTest.expectLogContaining(BuildFileTest.java:128) [junit] at org.apache.tools.ant.taskdefs.optional.net.FTPTest.testGetWithSelector(FTPTest.java, Compiled Code) [junit] at java.lang.reflect.Method.invoke(Native Method) [junit] at junit.framework.TestCase.runTest(TestCase.java:154) [junit] at junit.framework.TestCase.runBare(TestCase.java:127) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:118) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:208) [junit] at junit.framework.TestSuite.run(TestSuite.java, Compiled Code) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java, Compiled Code) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java, Compiled Code) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:645) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java, Compiled Code) [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java, Compiled Code) [junit] at org.apache.tools.ant.Task.perform(Task.java, Compiled Code) [junit] at org.apache.tools.ant.Target.execute(Target.java, Compiled Code) [junit] at org.apache.tools.ant.Target.performTasks(Target.java, Compiled Code) [junit] at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled Code) [junit] at org.apache.tools.ant.Project.executeTargets(Project.java, Compiled Code) [junit] at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code) [junit] at org.apache.tools.ant.Main.startAnt(Main.java, Compiled Code) [junit] at org.apache.tools.ant.launch.Launcher.run(Launcher.java, Compiled Code) [junit] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:85) [junit] Testcase: testGetWithSelectorTestcase: testOrderOfIncludePatternsIrrelevant took 1,062 sec [junit] Testcase: testParentDiffersInCaseScanningInsensitive took 0,18 sec [junit] Testcase: testParentDiffersInCaseScanningSensitive took 0,18 sec [junit] Testcase: testPatternsDifferInCaseScanningInsensitive took 0,271 sec [junit] Testcase: testPatternsDifferInCaseScanningSensitive took 0,18 sec [junit] Testcase: testProhibitSymlinks took 0,18 sec [junit] TEST org.apache.tools.ant.taskdefs.optional.net.FTPTest FAILED run-single-test: BUILD SUCCESSFUL