Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-12846

Schedulers are using some non-standard join method

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.1
    • Fix Version/s: 4.3.2
    • Component/s: None
    • Labels:
      None
    • Rank:
      1|i009cf:

      Description

      The schedulers are using some non-standard join method from jopt-simple. If some unit tests from the plugin do not have the dependency, the following exception will be shown:

       java.lang.NoSuchMethodError: joptsimple.internal.Strings.join(Ljava/util/List;Ljava/lang/String;)Ljava/lang/String;
      
      	at co.cask.cdap.internal.app.runtime.schedule.store.Schedulers.getQuartzCronExpression(Schedulers.java:199)
      	at co.cask.cdap.internal.app.runtime.schedule.store.Schedulers.validateCronExpression(Schedulers.java:169)
      	at co.cask.cdap.internal.app.runtime.schedule.trigger.TimeTrigger.validate(TimeTrigger.java:54)
      	at co.cask.cdap.proto.ProtoTrigger$TimeTrigger.<init>(ProtoTrigger.java:61)
      	at co.cask.cdap.internal.app.runtime.schedule.trigger.TimeTrigger.<init>(TimeTrigger.java:48)
      	at co.cask.cdap.internal.app.runtime.schedule.trigger.DefaultTriggerFactory.byTime(DefaultTriggerFactory.java:51)
      	at co.cask.cdap.internal.app.runtime.schedule.DefaultScheduleBuilder.triggerByTime(DefaultScheduleBuilder.java:115)
      	at co.cask.cdap.datapipeline.DataPipelineApp.configure(DataPipelineApp.java:90)
      	at co.cask.cdap.api.app.AbstractApplication.configure(AbstractApplication.java:65)
      	at co.cask.cdap.internal.app.deploy.InMemoryConfigurator.getSpecJson(InMemoryConfigurator.java:161)
      	at co.cask.cdap.internal.app.deploy.InMemoryConfigurator.createResponse(InMemoryConfigurator.java:127)
      	at co.cask.cdap.internal.app.deploy.InMemoryConfigurator.config(InMemoryConfigurator.java:117)
      	at co.cask.cdap.internal.app.deploy.pipeline.LocalArtifactLoaderStage.process(LocalArtifactLoaderStage.java:108)
      	at co.cask.cdap.internal.app.deploy.pipeline.LocalArtifactLoaderStage.process(LocalArtifactLoaderStage.java:55)
      	at co.cask.cdap.pipeline.AbstractStage.process(AbstractStage.java:52)
      	at co.cask.cdap.internal.pipeline.SynchronousPipeline.execute(SynchronousPipeline.java:55)
      	at co.cask.cdap.internal.app.deploy.LocalApplicationManager.deploy(LocalApplicationManager.java:137)
      	at co.cask.cdap.internal.app.services.ApplicationLifecycleService.deployApp(ApplicationLifecycleService.java:686)
      	at co.cask.cdap.internal.app.services.ApplicationLifecycleService.deployApp(ApplicationLifecycleService.java:488)
      	at co.cask.cdap.gateway.handlers.AppLifecycleHttpHandler$1.onFinish(AppLifecycleHttpHandler.java:389)
      	at co.cask.cdap.common.http.AbstractBodyConsumer.finished(AbstractBodyConsumer.java:65)
      	at co.cask.cdap.internal.AppFabricClient.createApplication(AppFabricClient.java:527)
      	at co.cask.cdap.internal.AppFabricClient.deployApplication(AppFabricClient.java:511)
      	at co.cask.cdap.test.UnitTestManager.deployApplication(UnitTestManager.java:198)
      	at co.cask.cdap.test.TestBase.deployApplication(TestBase.java:648)
      	at co.cask.hydrator.PipelineTest.testKafkaSource(PipelineTest.java:140)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
      	at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at co.cask.cdap.common.test.TestRunner.run(TestRunner.java:73)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
      	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
      	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
      	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
      

        Attachments

          Activity

            People

            • Assignee:
              mao Chengfeng Mao
              Reporter:
              yaojie Yaojie Feng
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: