[jboss-user] [JBoss Seam] - java.sql.Date, Seam-GWT remoting with EJB3/hibernate/JPA
do-not-reply at jboss.com
Tue Dec 4 15:23:09 EST 2007
After a lot of digging, finally found where I am having an issue with some DTO transports using the SEAM-GWT remoting.
First, the (not useful) error on the client/browser side:
| com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser
Second, where the problem is originating from:
| private java.util.Date dateField;
And third, the actual class that is returned (by hibernate):
What is returned by the JPA layer, in this case Hibernate, is causing problems within SEAM when trying to transfer the DTO to the GWT client side.
Manually creating the DTO (without hibernate) with a regular java.util.Date works correctly, but changing it to java.sql.Date causes problems as seen in the error above.
Tested with jboss 4.2.1, seam 2.0.0.GA (GWT 1.4.60).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110330#4110330
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110330
More information about the jboss-user