Skip to content

Instantly share code, notes, and snippets.

@mateor
Created November 20, 2015 18:48
Show Gist options
  • Save mateor/3a4657a459215c3ef144 to your computer and use it in GitHub Desktop.
Save mateor/3a4657a459215c3ef144 to your computer and use it in GitHub Desktop.
class file for org.apache.thrift.TBase not found.
mateo:pants mateo$ git log
commit 3484a8f26dac7177097b394a765649791a03ba43
Author: Matt Olsen <[email protected]>
Date: Fri Nov 20 10:23:31 2015 -0800
Isolate .pex dir
Ensure that we don't interfere with the users .pex directory in case
they use pex outside of pants.
* Test that updates no longer update users $HOME/.pex
remove debug print
Testing Done:
https://travis-ci.org/pantsbuild/pants/builds/91443543
https://travis-ci.org/pantsbuild/pants/builds/92111169 [green]
Bugs closed: 2541, 2572
Reviewed at https://rbcommons.com/s/twitter/r/3135/
commit d7abc6e7e4ad3571d7ada8b007b11df83ca04eeb
Author: Peiyu Wang <[email protected]>
Date: Thu Nov 19 18:18:29 2015 -0800
Group cache hits/misses by their task names
mateo:pants mateo$ ./pants compile examples/tests/java::
INFO] Detected git repository at /Users/mateo/dev/pants on branch master
18:29:08 00:00 [main]
See a report at: http://localhost:49879/run/pants_run_2015_11_20_18_29_08_266_4af1419777ad4f3daa4327a871447119
18:29:08 00:00 [bootstrap]
18:29:08 00:00 [setup]
18:29:08 00:00 [parse]
Executing tasks in goals: bootstrap -> imports -> unpack-jars -> deferred-sources -> jvm-platform-validate -> gen -> resolve -> resources -> compile
18:29:08 00:00 [bootstrap]
18:29:08 00:00 [bootstrap-jvm-tools]
18:29:08 00:00 [imports]
18:29:08 00:00 [ivy-imports]
Invalidated 2 targets.
18:29:08 00:00 [ivy-resolve]
18:29:09 00:01 [unpack-jars]
18:29:09 00:01 [unpack-jars]
18:29:09 00:01 [unpack-libs]
18:29:09 00:01 [deferred-sources]
18:29:09 00:01 [deferred-sources]
18:29:09 00:01 [jvm-platform-validate]
18:29:09 00:01 [jvm-platform-validate]
Invalidated 12 targets.
18:29:09 00:01 [gen]
18:29:09 00:01 [thrift]
Invalidated 2 targets.INFO] Attempting to fetch thrift binary from: https://dl.bintray.com/pantsbuild/bin/build-support/bin/thrift/mac/10.10/0.9.2/thrift ...
INFO] Fetched thrift binary from: https://dl.bintray.com/pantsbuild/bin/build-support/bin/thrift/mac/10.10/0.9.2/thrift .
..
18:29:11 00:03 [protoc]
Invalidated 2 targets.INFO] Attempting to fetch protoc binary from: https://dl.bintray.com/pantsbuild/bin/build-support/bin/protobuf/mac/10.10/2.4.1/protoc ...
INFO] Fetched protoc binary from: https://dl.bintray.com/pantsbuild/bin/build-support/bin/protobuf/mac/10.10/2.4.1/protoc .
18:29:13 00:05 [antlr]
Invalidated 2 targets.. .
Caching artifacts for 1 target... .
Caching artifacts for 1 target..
18:29:16 00:08 [ragel]
18:29:16 00:08 [jaxb]
Invalidated 1 target..
18:29:16 00:08 [wire]
Invalidated 1 target.. .
Caching artifacts for 1 target.Compiling proto source file /Users/mateo/dev/pants/examples/src/wire/org/pantsbuild/example/temperature/temperatures.proto
Writing generated code to /Users/mateo/dev/pants/.pants.d/gen/wire/examples.src.wire.org.pantsbuild.example.temperature.temperature/b0f1ac8f4960/org/pantsbuild/example/temperature/Temperature.java
Writing generated code to /Users/mateo/dev/pants/.pants.d/gen/wire/examples.src.wire.org.pantsbuild.example.temperature.temperature/b0f1ac8f4960/org/pantsbuild/example/temperature/TemperatureRequest.java
Writing generated code to /Users/mateo/dev/pants/.pants.d/gen/wire/examples.src.wire.org.pantsbuild.example.temperature.temperature/b0f1ac8f4960/org/pantsbuild/example/temperature/TemperatureService.java
18:29:18 00:10 [aapt]
18:29:18 00:10 [scrooge]
18:29:18 00:10 [spindle]
18:29:18 00:10 [resolve]
18:29:18 00:10 [ivy]
Invalidated 10 targets.
18:29:18 00:10 [ivy-resolve]
18:29:19 00:11 [go]
18:29:19 00:11 [npm]
18:29:19 00:11 [resources]
18:29:19 00:11 [prepare]
Invalidated 1 target.
18:29:19 00:11 [services]
18:29:19 00:11 [compile]
18:29:19 00:11 [compile]
18:29:19 00:11 [jvm]
18:29:19 00:11 [jvm-compilers]
18:29:19 00:11 [zinc-pre]
18:29:19 00:11 [zinc-prepare]
18:29:19 00:11 [isolation-zinc-pool-bootstrap]
18:29:19 00:11 [zinc-execute]
Invalidated 20 targets in 20 target partitions.
Compiling 2 zinc sources in 1 target (.pants.d/gen/antlr/examples.src.antlr.org.pantsbuild.example.exp.exp_antlr3/03a1ae7cdf9b:examples.src.antlr.org.pantsbuild.example.exp.exp_antlr3).
Compiling 1 zinc source in 1 target (.pants.d/gen/protoc/examples.src.protobuf.org.pantsbuild.example.imports.imports/1e9a590ec67c:examples.src.protobuf.org.pantsbuild.example.imports.imports).
Compiling 1 zinc source in 1 target (.pants.d/gen/thrift/examples.src.thrift.org.pantsbuild.example.distance.distance-java/b4d68b02c9bb:examples.src.thrift.org.pantsbuild.example.distance.distance-java).
18:29:19 00:11 [compile]
18:29:19 00:11 [compile]
Compiling 6 zinc sources in 1 target (.pants.d/gen/antlr/examples.src.antlr.org.pantsbuild.example.exp.exp_antlr4/bf62dc637932:examples.src.antlr.org.pantsbuild.example.exp.exp_antlr4).
18:29:19 00:11 [compile]
18:29:19 00:11 [cache]
18:29:19 00:11 [compile]
.
18:29:19 00:11 [cache].
18:29:19 00:11 [cache].
18:29:19 00:11 [cache].
Using cached artifacts for 1 target.
18:29:19 00:11 [zinc]
18:29:19 00:11 [zinc]
18:29:19 00:11 [zinc]
18:29:19 00:11 [zinc]
[info] Compiling 6 Java sources to /Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/.pants.d.gen.antlr.examples.src.antlr.org.pantsbuild.example.exp.exp_antlr4.bf62dc637932.examples.src.antlr.org.pantsbuild.example.exp.exp_antlr4/3ce73d9bdc8d/classes...
[info] Compiling 1 Java source to /Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/.pants.d.gen.thrift.examples.src.thrift.org.pantsbuild.example.distance.distance-java.b4d68b02c9bb.examples.src.thrift.org.pantsbuild.example.distance.distance-java/f44663269732/classes...
[info] Compiling 2 Java sources to /Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/.pants.d.gen.antlr.examples.src.antlr.org.pantsbuild.example.exp.exp_antlr3.03a1ae7cdf9b.examples.src.antlr.org.pantsbuild.example.exp.exp_antlr3/c75823a054dc/classes...
[info] Compiling 1 Java source to /Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/.pants.d.gen.protoc.examples.src.protobuf.org.pantsbuild.example.imports.imports.1e9a590ec67c.examples.src.protobuf.org.pantsbuild.example.imports.imports/734979505e9b/classes...
[warn] bootstrap class path not set in conjunction with -source 1.6
[warn] bootstrap class path not set in conjunction with -source 1.6
[warn] bootstrap class path not set in conjunction with -source 1.6
[warn] bootstrap class path not set in conjunction with -source 1.6
[info] Compile success at Nov 20, 2015 6:29:21 PM [1.666s]
[[info] Compile success at Nov 20, 2015 6:29:21 PM [1.666s]
[info] Compile success at Nov 20, 2015 6:29:21 PM [1.666s]info] Compile success at Nov 20, 2015 6:29:21 PM [1.666s]
Compiling 1 zinc source in 1 target (.pants.d/gen/protoc/examples.src.protobuf.org.pantsbuild.example.distance.distance/ae2d7e4229a7:examples.src.protobuf.org.pantsbuild.example.distance.distance).
Compiling 2 zinc sources in 1 target (.pants.d/gen/jaxb/examples.src.resources.org.pantsbuild.example.jaxb.jaxb/15c250e36aec:examples.src.resources.org.pantsbuild.example.jaxb.jaxb).
18:29:21 00:13 [compile]
18:29:21 00:13 [compile]
Compiling 3 zinc sources in 1 target (.pants.d/gen/wire/examples.src.wire.org.pantsbuild.example.temperature.temperature/b0f1ac8f4960:examples.src.wire.org.pantsbuild.example.temperature.temperature).
18:29:21 00:13 [compile]
18:29:21 00:13 [zinc]
18:29:21 00:13 [zinc]
Compiling 1 zinc source in 1 target (.pants.d/gen/thrift/examples.src.thrift.org.pantsbuild.example.precipitation.precipitation-java/a5c9c392e256:examples.src.thrift.org.pantsbuild.example.precipitation.precipitation-java).
compile(examples/src/java/org/pantsbuild/example/hello/greet:greet) failed: [Errno 2] No such file or directory: u'/Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/examples.src.java.org.pantsbuild.example.hello.greet.greet/c674fb823578/examples.src.java.org.pantsbuild.example.hello.greet.greet.analysis'
18:29:21 00:13 [zinc]
18:29:21 00:13 [compile]
compile(examples/src/java/org/pantsbuild/example/antlr4:antlr4) failed: [Errno 2] No such file or directory: u'/Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/examples.src.java.org.pantsbuild.example.antlr4.antlr4/afde1be1e4f1/examples.src.java.org.pantsbuild.example.antlr4.antlr4.analysis'
18:29:21 00:13 [zinc]
[info] Compiling 2 Java sources to /Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/.pants.d.gen.jaxb.examples.src.resources.org.pantsbuild.example.jaxb.jaxb.15c250e36aec.examples.src.resources.org.pantsbuild.example.jaxb.jaxb/610888843f01/classes...
[info] Compiling 1 Java source to /Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/.pants.d.gen.protoc.examples.src.protobuf.org.pantsbuild.example.distance.distance.ae2d7e4229a7.examples.src.protobuf.org.pantsbuild.example.distance.distance/111b9539a667/classes...
[warn] bootstrap class path not set in conjunction with -source 1.6
[info] Compile success at Nov 20, 2015 6:29:21 PM [0.148s]
[info] Compiling 1 Java source to /Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/.pants.d.gen.thrift.examples.src.thrift.org.pantsbuild.example.precipitation.precipitation-java.a5c9c392e256.examples.src.thrift.org.pantsbuild.example.precipitation.precipitation-java/08b8d4b2e575/classes...
[warn] bootstrap class path not set in conjunction with -source 1.6
[info] Compiling 3 Java sources to /Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/.pants.d.gen.wire.examples.src.wire.org.pantsbuild.example.temperature.temperature.b0f1ac8f4960.examples.src.wire.org.pantsbuild.example.temperature.temperature/cfb110d24dca/classes...
[warn] bootstrap class path not set in conjunction with -source 1.6
[warn] bootstrap class path not set in conjunction with -source 1.6
compile(examples/src/java/org/pantsbuild/example/jaxb/reader:reader) failed: [Errno 2] No such file or directory: u'/Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/examples.src.java.org.pantsbuild.example.jaxb.reader.reader/2a45eca08365/examples.src.java.org.pantsbuild.example.jaxb.reader.reader.analysis'[info] Compile success at Nov 20, 2015 6:29:22 PM [0.247s]
Compiling 1 zinc source in 1 target (examples/tests/java/org/pantsbuild/example/useprotoimports:useprotoimports).
compile(examples/src/java/org/pantsbuild/example/antlr3:antlr3) failed: [Errno 2] No such file or directory: u'/Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/examples.src.java.org.pantsbuild.example.antlr3.antlr3/618ea44eb87c/examples.src.java.org.pantsbuild.example.antlr3.antlr3.analysis'
18:29:22 00:14 [compile]
18:29:22 00:14 [zinc]
[info] Compiling 1 Java source to /Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/examples.tests.java.org.pantsbuild.example.useprotoimports.useprotoimports/f484faaf52c7/classes...
[warn] bootstrap class path not set in conjunction with -source 1.6
[info] Compile success at Nov 20, 2015 6:29:22 PM [0.403s]
Compiling 1 zinc source in 1 target (examples/tests/java/org/pantsbuild/example/useproto:useproto).
Compiling 1 zinc source in 1 target (examples/tests/java/org/pantsbuild/example/usewire:usewire).
18:29:22 00:14 [compile]
18:29:22 00:14 [compile]
18:29:22 00:14 [zinc]
18:29:22 00:14 [zinc]
[info] Compile success at Nov 20, 2015 6:29:22 PM [0.186s]
[info] Compile success at Nov 20, 2015 6:29:22 PM [0.444s]
[[info] Compiling 1 Java source to /Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/examples.tests.java.org.pantsbuild.example.useproto.useproto/2a0075924b9a/classes...
info] Compiling 1 Java source to /Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/examples.tests.java.org.pantsbuild.example.usewire.usewire/696cf917d085/classes...
Compiling 1 zinc source in 1 target (examples/tests/java/org/pantsbuild/example/usethrift:usethrift).
18:29:22 00:14 [compile]
18:29:22 00:14 [zinc]
[warn] bootstrap class path not set in conjunction with -source 1.6
[warn] bootstrap class path not set in conjunction with -source 1.6
[info] Compiling 1 Java source to /Users/mateo/dev/pants/.pants.d/compile/jvm/zinc/examples.tests.java.org.pantsbuild.example.usethrift.usethrift/32996a6a857a/classes...
[warn] bootstrap class path not set in conjunction with -source 1.6
[error] /Users/mateo/dev/pants/examples/tests/java/org/pantsbuild/example/usethrift/UseThriftTest.java:17: cannot access org.apache.thrift.TBase
[error] class file for org.apache.thrift.TBase not found
[error] Distance notMuch = new Distance().setNumber(8).setUnit("mm");
[error] Compile failed at Nov 20, 2015 6:29:22 PM [0.052s]
compile(examples/tests/java/org/pantsbuild/example/usethrift:usethrift) failed: Zinc compile failed.[info] Compile success at Nov 20, 2015 6:29:22 PM [0.162s]
[info] Compile success at Nov 20, 2015 6:29:22 PM [0.164s]
FAILURE: Compilation failure: Failed jobs: compile(examples/src/java/org/pantsbuild/example/antlr3:antlr3), compile(examples/src/java/org/pantsbuild/example/antlr4:antlr4), compile(examples/src/java/org/pantsbuild/example/jaxb/reader:reader), compile(examples/src/java/org/pantsbuild/example/hello/greet:greet), compile(examples/tests/java/org/pantsbuild/example/usethrift:usethrift)
Waiting for background workers to finish.
18:29:22 00:14 [complete]
FAILURE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment