[
https://issues.apache.org/jira/browse/SMXCOMP-976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gert Vanthienen resolved SMXCOMP-976.
-------------------------------------
Resolution: Fixed
Fixed in http://svn.apache.org/viewvc?view=revision&revision=1535178
With JRuby 1.7.2, the {{Include Java}} is no longer required in the test script
> Intermittent test failure in servicemix-scripting
> -------------------------------------------------
>
> Key: SMXCOMP-976
> URL: https://issues.apache.org/jira/browse/SMXCOMP-976
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-scripting
> Affects Versions: 2013.01
> Reporter: Gert Vanthienen
> Assignee: Gert Vanthienen
> Fix For: 2013.02
>
>
> The ScriptingComponentTest testJRubyInOut and testJRubyInOnly tests fail
> intermittently with the errors shown below. There is already a comment in the
> code about needing to run them first because of the ArrayJavaProxy is already
> defined error, but that still occurs even if they are run first.
> Error Message
> {noformat}
> org.jruby.embed.EvalFailedException: (NameError) ArrayJavaProxy is already
> defined
> {noformat}
> Stacktrace
> {noformat}
> javax.script.ScriptException: org.jruby.embed.EvalFailedException:
> (NameError) ArrayJavaProxy is already defined
> at
> org.jruby.embed.jsr223.JRubyCompiledScript.wrapException(JRubyCompiledScript.java:103)
> at
> org.jruby.embed.jsr223.JRubyCompiledScript.eval(JRubyCompiledScript.java:92)
> at
> org.jruby.embed.jsr223.JRubyCompiledScript.eval(JRubyCompiledScript.java:77)
> at
> org.apache.servicemix.scripting.ScriptingEndpoint.process(ScriptingEndpoint.java:295)
> at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:694)
> at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:651)
> at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeWithoutTx(AsyncBaseLifeCycle.java:608)
> at
> org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:601)
> at
> org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:62)
> at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:632)
> at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:185)
> at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
> at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
> at
> org.apache.servicemix.executors.impl.ExecutorImpl$1.run(ExecutorImpl.java:64)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: org.jruby.embed.EvalFailedException: (NameError) ArrayJavaProxy is
> already defined
> at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:133)
> at
> org.jruby.embed.jsr223.JRubyCompiledScript.eval(JRubyCompiledScript.java:86)
> ... 15 more
> Caused by: org.jruby.exceptions.RaiseException: (NameError) ArrayJavaProxy is
> already defined
> at RUBY.(root)(<script>:20)
> Standard Error
> NameError: ArrayJavaProxy is already defined
> (root) at <script>:20
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1#6144)