Giter VIP home page Giter VIP logo

Comments (9)

llbit avatar llbit commented on May 12, 2024 1

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.

collinw avatar collinw commented on May 12, 2024

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.

llbit avatar llbit commented on May 12, 2024

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.

llbit avatar llbit commented on May 12, 2024

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.

llbit avatar llbit commented on May 12, 2024

Protobuf 3.0.0-alpha-1 is not available on maven-central, but alpha-2 and alpha-3 are available.

from shipshape.

collinw avatar collinw commented on May 12, 2024

Kythe defines its own Any message in third_party/kythe/proto/any.proto. Is that what the ClassNotFoundException is related to?

from shipshape.

llbit avatar llbit commented on May 12, 2024

The libany_proto_java.jar is missing in the Maven build for the Jenkins plugin.

from shipshape.

llbit avatar llbit commented on May 12, 2024

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.

collinw avatar collinw commented on May 12, 2024

Cool! I can review the patch to add the missing jar file.

from shipshape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.