Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2146

Array index out of range in binding-notification sample

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Java-SCA-1.2
    • Java-SCA-1.2
    • Java SCA Samples
    • None
    • WinXP SP2, IBM JDK5

    Description

      To reproduce run up

      binding-notification-broker
      binding-notification-producer
      binding-notification-consumer

      As per the associate README

      Enter some message into the broker, e.g ABC and hit enter. I see the following exception

      Then

      [java] java.lang.ArrayIndexOutOfBoundsException: Array index out of range:
      1
      [java] at org.apache.tuscany.sca.core.databinding.wire.PassByValueInter
      ceptor.copy(PassByValueInterceptor.java:155)
      [java] at org.apache.tuscany.sca.core.databinding.wire.PassByValueInter
      ceptor.invoke(PassByValueInterceptor.java:106)
      [java] at org.apache.tuscany.sca.binding.notification.NotificationServi
      ceBindingProvider.invoke(NotificationServiceBindingProvider.java:263)
      [java] at org.apache.tuscany.sca.binding.notification.NotificationServi
      ceBindingProvider.handle(NotificationServiceBindingProvider.java:244)
      [java] at org.apache.tuscany.sca.binding.notification.util.Notification
      Servlet.doPost(NotificationServlet.java:76)
      [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      [java] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.
      java:487)
      [java] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandle
      r.java:362)
      [java] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandle
      r.java:181)
      [java] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandle
      r.java:726)
      [java] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrappe
      r.java:139)
      [java] at org.mortbay.jetty.Server.handle(Server.java:324)
      [java] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection
      .java:505)
      [java] at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpC
      onnection.java:842)
      [java] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
      [java] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:2
      11)
      [java] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:3
      80)
      [java] at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEnd
      Point.java:395)
      [java] at org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.ja
      va:61)
      [java] at org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$Decora
      tingWork.run(ThreadPoolWorkManager.java:214)
      [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread
      PoolExecutor.java:665)
      [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool
      Executor.java:690)
      [java] at java.lang.Thread.run(Thread.java:801)

      Attachments

        Activity

          People

            rfeng Zhaohui Feng
            simonslaws Simon Laws
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: