Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51704

Jenkins Gauva library conflicting with Play Framework

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • sbt-plugin
    • None
    • Ubuntu 16.04
      Oracle Java 8

      It seems Jenkins Gauva Library is coming in the way of Play's later version. The build/test works on command line but fails from Jenkins with following error. Please let us know if any fixes or workaround

      15:54:29.534 [pool-4-thread-1] ERROR o.a.c.s.StartupChecks - cassandra.jmx.local.port missing from cassandra-env.sh, unable to start local JMX service.
      verifying
      3
      completed
      [error] Uncaught exception when running com.consultengine.controllers.v1.DBAwareSuite: java.lang.NoSuchMethodError: com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap;
      [error] sbt.ForkMain$ForkError: java.lang.NoSuchMethodError: com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap;
      [error] at com.google.inject.internal.Annotations$AnnotationChecker.<init>(Annotations.java:104)
      [error] at com.google.inject.internal.Annotations.<clinit>(Annotations.java:122)
      [error] at com.google.inject.Key.ensureRetainedAtRuntime(Key.java:362)
      [error] at com.google.inject.Key.strategyFor(Key.java:339)
      [error] at com.google.inject.Key.get(Key.java:229)
      [error] at play.api.inject.guice.GuiceKey$.apply(GuiceInjectorBuilder.scala:390)
      [error] at play.api.inject.guice.GuiceableModuleConversions$$anon$1.$anonfun$configure$3(GuiceInjectorBuilder.scala:355)
      [error] at scala.Option.foreach(Option.scala:257)
      [error] at play.api.inject.guice.GuiceableModuleConversions$$anon$1.$anonfun$configure$2(GuiceInjectorBuilder.scala:351)
      [error] at play.api.inject.guice.GuiceableModuleConversions$$anon$1.$anonfun$configure$2$adapted(GuiceInjectorBuilder.scala:348)
      [error] at scala.collection.immutable.List.foreach(List.scala:389)
      [error] at play.api.inject.guice.GuiceableModuleConversions$$anon$1.configure(GuiceInjectorBuilder.scala:348)
      [error] at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
      [error] at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:229)
      [error] at com.google.inject.spi.Elements.getElements(Elements.java:103)
      [error] at com.google.inject.spi.Elements.getElements(Elements.java:94)
      [error] at com.google.inject.util.Modules$RealOverriddenModuleBuilder$1.configure(Modules.java:153)
      [error] at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
      [error] at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:229)
      [error] at com.google.inject.spi.Elements.getElements(Elements.java:103)
      [error] at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136)
      [error] at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
      [error] at com.google.inject.Guice.createInjector(Guice.java:94)
      [error] at com.google.inject.Guice.createInjector(Guice.java:82)
      [error] at play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:185)
      [error] at play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:137)
      [error] at org.scalatestplus.play.guice.GuiceFakeApplicationFactory.fakeApplication(GuiceFakeApplicationFactory.scala:16)
      [error] at org.scalatestplus.play.guice.GuiceFakeApplicationFactory.fakeApplication$(GuiceFakeApplicationFactory.scala:16)
      [error] at com.consultengine.controllers.v1.SurveyControllerPlaySpec.fakeApplication(SurveyControllerPlaySpec.scala:95)
      [error] at org.scalatestplus.play.BaseOneAppPerSuite.app(BaseOneAppPerSuite.scala:29)
      [error] at org.scalatestplus.play.BaseOneAppPerSuite.app$(BaseOneAppPerSuite.scala:29)
      [error] at com.consultengine.controllers.v1.SurveyControllerPlaySpec.app$lzycompute(SurveyControllerPlaySpec.scala:95)
      [error] at com.consultengine.controllers.v1.SurveyControllerPlaySpec.app(SurveyControllerPlaySpec.scala:95)
      [error] at org.scalatestplus.play.BaseOneAppPerSuite.run(BaseOneAppPerSuite.scala:42)
      [error] at org.scalatestplus.play.BaseOneAppPerSuite.run$(BaseOneAppPerSuite.scala:41)
      [error] at com.consultengine.controllers.v1.SurveyControllerPlaySpec.run(SurveyControllerPlaySpec.scala:95)
      [error] at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1210)
      [error] at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1257)
      [error] at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:32)
      [error] at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:29)
      [error] at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:191)
      [error] at org.scalatest.Suite.runNestedSuites(Suite.scala:1255)
      [error] at org.scalatest.Suite.runNestedSuites$(Suite.scala:1189)
      [error] at org.scalatest.Suites.runNestedSuites(Suites.scala:56)
      [error] at org.scalatest.Suite.run(Suite.scala:1144)
      [error] at org.scalatest.Suite.run$(Suite.scala:1129)
      [error] at com.consultengine.controllers.v1.DBAwareSuite.org$scalatest$BeforeAndAfterAll$$super$run(DBAwareSuite.scala:34)
      [error] at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
      [error] at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
      [error] at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
      [error] at com.consultengine.controllers.v1.DBAwareSuite.run(DBAwareSuite.scala:34)
      [error] at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:314)
      [error] at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:507)
      [error] at sbt.ForkMain$Run$2.call(ForkMain.java:300)
      [error] at sbt.ForkMain$Run$2.call(ForkMain.java:290)
      [error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      [error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      [error] at java.lang.Thread.run(Thread.java:748)
      [error] Error: Total 1, Failed 0, Errors 1, Passed 0
       

            uzilan uzilan
            sohelmk sohel khan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: