GWT-SL Dispatching problem help

15 views
Skip to first unread message

stevelee

unread,
Mar 3, 2009, 6:56:03 PM3/3/09
to gwt-sl
Hi.
I have gwt-sl dispatching problem.
When I use gwt-sl in hosted mode, it works good(It's context root is
Root).
But After I deploy my app server, I have following errors(It's context
root is teamroomstat).
My setting is
WAS : WebLogic 9.2
WAR context-root : teamroomstat

My Client Code is :
public interface EmpService extends RemoteService {
public Department findOrgInfoByCompCode(String compCode);
public List<Company> findAllCompany();
public List<Department> findChildren(Department parent);

/**
* Utility/Convenience class.
* Use EmpService.App.getInstance() to access static instance of
EmpServiceAsync
*/
public static class App {
private static final EmpServiceAsync ourInstance;

static {
ourInstance = (EmpServiceAsync) GWT.create
(EmpService.class);
((ServiceDefTarget) ourInstance).setServiceEntryPoint("/
teamroomstat/spring/empService");
}

public static EmpServiceAsync getInstance() {
return ourInstance;
}
}
}

spring-servlet.xml is
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:jee="http://www.springframework.org/schema/jee"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-2.5.xsd">
<bean id="urlMapping"
class="org.gwtwidgets.server.spring.GWTHandler">
<property name="mappings">
<map>
<entry key="/empService" value-ref="empService"/>
<entry key="/statService" value-ref="statService"/>
</map>
</property>
</bean>

<import resource="classpath:/tr/portal/teamroom/resource/conf/
spring-service.xml"/>
</beans>

So my error is:
java.lang.RuntimeException: java.lang.IndexOutOfBoundsException:
Index: 0, Size: 0
at
org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleExporterProcessingException
(GWTRPCServiceExporter.java:344)
at
org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall
(GWTRPCServiceExporter.java:313)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:85)
at
org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest
(GWTRPCServiceExporter.java:363)
at
org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle
(HttpRequestHandlerAdapter.java:49)
at org.springframework.web.servlet.DispatcherServlet.doDispatch
(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService
(DispatcherServlet.java:807)
at
org.springframework.web.servlet.FrameworkServlet.processRequest
(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doPost
(FrameworkServlet.java:511)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
856)
at weblogic.servlet.internal.StubSecurityHelper
$ServletServiceAction.run(StubSecurityHelper.java:223)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet
(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute
(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute
(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext
$ServletInvocationAction.run(WebAppServletContext.java:3245)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:121)
at
weblogic.servlet.internal.WebAppServletContext.securedExecute
(WebAppServletContext.java:2003)
at weblogic.servlet.internal.WebAppServletContext.execute
(WebAppServletContext.java:1909)
at weblogic.servlet.internal.ServletRequestImpl.run
(ServletRequestImpl.java:1359)
at weblogic.work.ExecuteRequestAdapter.execute
(ExecuteRequestAdapter.java:21)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:
145)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:555)
at java.util.ArrayList.get(ArrayList.java:330)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.extract
(ServerSerializationStreamReader.java:610)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt
(ServerSerializationStreamReader.java:427)
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:382)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:
234)
at
org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall
(GWTRPCServiceExporter.java:292)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:85)
at
org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest
(GWTRPCServiceExporter.java:363)
at
org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle
(HttpRequestHandlerAdapter.java:49)
at org.springframework.web.servlet.DispatcherServlet.doDispatch
(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService
(DispatcherServlet.java:807)
at
org.springframework.web.servlet.FrameworkServlet.processRequest
(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doPost
(FrameworkServlet.java:511)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
856)
at weblogic.servlet.internal.StubSecurityHelper
$ServletServiceAction.run(StubSecurityHelper.java:223)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet
(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute
(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute
(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext
$ServletInvocationAction.run(WebAppServletContext.java:3245)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:121)
at
weblogic.servlet.internal.WebAppServletContext.securedExecute
(WebAppServletContext.java:2003)
at weblogic.servlet.internal.WebAppServletContext.execute
(WebAppServletContext.java:1909)
at weblogic.servlet.internal.ServletRequestImpl.run
(ServletRequestImpl.java:1359)
at weblogic.work.ExecuteRequestAdapter.execute
(ExecuteRequestAdapter.java:21)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:
145)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

George Georgovassilis

unread,
Mar 4, 2009, 2:44:03 AM3/4/09
to gwt...@googlegroups.com
Hello stevelee

Though the stacktrace you posted is not complete, it seems like within
your service (EmpServiceImpl ?) there is an IndexOutOfBoundsException.
Look in the stracktrace for the "caused by" part which should pinpoint
the exact location of the error.

이정룡

unread,
Mar 4, 2009, 11:40:26 AM3/4/09
to gwt-sl
Hi George.
I found what's problem.
My maven settings deploy gwt-servlet 1.5.0RC1 automatically.
So I modify gwt-servlet version to 1.5.3.

2009/3/4 stevelee <i1be...@gmail.com>
Reply all
Reply to author
Forward
0 new messages