2 Replies Latest reply on Dec 25, 2008 8:07 AM by Pardeep Sood

    IndexOutofBoundsException: Seam and GWT

    Pardeep Sood Newbie
      Hi,

      I am trying to run the GWT and Seam Ask Question example. I am able to run the example in hosted mode in GWT. But when I try to run the same example in browser (Firefox, IE), I get the following exception. I have also traced the complete request both in hosted mode and browser but didn't find anything.


      Pls. let me know if I am missing something or this is a bug.

      Using: GWT 1.5.2, also on 1.5.3
      Seam: jboss-seam-2.1.1.GA
      Java: 1.5, also on 1.6
      Tomcat:6.0.16



      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
              at java.util.ArrayList.RangeCheck(ArrayList.java:546)
              at java.util.ArrayList.get(ArrayList.java:321)
              at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.extract(ServerSerializationStreamReader.java:617)
              at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt(ServerSerializationStreamReader.java:432)
              at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.prepareToRead(AbstractSerializationStreamReader.java:38)
              at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:383)
              at org.jboss.seam.remoting.gwt.GWTService.RPC_decodeRequest(GWTService.java:376)
              at org.jboss.seam.remoting.gwt.GWTService.processCall(GWTService.java:203)
              at org.jboss.seam.remoting.gwt.GWTService$1.process(GWTService.java:120)
              at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
              at org.jboss.seam.remoting.gwt.GWTService.getResource(GWTService.java:105)
              at org.jboss.seam.servlet.SeamResourceServlet.service(SeamResourceServlet.java:80)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:595)