Repository navigation
Description
ATTENTION! Please read and follow:
- if this is a question about how to build / test / query / deploy using Bazel, ask it on StackOverflow instead: https://stackoverflow.com/questions/tagged/bazel
- if this is a discussion starter, send it to [email protected]
- if this is a bug or feature request, fill the form below as best as you can.
Description of the problem / feature request:
Internal error from Bazel:
Internal error thrown during build. Printing stack trace: java.lang.RuntimeException: Unrecoverable error while evaluating node 'REPOSITORY_DIRECTORY:@com_google_protobuf' (requested by nodes 'REPOSITORY:@com_google_protobuf')
at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:499)
at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:368)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.localPopAndExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Invalid EvalException:
java.lang.ExceptionInInitializerError
at java.base/javax.crypto.JceSecurityManager.(Unknown Source)
at java.base/javax.crypto.Cipher.getConfiguredPermission(Unknown Source)
Feature requests: what underlying problem are you trying to solve with this feature?
Just using Bazel to do a build of grpc-java
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Launch a build from in my PR grpc/grpc-java#5162
What operating system are you running Bazel on?
Ubuntu Linux
What's the output of bazel info release?
NA
If bazel info release returns "development version" or "(@Non-Git)", tell us how you built Bazel.
NA
What's the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?
NA
Have you found anything relevant by searching the web?
No
Activity
irengrig commentedon Dec 18, 2018
/cc @iirina I am not sure if that is a P1, please check.
lberki commentedon Mar 13, 2019
Off to the external deps folks because this doesn't seem to be specific to Java if the exception dump is anything to go by.
dslomov commentedon Mar 21, 2019
@aehlig could you take a look at this crash bug? Relevant stacktrace from logs:
aehlig commentedon Mar 21, 2019
From the quoted stack trace, the last call in the Bazel code base (
HttpConnector.java:93) isurl.openConnection(proxy)which itself is a legitimate way of opening a connection. For the calls further up the stack, I can only guess. However, the comment for thejavax.crypto.JceSecurityManagerclass reads as follows.From that I would guess that we're either getting into legal territory, or have an incompletely configured host java. Both are, however, outside the scope of Bazel. So the only thing bazel can do here, is to hide the stack trace and report a permanent error for the attempt of fetching the given repository: https://bazel-review.googlesource.com/c/bazel/+/93750
aehlig commentedon Mar 21, 2019
Looking at the quoted full log the root cause is two exceptions further down:
java.lang.SecurityException: Couldn't parse jurisdiction policy files in: unlimited. I'm not sure there is a way to surface that information while hiding the stack trace.So, from a bazel side, we could either leave things as is, or hide the stack trace hoping that the message is explanatory enough.
dslomov commentedon Mar 21, 2019
#6488 is related
dslomov commentedon Mar 21, 2019
Closing this as a dupe of #6488
Report IllegalArgumentException in URL.openConnection as http error