Hi Maxim,

You have a mismatch between to old jar, 
maybe jsr223.jar, there are a pb with
javax.script.ScriptEngine.createBindings method

Grégoire A.


--- "Maxim Y. Tebenev" <[EMAIL PROTECTED]> a écrit :

> 
> Hi Guys,
> 
> My Groovy script has stopped to work after updating
> SMX. Here's component
> configuration:
> 
> ...
>       <sm:activationSpec
> componentName="groovytrans1"
> service="hb:groovytrans1"> 
>         <sm:component> 
>           <bean
>
class="org.apache.servicemix.components.groovy.GroovyComponent">
> 
>             <property name="scriptText"> 
>               <value> 
>                <![CDATA[ 
>
outMessage.setProperty("javax.jbi.messaging.protocol.headers",
> null)
> outMessage.setContent(inMessage.getContent());
>             ]]> 
>               </value> 
>             </property> 
>           </bean> 
>         </sm:component> 
>       </sm:activationSpec> 
> ...
> 
> ServiceMix outputs following:
> 
> ERROR - SedaQueue                      -
>
[EMAIL PROTECTED]
> got error
> processing
>  InOut[
>   id: ID:mtebenev-1822-1169827943860-6:48
>   status: Active
>   role: provider
>   service:
>
{http://servicemix.apache.org/samples/hellobook}groovytrans1
>   endpoint: groovytrans1
>   in: <?xml version="1.0"
> encoding="UTF-8"?><del:ShipOrder
> xmlns:del="http://Delivery.HelloBook.softech.com";
> xmlns:shop=
> "http://Shop.HelloBook.softech.com";
> xmlns:war="http://Warehouse.HelloBook.softech.com";>
>    <del:orderID>401784</del:orderID>
> </del:ShipOrder>
> ]
> java.lang.NoSuchMethodError:
>
javax.script.ScriptEngine.createBindings()Ljavax/script/Bindings;
>         at
>
org.apache.servicemix.components.script.ScriptComponent.transform(ScriptComponent.java:210)
>         at
>
org.apache.servicemix.components.util.TransformComponentSupport.onMessageExchange(TransformComponentSupport.j
> ava:66)
>         at
>
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:593)
>         at
>
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
>         at
>
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
>         at
>
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         at
>
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> 
>         at
>
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>         at java.lang.Thread.run(Thread.java:595)
> 
> Any idea of what's wrong with that?
> Thanks in advance!
> 
> Best regards, Maxim Tebenev.
> 
> -- 
> View this message in context:
>
http://www.nabble.com/Groovy-script-has-stopped-to-work-tf3123908s12049.html#a8654907
> Sent from the ServiceMix - User mailing list archive
> at Nabble.com.
> 
> 



        

        
                
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Reply via email to