Skip to content

Instantly share code, notes, and snippets.

@tophyr
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tophyr/8950873 to your computer and use it in GitHub Desktop.
Save tophyr/8950873 to your computer and use it in GitHub Desktop.
parallels@vulcan:~$ cd Projects/okhttp/
parallels@vulcan:~/Projects/okhttp$ ls
benchmarks checkstyle.xml CONTRIBUTING.md LICENSE.txt okcurl okhttp-apache pom.xml samples
CHANGELOG.md concurrency.md deploy_website.sh mockwebserver okhttp okhttp-protocols README.md website
parallels@vulcan:~/Projects/okhttp$ mvn clean verify
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.squareup.okhttp:benchmarks:jar:2.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:exec-maven-plugin is missing. @ line 68, column 13
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] OkHttp (Parent)
[INFO] OkHttp SPDY and HTTP/2.0 internals
[INFO] MockWebServer
[INFO] OkHttp
[INFO] OkHttp Apache HttpClient
[INFO] OkCurl
[INFO] Samples (Parent)
[INFO] Sample: Guide
[INFO] Sample: Simple Client
[INFO] Sample: Static Server
[INFO] Benchmarks
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OkHttp (Parent) 2.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ parent ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ parent ---
[INFO]
[INFO] --- animal-sniffer-maven-plugin:1.9:check (default) @ parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.1
[INFO]
[INFO] --- maven-checkstyle-plugin:2.10:checkstyle (default) @ parent ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OkHttp SPDY and HTTP/2.0 internals 2.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ okhttp-protocols ---
[INFO] Deleting file set: /home/parallels/Projects/okhttp/okhttp-protocols/target (included: [**], excluded: [])
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ okhttp-protocols ---
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ okhttp-protocols ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/parallels/Projects/okhttp/okhttp-protocols/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ okhttp-protocols ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 33 source files to /home/parallels/Projects/okhttp/okhttp-protocols/target/classes
[WARNING] /home/parallels/Projects/okhttp/okhttp-protocols/src/main/java/com/squareup/okhttp/internal/Platform.java: /home/parallels/Projects/okhttp/okhttp-protocols/src/main/java/com/squareup/okhttp/internal/Platform.java uses unchecked or unsafe operations.
[WARNING] /home/parallels/Projects/okhttp/okhttp-protocols/src/main/java/com/squareup/okhttp/internal/Platform.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) @ okhttp-protocols ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/parallels/Projects/okhttp/okhttp-protocols/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ okhttp-protocols ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 14 source files to /home/parallels/Projects/okhttp/okhttp-protocols/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ okhttp-protocols ---
[INFO] Surefire report directory: /home/parallels/Projects/okhttp/okhttp-protocols/target/surefire-reports
[INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider
[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.squareup.okhttp.internal.bytes.GzipSourceTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in com.squareup.okhttp.internal.bytes.GzipSourceTest
Running com.squareup.okhttp.internal.bytes.OkBufferTest
Tests run: 48, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec - in com.squareup.okhttp.internal.bytes.OkBufferTest
Running com.squareup.okhttp.internal.bytes.InflaterSourceTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.076 sec - in com.squareup.okhttp.internal.bytes.InflaterSourceTest
Running com.squareup.okhttp.internal.BitArrayTest
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec - in com.squareup.okhttp.internal.BitArrayTest
Running com.squareup.okhttp.internal.spdy.HpackDraft05Test
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec - in com.squareup.okhttp.internal.spdy.HpackDraft05Test
Running com.squareup.okhttp.internal.spdy.Http20Draft09Test
Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.066 sec - in com.squareup.okhttp.internal.spdy.Http20Draft09Test
Running com.squareup.okhttp.internal.spdy.Spdy3Test
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 sec - in com.squareup.okhttp.internal.spdy.Spdy3Test
Running com.squareup.okhttp.internal.spdy.SpdyConnectionTest
Tests run: 51, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.745 sec <<< FAILURE! - in com.squareup.okhttp.internal.spdy.SpdyConnectionTest
clientSendsEmptyDataServerDoesntSendWindowUpdate(com.squareup.okhttp.internal.spdy.SpdyConnectionTest) Time elapsed: 0.008 sec <<< ERROR!
java.net.SocketException: Connection reset
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118)
at java.net.SocketOutputStream.write(SocketOutputStream.java:138)
at java.io.DataOutputStream.writeInt(DataOutputStream.java:199)
at com.squareup.okhttp.internal.spdy.Spdy3$Writer.sendDataFrame(Spdy3.java:413)
at com.squareup.okhttp.internal.spdy.Spdy3$Writer.data(Spdy3.java:405)
at com.squareup.okhttp.internal.spdy.SpdyConnection.writeData(SpdyConnection.java:251)
at com.squareup.okhttp.internal.spdy.SpdyStream$SpdyDataOutputStream.close(SpdyStream.java:623)
at com.squareup.okhttp.internal.spdy.SpdyConnectionTest.clientSendsEmptyDataServerDoesntSendWindowUpdate(SpdyConnectionTest.java:1149)
at com.squareup.okhttp.internal.spdy.SpdyConnectionTest.clientSendsEmptyDataServerDoesntSendWindowUpdate(SpdyConnectionTest.java:1127)
Running com.squareup.okhttp.internal.spdy.SettingsTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in com.squareup.okhttp.internal.spdy.SettingsTest
Running com.squareup.okhttp.internal.spdy.HuffmanTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in com.squareup.okhttp.internal.spdy.HuffmanTest
Running com.squareup.okhttp.internal.spdy.ByteArrayPoolTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in com.squareup.okhttp.internal.spdy.ByteArrayPoolTest
Running com.squareup.okhttp.internal.ByteStringTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in com.squareup.okhttp.internal.ByteStringTest
Results :
Tests in error:
SpdyConnectionTest.clientSendsEmptyDataServerDoesntSendWindowUpdate:1127->clientSendsEmptyDataServerDoesntSendWindowUpdate:1149 » Socket
Tests run: 188, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] OkHttp (Parent) ................................... SUCCESS [2.137s]
[INFO] OkHttp SPDY and HTTP/2.0 internals ................ FAILURE [7.210s]
[INFO] MockWebServer ..................................... SKIPPED
[INFO] OkHttp ............................................ SKIPPED
[INFO] OkHttp Apache HttpClient .......................... SKIPPED
[INFO] OkCurl ............................................ SKIPPED
[INFO] Samples (Parent) .................................. SKIPPED
[INFO] Sample: Guide ..................................... SKIPPED
[INFO] Sample: Simple Client ............................. SKIPPED
[INFO] Sample: Static Server ............................. SKIPPED
[INFO] Benchmarks ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.685s
[INFO] Finished at: Tue Feb 11 22:21:47 PST 2014
[INFO] Final Memory: 28M/310M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project okhttp-protocols: There are test failures.
[ERROR]
[ERROR] Please refer to /home/parallels/Projects/okhttp/okhttp-protocols/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :okhttp-protocols
parallels@vulcan:~/Projects/okhttp$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
parallels@vulcan:~/Projects/okhttp$ mvn --version
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-29-generic", arch: "amd64", family: "unix"
parallels@vulcan:~/Projects/okhttp$ uname -a
Linux vulcan 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
parallels@vulcan:~/Projects/okhttp$ git status
# On branch master
nothing to commit (working directory clean)
parallels@vulcan:~/Projects/okhttp$ git log -1 --oneline
545807e Merge pull request #523 from square/jwilson_0211_okbuffer_in_http2_source
parallels@vulcan:~/Projects/okhttp$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment