Comments (9)
I think this is caused by using an old version of protobuf. protobuf-java-2.5.0.jar
does not contain a ProtocolStringList.class
but protobuf-java-2.6.1.jar
does.
from shipshape.
We have two ways of specifying the version of protobuf to use: one in third_party, and one in the Jenkins plugin's pom.xml file. If they don't match, they should be made to.
from shipshape.
After upgrading to protobuf 2.6.1 I get the following error:
FATAL: com/google/devtools/kythe/proto/AnyOuterClass
java.lang.NoClassDefFoundError: com/google/devtools/kythe/proto/AnyOuterClass
at com.google.devtools.kythe.proto.Analysis.<clinit>(Analysis.java:9628)
at com.google.shipshape.proto.ShipshapeContextProto.<clinit>(ShipshapeContextProto.java:4411)
at com.google.shipshape.proto.ShipshapeRpcProto.<clinit>(ShipshapeRpcProto.java:6079)
at com.google.shipshape.proto.ShipshapeRpcProto$ShipshapeRequest.internalGetFieldAccessorTable(ShipshapeRpcProto.java:4368)
at com.google.protobuf.GeneratedMessage.getAllFieldsMutable(GeneratedMessage.java:107)
at com.google.protobuf.GeneratedMessage.getAllFields(GeneratedMessage.java:155)
at com.google.protobuf.TextFormat$Printer.print(TextFormat.java:298)
at com.google.protobuf.TextFormat$Printer.access$400(TextFormat.java:273)
at com.google.protobuf.TextFormat.print(TextFormat.java:76)
at com.google.protobuf.TextFormat.printToString(TextFormat.java:143)
at com.google.protobuf.AbstractMessage.toString(AbstractMessage.java:79)
at java.util.Formatter$FormatSpecifier.printString(Formatter.java:2886)
at java.util.Formatter$FormatSpecifier.print(Formatter.java:2763)
at java.util.Formatter.format(Formatter.java:2520)
at java.util.Formatter.format(Formatter.java:2455)
at java.lang.String.format(String.java:2928)
at com.google.jenkins.plugins.analysis.ShipshapeSlave.call(ShipshapeSlave.java:155)
at com.google.jenkins.plugins.analysis.ShipshapeSlave.call(ShipshapeSlave.java:47)
at hudson.FilePath.act(FilePath.java:1076)
at com.google.jenkins.plugins.analysis.AnalysisRunner.perform(AnalysisRunner.java:118)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
at hudson.model.Build$BuildExecution.build(Build.java:203)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:374)
Caused by: java.lang.ClassNotFoundException: com.google.devtools.kythe.proto.AnyOuterClass
at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 29 more
from shipshape.
The current version for protobuf in third_party
is 3.0.0-alpha-1
, so I guess it's best to update the dependency in pom.xml
to that version.
from shipshape.
Protobuf 3.0.0-alpha-1
is not available on maven-central, but alpha-2
and alpha-3
are available.
from shipshape.
Kythe defines its own Any message in third_party/kythe/proto/any.proto
. Is that what the ClassNotFoundException is related to?
from shipshape.
The libany_proto_java.jar
is missing in the Maven build for the Jenkins plugin.
from shipshape.
After adding libany_proto_java.jar
to the build I seem to get past the ClassNotFoundException
. Now I'm getting unrelated problems (docker not available in my test Jenkins).
[Shipshape] Running cmd: [docker, -H, unix:///var/run/docker.sock, pull, gcr.ioshipshape_releases/service:prod]
[Shipshape] Running command failed: Cannot run program "docker": error=2, No such file or directory
[Shipshape] Error: null
java.lang.NullPointerException
at com.google.jenkins.plugins.analysis.ShipshapeSlave.runCommand(ShipshapeSlave.java:485)
at com.google.jenkins.plugins.analysis.ShipshapeSlave.makeShippingContainerRequest(ShipshapeSlave.java:287)
at com.google.jenkins.plugins.analysis.ShipshapeSlave.call(ShipshapeSlave.java:156)
at com.google.jenkins.plugins.analysis.ShipshapeSlave.call(ShipshapeSlave.java:47)
at hudson.FilePath.act(FilePath.java:1076)
at com.google.jenkins.plugins.analysis.AnalysisRunner.perform(AnalysisRunner.java:118)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
at hudson.model.Build$BuildExecution.build(Build.java:203)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:374)
Build step 'Google Analysis Plugin' marked build as failure
Note: I'm running Jenkins in the Jenkins docker image.
from shipshape.
Cool! I can review the patch to add the missing jar file.
from shipshape.
Related Issues (20)
- Include kythe in the third_party/go directory for the go parts. HOT 1
- ExtendJ analyzer image does not appear to be published anywhere public HOT 2
- Error Prone analyzer doesn't actually work
- External analyzers can't run if one was run previously HOT 2
- "latest" image in our repository HOT 6
- Can't run a local version of an external analyzer and prod versions of shipshape HOT 3
- Getting errors about failing to stop containers on first run HOT 1
- Add --config flag to pass a config file HOT 1
- Make a distinction between default and non-default categories HOT 1
- Add android lint results to the demo repository HOT 2
- Make the cli work with all versions of docker HOT 4
- Make the last part of the run-cli instructions produce results HOT 1
- Show subcategories HOT 3
- Show Docker image download status HOT 1
- Using Shipshape (proto) for code coverage HOT 3
- Jenkins_plugin fails to build, kythe not found
- building shipshape without realpath fails "silently" HOT 3
- Add a field to pass options or parameters to analyzer service HOT 5
- why the project can not be compiled? HOT 1
- shipshape exits with "Error HTTP client did not become healthy: service did not respond before timeout:" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shipshape.