Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-976

Intermittent test failure in servicemix-scripting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2013.01
    • 2013.02
    • servicemix-scripting
    • None

    Description

      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

      org.jruby.embed.EvalFailedException: (NameError) ArrayJavaProxy is already defined
      

      Stacktrace

      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
      

      Attachments

        Activity

          People

            gertvanthienen Gert Vanthienen
            gertvanthienen Gert Vanthienen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: