Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Error when running init_project.sh #13

Closed
vector-sec opened this issue Aug 2, 2018 · 2 comments
Closed

Error when running init_project.sh #13

vector-sec opened this issue Aug 2, 2018 · 2 comments

Comments

@vector-sec
Copy link

I'm having issues following the steps to deploy

Deploying to App Engine...
+ bazel run upvote/gae:monolith_binary.deploy -- upvote-poc-1 app.yaml santa_api.yaml bit9_api.yaml --verbose_failures
INFO: Analysed target //upvote/gae:monolith_binary.deploy (0 packages loaded).
INFO: Found 1 target...
ERROR: missing input file '@local_jdk//:jre/lib/rt.jar'
ERROR: /private/var/tmp/_bazel_eric/7b851cf8ed89b6be50e03e0a8350cb67/external/io_bazel_rules_closure/java/io/bazel/rules/closure/BUILD:17:1: @io_bazel_rules_closure//java/io/bazel/rules/closure:ClosureWorker: missing input file '@local_jdk//:jre/lib/rt.jar'
Target //upvote/gae:monolith_binary.deploy failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /private/var/tmp/_bazel_eric/7b851cf8ed89b6be50e03e0a8350cb67/external/io_bazel_rules_closure/java/io/bazel/rules/closure/BUILD:17:1 1 input file(s) do not exist
INFO: Elapsed time: 2.483s, Critical Path: 0.01s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

Any ideas?

Thanks!

@vector-sec
Copy link
Author

Sorry, I missed a step setting up Bazel.

@vector-sec vector-sec changed the title ERROR: missing input file '@local_jdk//:jre/lib/rt.jar' when running init_project.sh Error when running init_project.sh Aug 3, 2018
@vector-sec
Copy link
Author

Getting this error now, any ideas?

+ echo Deploying to App Engine...
Deploying to App Engine...
+ bazel run upvote/gae:monolith_binary.deploy -- upvote-poc-212202 app.yaml santa_api.yaml bit9_api.yaml
INFO: Analysed target //upvote/gae:monolith_binary.deploy (0 packages loaded).
INFO: Found 1 target...
ERROR: /private/var/tmp/_bazel_eric/97b3245fab14e6547af8f814eabea6a9/external/io_bazel_rules_closure/java/io/bazel/rules/closure/webfiles/compiler/BUILD:17:1: Compiling Java headers external/io_bazel_rules_closure/java/io/bazel/rules/closure/webfiles/compiler/libcompiler-hjar.jar (1 files) and running annotation processors (ComponentProcessor) failed (Exit 1)
java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/annotation/Generated
	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:158)
	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:96)
	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:90)
	at com.google.devtools.build.java.turbine.javac.JavacTurbineCompiler.compile(JavacTurbineCompiler.java:100)
	at com.google.devtools.build.java.turbine.javac.JavacTurbine.compile(JavacTurbine.java:147)
	at com.google.devtools.build.java.turbine.javac.JavacTurbine.compile(JavacTurbine.java:88)
	at com.google.devtools.build.java.turbine.javac.JavacTurbine.compile(JavacTurbine.java:81)
	at com.google.devtools.build.java.turbine.Turbine.compile(Turbine.java:118)
	at com.google.devtools.build.java.turbine.Turbine.compile(Turbine.java:67)
	at com.google.devtools.build.java.turbine.Turbine.main(Turbine.java:46)
Caused by: java.lang.NoClassDefFoundError: javax/annotation/Generated
	at dagger.internal.codegen.SourceFileGenerator.<clinit>(SourceFileGenerator.java:43)
	at dagger.internal.codegen.ComponentProcessor.initSteps(ComponentProcessor.java:119)
	at dagger.shaded.auto.common.BasicAnnotationProcessor.init(BasicAnnotationProcessor.java:119)
	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.<init>(JavacProcessingEnvironment.java:675)
	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.next(JavacProcessingEnvironment.java:774)
	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:869)
	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.access$2200(JavacProcessingEnvironment.java:108)
	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1206)
	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1315)
	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1246)
	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:922)
	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:100)
	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:142)
	... 9 more
Caused by: java.lang.ClassNotFoundException: javax.annotation.Generated
	at java.base/java.net.URLClassLoader.findClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	... 22 more
Target //upvote/gae:monolith_binary.deploy failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 5.382s, Critical Path: 2.06s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

@vector-sec vector-sec reopened this Aug 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant