5 Replies Latest reply on Sep 4, 2012 5:12 PM by Japheth Odonya

    are switchyard quickstarts supposed to work out of the box

    Japheth Odonya Newbie

      I am new to switchyard, for some reason I cannot get the rules-interview quickstart to work, I mean pass the unit tests, I get a stack trace looking like I have pasted below

       

       

       

      Test set: org.switchyard.quickstarts.rules.interview.RulesInterviewTest

      -------------------------------------------------------------------------------

      Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 5.257 sec <<< FAILURE!

      testInterviewRules(org.switchyard.quickstarts.rules.interview.RulesInterviewTest)  Time elapsed: 0.039 sec  <<< ERROR!

      java.util.ServiceConfigurationError: org.switchyard.deploy.Component: Provider org.switchyard.component.rules.deploy.RulesComponent could not be instantiated: java.lang.NoSuchMethodError: org.switchyard.deploy.BaseComponent.<init>([Ljava/lang/String;)V

              at java.util.ServiceLoader.fail(ServiceLoader.java:207)

              at java.util.ServiceLoader.access$100(ServiceLoader.java:164)

              at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:353)

              at java.util.ServiceLoader$1.next(ServiceLoader.java:421)

              at org.switchyard.deploy.ActivatorLoader.createActivators(ActivatorLoader.java:49)

              at org.switchyard.test.SwitchYardTestKit.deploy(SwitchYardTestKit.java:233)

              at org.switchyard.test.SwitchYardTestKit.start(SwitchYardTestKit.java:173)

              at org.switchyard.test.SwitchYardRunner.createTest(SwitchYardRunner.java:60)

              at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:236)

              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)

              at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:233)

              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)

              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)

              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)

              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)

              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)

              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)

              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)

              at org.junit.runners.ParentRunner.run(ParentRunner.java:300)

              at org.switchyard.test.SwitchYardRunner.run(SwitchYardRunner.java:79)

              at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)

              at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)

              at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)

              at org.apache.maven.surefire.Surefire.run(Surefire.java:169)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

              at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

      Caused by: java.lang.NoSuchMethodError: org.switchyard.deploy.BaseComponent.<init>([Ljava/lang/String;)V

              at org.switchyard.component.rules.deploy.RulesComponent.<init>(RulesComponent.java:38)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

              at java.lang.Class.newInstance0(Class.java:355)

              at java.lang.Class.newInstance(Class.java:308)

              at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:345)

              ... 27 more

       

       

      Test mechanism  Time elapsed: 0.042 sec  <<< ERROR!

      java.lang.NullPointerException

              at org.switchyard.deploy.internal.Deployment.destroy(Deployment.java:178)

              at org.switchyard.test.SwitchYardTestKit.undeploy(SwitchYardTestKit.java:280)

              at org.switchyard.test.SwitchYardTestKit.cleanup(SwitchYardTestKit.java:193)

              at org.switchyard.test.SwitchYardRunner$TestLifecycleListener.testFinished(SwitchYardRunner.java:89)

              at org.junit.runner.notification.RunNotifier$7.notifyListener(RunNotifier.java:145)

      "/data/projects/magic/switchyardquickstarts/quickstarts/rules-interview/target/surefire-reports/org.switchyard.quickstarts.rules.interview.RulesInterviewTest.txt" 78L, 6042C