I see the following error quite frequently when building
samples/calculator-script.  I have also seen a similar exception
when building the implementation-script module.  Has anyone else
seen this?  Any ideas as to the cause?

  Simon

Running calculator.CalculatorTestCase
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.568 sec <<< FA
ILURE!
testCalculator(calculator.CalculatorTestCase)  Time elapsed: 2.523 sec  <<< ERRO
R!
java.lang.NoSuchMethodError: javax.script.Bindings.put(Ljava/lang/String;Ljava/l
ang/Object;)Ljava/lang/Object;
        at org.apache.tuscany.sca.implementation.script.engines.TuscanyJRubyScri
ptEngine$3.defineReadonly(TuscanyJRubyScriptEngine.java:299)
        at org.jruby.Ruby.defineReadonlyVariable(Ruby.java:1016)
        at org.jruby.RubyClassPathVariable.createClassPathVariable(RubyClassPath
Variable.java:44)
        at org.jruby.Ruby$1.load(Ruby.java:659)
        at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:307)
        at org.jruby.runtime.load.LoadService.require(LoadService.java:333)
        at org.jruby.RubyKernel$1.load(RubyKernel.java:245)
        at org.jruby.runtime.load.LoadService.autoload(LoadService.java:355)
        at org.jruby.RubyModule.getConstantAt(RubyModule.java:887)
        at org.jruby.Ruby.getModule(Ruby.java:459)
        at org.jruby.javasupport.JavaSupport.getJavaModule(JavaSupport.java:175)

        at org.jruby.javasupport.JavaSupport.getJavaObjectClass(JavaSupport.java
:189)
        at org.jruby.javasupport.JavaObject.<init>(JavaObject.java:62)
        at org.jruby.javasupport.JavaObject.wrap(JavaObject.java:72)
        at org.jruby.javasupport.Java.primitive_to_java(Java.java:764)
        at org.jruby.javasupport.Java.ruby_to_java(Java.java:796)
        at org.apache.tuscany.sca.implementation.script.engines.TuscanyJRubyScri
ptEngine.rubyToJava(TuscanyJRubyScriptEngine.java:221)
        at org.apache.tuscany.sca.implementation.script.engines.TuscanyJRubyScri
ptEngine.rubyToJava(TuscanyJRubyScriptEngine.java:217)
        at org.apache.tuscany.sca.implementation.script.engines.TuscanyJRubyScri
ptEngine.evalNode(TuscanyJRubyScriptEngine.java:420)
        at org.apache.tuscany.sca.implementation.script.engines.TuscanyJRubyScri
ptEngine.eval(TuscanyJRubyScriptEngine.java:193)
        at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:62)
        at org.apache.tuscany.sca.implementation.script.ScriptInvokerFactory.ini
t(ScriptInvokerFactory.java:111)
        at org.apache.tuscany.sca.implementation.script.ScriptInvokerFactory.cre
ateInvoker(ScriptInvokerFactory.java:83)
        at org.apache.tuscany.sca.extension.helper.impl.ImplementationImplementa
tionProvider$InvokerProxy.init(ImplementationImplementationProvider.java:95)
        at org.apache.tuscany.sca.extension.helper.impl.ImplementationImplementa
tionProvider$InvokerProxy.invoke(ImplementationImplementationProvider.java:89)
        at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCAB
indingInvoker.java:61)
        at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:287)
        at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:154)
        at $Proxy5.subtract(Unknown Source)
        at calculator.CalculatorServiceImpl.subtract(CalculatorServiceImpl.java:
58)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementat
ionInvoker.invoke(JavaImplementationInvoker.java:132)
        at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCAB
indingInvoker.java:61)
        at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:287)
        at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:154)
        at $Proxy4.subtract(Unknown Source)
        at calculator.CalculatorTestCase.testCalculator(CalculatorTestCase.java:
47)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.
java:35)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
java:62)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
tSet(AbstractDirectoryTestSuite.java:138)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:308)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:879)


Results :

Tests in error:
  testCalculator(calculator.CalculatorTestCase)

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

Reply via email to