Nevermind. Someone helped me figure this out. The problem was that my new class that was in the shared package was extending VerticalPanel, a non-serializable object. Obviously an issue.
On Aug 5, 8:42 pm, spierce7 <spier...@gmail.com> wrote: > I'm getting an error while trying to save an object to the database. > I'm keeping it simple. I'm just saving an event with a key, a start > date, and an end date. I had the ability to save an event to the > server working with an Event class on the server that was > @PersistenceCapable, and an Event class on the client. The problem > came in when I was trying to use Event as a return type, as my Service > and Async methods couldn't tell the difference, and it was recommended > that I make my Event class in the shared package. Now I've deleted my > server Event class, and moved my Event class from the client package > to the shared package. I made it implement IsSerializable, and added > the proper @PersistenceCapable annotations etc. Now I'm getting this > error and can't figure out why. Any help would be great! Thanks! > > javax.servlet.ServletContext log: Exception while dispatching incoming > RPC call > com.google.gwt.user.server.rpc.UnexpectedException: Service method > 'public abstract void > com.spierce7.gwt.test.client.EventService.addShift(java.util.Date,java.util > .Date)' > 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) -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.