That's strange (see below) - I noticed you are using Java 8 to compile whereas we use Java 7. It should not matter - e.g., I also use (sometimes) Java 8 and have had no problems.
- Have you tried running only this test (see below) ? - Maybe your host is too "weak" or too busy and you are hitting some internal JSch timeout ? Anyway, here is the result of running the test with Java 7: lgoldstein@ubuntu-14:~/mina-sshd/sshd-core$ mvn -Dtest=PortForwardingTest#testLocalForwarding clean test [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Apache Mina SSHD :: Core 1.0.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ sshd-core --- [INFO] Deleting /home/lgoldstein/mina-sshd/sshd-core/target [INFO] [INFO] --- build-helper-maven-plugin:1.9.1:remove-project-artifact (remove-previous-artifact) @ sshd-core --- [INFO] /home/lgoldstein/.m2/repository/org/apache/sshd/sshd-core/1.0.0 removed. [INFO] [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-versions) @ sshd-core --- [INFO] [INFO] --- apache-rat-plugin:0.11:check (check-apache-license-header) @ sshd-core --- [INFO] 51 implicit excludes (use -debug for more details). [INFO] Exclude: **/*.iml [INFO] Exclude: src/docs/** [INFO] Exclude: src/test/resources/** [INFO] Exclude: **/stty-output-*.txt [INFO] Exclude: **/big-msg.txt [INFO] Exclude: sshd-sftp/** [INFO] Exclude: sshd-pam/** [INFO] Exclude: .metadata/** [INFO] Exclude: .recommenders/** [INFO] Exclude: RemoteSystemsTempFiles/** [INFO] Exclude: .project [INFO] Exclude: .classpath [INFO] Exclude: .springBeans [INFO] Exclude: .settings/** [INFO] 585 resources included (use -debug for more details) Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Compiler warnings: WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.' Warning: org.apache.xerces.parsers.SAXParser: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized. Warning: org.apache.xerces.parsers.SAXParser: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized. Warning: org.apache.xerces.parsers.SAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. [INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 approved: 585 licence. [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ sshd-core --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sshd-core --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ sshd-core --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 455 source files to /home/lgoldstein/mina-sshd/sshd-core/target/classes [INFO] /home/lgoldstein/mina-sshd/sshd-core/src/main/java/org/apache/sshd/common/util/CloseableUtils.java: /home/lgoldstein/mina-sshd/sshd-core/src/main/java/org/apache/sshd/common/util/CloseableUtils.java uses unchecked or unsafe operations. [INFO] /home/lgoldstein/mina-sshd/sshd-core/src/main/java/org/apache/sshd/common/util/CloseableUtils.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- animal-sniffer-maven-plugin:1.14:check (check-java-api) @ sshd-core --- [INFO] Checking unresolved references to org.codehaus.mojo.signature:java17:1.0 [INFO] [INFO] --- maven-bundle-plugin:2.5.3:manifest (bundle-manifest) @ sshd-core --- [INFO] [INFO] --- maven-checkstyle-plugin:2.15:check (verify-style) @ sshd-core --- [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ sshd-core --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 33 resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ sshd-core --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 119 source files to /home/lgoldstein/mina-sshd/sshd-core/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ sshd-core --- [INFO] Surefire report directory: /home/lgoldstein/mina-sshd/sshd-core/target/surefire-reports-nio2 [INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider [INFO] parallel='none', perCoreThreadCount=false, threadCount=1, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.sshd.PortForwardingTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.79 sec - in org.apache.sshd.PortForwardingTest Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (mina) @ sshd-core --- [INFO] Surefire report directory: /home/lgoldstein/mina-sshd/sshd-core/target/surefire-reports-mina [INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider [INFO] parallel='none', perCoreThreadCount=false, threadCount=1, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.sshd.PortForwardingTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.619 sec - in org.apache.sshd.PortForwardingTest Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (jce) @ sshd-core --- [INFO] Surefire report directory: /home/lgoldstein/mina-sshd/sshd-core/target/surefire-reports-jce [INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider [INFO] parallel='none', perCoreThreadCount=false, threadCount=1, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.sshd.PortForwardingTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.75 sec - in org.apache.sshd.PortForwardingTest Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:17 min [INFO] Finished at: 2015-09-03T07:30:28+03:00 [INFO] Final Memory: 32M/110M [INFO] ------------------------------------------------------------------------ -----Original Message----- From: Emmanuel Lécharny [mailto:elecha...@gmail.com] Sent: Thursday, September 3, 2015 02:17 To: dev@mina.apache.org Subject: Re: [VOTE] Release SSHD 1.0.0 (2nd try) Le 02/09/15 14:51, Lyor Goldstein a écrit : > +1 (if developers can vote for the very code they wrote... :-)) I tested the code (from git and from the published package, and I get an error : ... Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.744 sec <<< FAILURE! - in org.apache.sshd.PortForwardingTest testLocalForwarding(org.apache.sshd.PortForwardingTest) Time elapsed: 0.156 sec <<< ERROR! java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at java.net.Socket.<init>(Socket.java:434) at java.net.Socket.<init>(Socket.java:211) at org.apache.sshd.PortForwardingTest.testLocalForwarding(PortForwardingTest.java:332) ... Results : Tests in error: PortForwardingTest.testLocalForwarding:332 » Connect Connection refused Tests run: 441, Failures: 0, Errors: 1, Skipped: 12 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Mina SSHD ................................... SUCCESS [ 24.408 s] [INFO] Apache Mina SSHD :: Core ........................... FAILURE [02:46 min] [INFO] Apache Mina SSHD :: Git ............................ SKIPPED [INFO] Apache Mina SSHD :: Assembly ....................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:11 min [INFO] Finished at: 2015-09-03T01:15:16+02:00 [INFO] Final Memory: 39M/247M [INFO] ------------------------------------------------------------------------