Tuesday, October 12, 2010

GWT 2.1.RC1 Expenses Sample Failure

The sample fails on the server-side because
somehow the EMF does not get initialized.

I've imported the sample into Eclipse 3.6 on
Windows 7 and running the LoadExpensesDB
module via Debug As menu item of Eclipse
Property Context Menu.

Can anybody please shed some light on how to
initialize the server-side DB and services?

The exception is:
[ERROR] javax.servlet.ServletContext log:
Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException:
Service method 'public abstract java.util.List
com.google.gwt.sample.expenses.client.DataGenerationService.getCounts()'
threw an unexpected exception: java.lang.ExceptionInInitializerError
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
207)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
243)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment