Menu

echo repeat example error

Help
terr0rbyt3
2006-03-27
2013-04-17
  • terr0rbyt3

    terr0rbyt3 - 2006-03-27

    dear jamie,

    while executing the echorepeat example, the following error occurs:

    [BpmScript] ERROR [http-8080-Processor25] BpmScriptComponent.onMessageExchange(93) | org.mozilla.javascript.EvaluatorException: Can't find method org.apache.servicemix.jbi.messaging.NormalizedMessageImpl.setContent(java.lang.String). (classpath:/org/bpmscript/jbi/bpmscriptlibrary.js#57)
    org.mozilla.javascript.EvaluatorException: Can't find method org.apache.servicemix.jbi.messaging.NormalizedMessageImpl.setContent(java.lang.String). (classpath:/org/bpmscript/jbi/bpmscriptlibrary.js#57)
        at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:95)

    any suggestions?

    terr0rbyt3

     
    • james mcgrange

      james mcgrange - 2006-03-27

      A fixed version is in CVS.

       
    • terr0rbyt3

      terr0rbyt3 - 2006-03-27

      thanks!!!
      wish you a wonderful monday :-)

       
    • terr0rbyt3

      terr0rbyt3 - 2006-03-27

      i builded from current cvs - still got the error
      what were the changes you have commited? (version,etc) - i don't want to be out of sync!

      terr0rbyt3

       
    • james mcgrange

      james mcgrange - 2006-03-27

      hmmm... odd. the source for echo repeat should look like this:

      function main(input, sender) {

          var reply = "<result>";
         
          for(var i = 0; i < 5; i++) {

              var future = sender.send("http://bpmscript.org/jbi",
                     "bpmscript",
                     true,
                     input.getInMessage().getContent(),
                     {'process':'echo'});

                 reply += ST.toString(future.get().getOutMessage().getContent());

             }

          sender.reply(ST.toStreamSource(reply + "</result>"));

      }

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.