Re: Bean Serialization Problem: com.google.gwt.user.client.rpc.SerializationException: Type 'com.dg.common.client.beans.DGUser' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable'

2013-08-05 Thread dingolfy
Thanks JM for posting the solution. I too had the same problem. It is working fine in the dev environment but not in live. both are in Linux. Not sure why. Your solution helped to get it working. Thanks ! On Thursday, November 6, 2008 1:41:01 PM UTC, JM wrote: I fixed it by implementing

Re: Bean Serialization Problem: com.google.gwt.user.client.rpc.SerializationException: Type 'com.dg.common.client.beans.DGUser' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' a

2013-08-05 Thread Jens
Thanks JM for posting the solution. I too had the same problem. It is working fine in the dev environment but not in live. both are in Linux. Not sure why. Your solution helped to get it working. If you see INFO: ERROR: The serialization policy file '/

GWT serialization problem

2013-03-12 Thread Вадим Коваленко
Hello, in my app I faced a problem when reloading some pages. The error is: com.google.gwt.user.client.rpc.SerializationException: java.lang.RuntimeException: Unable to find class com.google.gwt.user.client.rpc.core.java.lang.Long_FieldSerializer I've downloaded gwt sources and found that

Re: rpc serialization problem

2012-11-08 Thread Cleiton Cavassa
build the List correctly. Has anyone found a workaround for this serialization problem. Thanks GWT 1.7 GAE 1.2.2 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d

gwt openpa serialization problem

2012-10-02 Thread YinYanSI
I have gwt app with openjpa 2.0 *gwt compiler compile OK * *Compiling module skladisce.SkladisceGWT* * Compiling 6 permutations* * Compiling permutation 0...* * Compiling permutation 1...* * Compiling permutation 2...* * Compiling permutation 3...* * Compiling

Re: gwt openpa serialization problem

2012-10-02 Thread Jens
Your entity is serializable and you want to send it from server to client. Most JPA providers enhance entity classes to support features like lazy loading, so although you have used a java.util.List in your entity code it could very well become an org.apache.openjpa.kernel.DelegatingResultList

GWT SERIALIZATION PROBLEM

2012-04-27 Thread Nitheesh Chandran
Hello Guys , I have a problem ,I want to save an object to the database. I passed the object to the server using a function. Like this http://www.easywayserver.com/blog/how-to-serializable-object-in-java-2/. But my RPC is getting failed every time. What will be the problem ? i used

Re: GWT SERIALIZATION PROBLEM

2012-04-27 Thread Alfredo Quiroga-Villamil
Hard to tell without seeing code or stack trace. Please provide: 1. A bit of code illustrating the main players. DTO, Service, ServiceAsync, ServiceImpl method. 2. Stack Trace for the failure. Regards, Alfredo On Wed, Apr 25, 2012 at 6:20 AM, Nitheesh Chandran nithe...@aviamatica.com wrote:

Re: GWT Date Serialization problem

2011-04-01 Thread Juan Pablo Gardella
But is the same time. I think gwt serialize the long value of the time and then create a date in client side with this value. Is this correct? 2011/4/1 Brendan Doherty bren...@propertysimplified.com How will noon fix the problem? Assuming your server is running on central time (UTC-6) and you

Re: GWT Date Serialization problem

2011-04-01 Thread Paul Robinson
The standard GWT RPC serialization for dates writes out the long value, so that should be sent correctly. The error comes because when you convert that long to a string, you do so in a particular timezone, and your choice of timezone can change the day that you think this time point occurred

Re: GWT Date Serialization problem

2011-04-01 Thread Andy
This is the reason we created the UTCDateBox. We only send a Long back and forth between the client and server and that Long always represents midnight in UTC. This avoids confusion when users in different time zones are choosing dates. You can see the UTCDateBox demo and source:

GWT Date Serialization problem

2011-03-31 Thread SVR
Has anybody noticed a problem with dates and RPC. Basically I receive a date from the backend and able to see the correct date in the RPC Impl in the debugger but when I set the Date field on the client (after the the results are serialized), I see that the date is offset by a day. I havnt tested

Re: GWT Date Serialization problem

2011-03-31 Thread Juan Pablo Gardella
How are you do when I set the Date field on the client? The serialization to server-client is Ok, but to client-server fail? Juan 2011/3/31 SVR svr...@gmail.com Has anybody noticed a problem with dates and RPC. Basically I receive a date from the backend and able to see the correct date in

Re: GWT Date Serialization problem

2011-03-31 Thread SVR
Serialization from Client to Server is OK, but Server to Client fails. I enter say Jan 31, 1979 (a simple Text with DatePicker) and it get saved to the Database as such, but when I get back the value from the server, I can see the correct value in the server (RPC Impl) as Jan 31, 1979, but when it

Re: GWT Date Serialization problem

2011-03-31 Thread Juan Pablo Gardella
You sent the date to client via a asynchCall. So you receive onSuccesfull or onFailure. You are update in onSuccesful the date of the simple text with which value? Can you share the relevant code? Are you use DateBox? Juan 2011/3/31 SVR svr...@gmail.com Serialization from Client to Server is

Re: GWT Date Serialization problem

2011-03-31 Thread SVR
Simplifying my use case: I have a Text box from which I read the value from: Sender is a shared datastore between the client and the server and is of the form: Sender{ java.util.date dateOfBirth; } GWT Client Side: TextBox birthDate; String medDateFormat =

Re: GWT Date Serialization problem

2011-03-31 Thread Josh Berry
Pretty sure this is a simple issue of the timezone messing things up. (Sorry for not having a solution right off, just something to look into.) On Thu, Mar 31, 2011 at 4:03 PM, SVR svr...@gmail.com wrote: Simplifying my use case: I have a Text box from which I read the value from: Sender is

Re: GWT Date Serialization problem

2011-03-31 Thread Juan Pablo Gardella
Check if the value returned by public long Date.getTime() are different. In dabase is store correctly suppose. 2011/3/31 Josh Berry tae...@gmail.com Pretty sure this is a simple issue of the timezone messing things up. (Sorry for not having a solution right off, just something to look

Re: GWT Date Serialization problem

2011-03-31 Thread cri
I've experienced and have had to deal with this problem. It is a timezone related problem. Here's an example. 1) You initialize a Date object from the database on the server side. Say the date in the database is March 15. Your Date object will be initialized to March 15 at midnight, because a

Re: GWT Date Serialization problem

2011-03-31 Thread Martin Larsson
On 31. mars 2011 22:33, cri wrote: The solution that I've always used is to pass dates between the GWT client and server as Strings, e.g. MM/dd/. Or set the time component to noon instead of midnight. M. -- You received this message because you are subscribed to the Google Groups Google

Re: GWT Date Serialization problem

2011-03-31 Thread Brendan Doherty
How will noon fix the problem? Assuming your server is running on central time (UTC-6) and you pass it to a client I'm running here in New Zealand (currently UTC+13), your March 15 noon will become March 16 6am. You'll still be a day off. -- You received this message because you are

Re: OpenJPA GWT serialization problem.

2010-11-09 Thread dparish
I tried using em.clear(). I did this after loading and accessing my object. I also changed my fetch type to EAGER. Sadly it still fails ; ( -Dave On Nov 9, 6:59 am, dparish dpar...@gmail.com wrote: Thanks David. I tried LAZY and EAGER. Both caused the problem. For #2, that seems

Re: OpenJPA GWT serialization problem.

2010-11-09 Thread dparish
Thanks David. I tried LAZY and EAGER. Both caused the problem. For #2, that seems promising. There's an EntityManager clear method, but that would affect all threads using the entity manager. Any thoughts on how to do that detach? On Nov 8, 8:20 pm, David Chandler drfibona...@google.com wrote:

Re: OpenJPA GWT serialization problem.

2010-11-09 Thread David Chandler
In JDO, there are pm.detachX() methods you can use to do this. In JPA, it appears detachment is automatically done via an annotation, but the detached objects will still contain non-serializable stuff. Details here: http://timepedia.blogspot.com/2009/04/google-appengine-and-gwt-now-marriage.html

OpenJPA GWT serialization problem.

2010-11-08 Thread dparish
I have an entity with a member like this: @Entity public class Foo implements Serializable{ @OneToMany(mappedBy=foo,targetEntity=InternalText.class, fetch=FetchType.EAGER) // I tried Lazy too. private ArrayListInternalTextinternalTextEntries; When I try to use Foo I

Re: OpenJPA GWT serialization problem.

2010-11-08 Thread David Chandler
Hi dparish, There are three issues here: 1. GWT needs a fully populated object graph to send back to the client. Lazy fetching will not work across the client / server boundary, so you must ensure that your code fetches all relations eagerly (via an annotation or a separate call if needed). 2.

enum Serialization problem

2010-10-07 Thread javest
Hi I have enum in my class which is passed through RPC. when I am looking into the .gwt.rpc and rpc.log files my enum is there, seems Serialization is ok. Till now my application is working fine (actually that enum is not used on the client's side, only on the server layer), but recently I

[gwt-contrib] Re: Fix for date serialization problem in JsonRequestProcessor. Datanucleus returns custom subtypes ... (issue790801)

2010-08-22 Thread Amit Manjhi
LGTM. On Sun, Aug 22, 2010 at 2:07 AM, cromwell...@google.com wrote: Reviewers: amitmanjhi, rjrjr, Description: Fix for date serialization problem in JsonRequestProcessor. Datanucleus returns custom subtypes of java.util.Date from the datastore, which causes Dates to be serialized

[gwt-contrib] [google-web-toolkit] r8619 committed - Fix for date serialization problem in JsonRequestProcessor. Datanucleu...

2010-08-22 Thread codesite-noreply
Revision: 8619 Author: gwt.mirror...@gmail.com Date: Sun Aug 22 07:49:19 2010 Log: Fix for date serialization problem in JsonRequestProcessor. Datanucleus returns custom subtypes of java.util.Date from the datastore, which causes Dates to be serialized as english strings. Review at http

Re: Serialization Problem

2010-06-27 Thread Ahmed Shoeib
hi Sebastian Rothbucher , i founded the problem in returning arrayList of object from Member Class i replaced this with Array one dimension of Member Class ans this problem solved do you have any comment about why there is not available to return arrayList thanks for reply .. best

Re: Serialization Problem

2010-06-25 Thread Sebastian Rothbucher
Hi Ahmed, does your Member class contain associations to other classes? If yes, I guess to have to repackage the lists as well... (i.e. create a new Hashtable and so on). Another question could be if you can have annotated classes on the client or you have to copy those classes as well, i.e. have

Serialization Problem

2010-06-15 Thread Ahmed Shoeib
Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'org.datanucleus.store.appengine.query.StreamingQueryResult' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded.

Serialization problem -- nested ArrayLists are full of NULL instead of data

2010-03-25 Thread Daniel Kvasnicka jr.
Hi guys, I'm using GWT and I have problem with sending nested ArrayLists through a RPC service. The data produced by the service look like this: ArrayList of objects of type A. every A has a (Array)List of B property every B has a (Array)List of C property that property contains

Re: Serialization problem -- nested ArrayLists are full of NULL instead of data

2010-03-25 Thread Thad
You may have to do a deep copy of your arrays. For example, I had to do a deep copy to get a copy of a window location parameter map: private HashMapString, ListString getParamMap() { MapString, ListString paramMap = Window.Location.getParameterMap(); //

Re: RPC and MapString, Object serialization problem

2010-03-16 Thread kriswpl
Thanks again guys for the response. I was thinking what Paul's solution to take and I like 1st one with: public abstract class PropertyT implements Serializable { T value; } However, I don't see what way GWT serializer may know in this service method: HashMapString, Property? getFoo();

Re: RPC and MapString, Object serialization problem

2010-03-16 Thread Paul Robinson
It's not the same problem. With an RPC method of HashMapString, Property? getFoo(), where Property is abstract, GWT will look for all subclasses of Property on the classpath and build the RPC code for them. If you have one Property subclass per data type, then since the Property subclasses

Re: RPC and MapString, Object serialization problem

2010-03-12 Thread kriswpl
Thank you Paul for your reply. FYI - I use Map not to use DTO - I put all properties (Long, Date) to this Map. So I have another question --- is it any way to define what kind of objects (Date, Long, Double, etc.) can show in Map. I found information @gwt.typeArgs something. I mean - is it

Re: RPC and MapString, Object serialization problem

2010-03-12 Thread Martin Trummer
I strongly recommend to use DTO's because then you have all the benefits of type-safety which is one of the most compelling reasons to use GWT. however, if you really don't care about that, you could use a HashMapString, String and simply call the toString() method on the serverside for every

Re: RPC and MapString, Object serialization problem

2010-03-12 Thread Paul Robinson
You can create a class that wraps everything you might want to transport and use that class in the interface instead. One way is like this: public abstract class PropertyT implements Serializable { T value; } public class LongProperty extends PropertyLong { } public

RPC and MapString, Object serialization problem

2010-03-11 Thread kriswpl
Hi, I tried to invoke a method in interface thru RPC. Interface method is: public MapString, Object test(); and in implementation I put into returned map, object java.util.Long (which is serializable:) ): map.put(long, new Long(1)); and I get an error - see below: BUT, when I add another method

Re: RPC and MapString, Object serialization problem

2010-03-11 Thread Paul Robinson
kriswpl wrote: Interface method is: public MapString, Object test(); and in implementation I put into returned map, object java.util.Long (which is serializable:) ): map.put(long, new Long(1)); Where do I do it wrong? GWT does a great job of putting as little into the javascript as

Re: rpc serialization problem

2009-10-26 Thread Benjamin
I'm passed these problems now - a couple of things i learned when creating object and storing in data nucleus for later retrieval over an RPC call - Most importantly, if you are returning a complex object (like one with a list of another type of object) you need to return a copy, not the object

Re: rpc serialization problem

2009-10-08 Thread Dominik Steiner
, but something in Datanucleus doesn't build the List correctly. Has anyone found a workaround for this serialization problem. Thanks GWT 1.7 GAE 1.2.2- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you

Re: rpc serialization problem

2009-10-08 Thread brancoch
anyone found a workaround for this serialization problem. Thanks GWT 1.7 GAE 1.2.2- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group

Re: rpc serialization problem

2009-10-07 Thread Lubomir
in Datanucleus doesn't build the List correctly. Has anyone found a workaround for this serialization problem. Thanks GWT 1.7 GAE 1.2.2- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you

Re: rpc serialization problem

2009-10-06 Thread Benjamin
anyone found a workaround for this serialization problem. Thanks GWT 1.7 GAE 1.2.2- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post

Re: rpc serialization problem

2009-10-06 Thread Sudeep S
... The entities are successfully read from the datastore, but something in Datanucleus doesn't build the List correctly. Has anyone found a workaround for this serialization problem. Thanks GWT 1.7 GAE 1.2.2- Hide quoted text - - Show quoted text

Re: Serialization problem using CustomFieldSerializer(s) and specifying specific .java files in gwt module xml

2009-10-04 Thread brancoch
I had something similar using GWT2.0 and GAE plugin in Eclipse. I was using a custom serializable object (UserContext) which was holding a reference to SetString. I was working ok for awhile then suddently stopped working. After reviewing all items that was introduced since the last time it was

Serialization problem using CustomFieldSerializer(s) and specifying specific .java files in gwt module xml

2009-10-03 Thread Andrius Juozapaitis
Hey, I've been trying to emulate parts of 3rd party library and stumbled upon a problem. The library has certain classes with java.lang.Object references that I wanted to get rid of, and I want the classes to implement java.io.Serializable. The package structure is like that: -java/dao/

Re: rpc serialization problem

2009-09-22 Thread Angel
a workaround for this serialization problem. Thanks GWT 1.7 GAE 1.2.2 --~--~-~--~~~---~--~~ 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

Re: rpc serialization problem

2009-09-03 Thread Chris Lowe
'org.datanucleus.sco.backed.List' was not included in the set of types  which can be serialized... The entities are successfully read from the datastore, but something in Datanucleus doesn't build the List correctly. Has anyone found a workaround for this serialization problem. Thanks GWT 1.7 GAE

Re: rpc serialization problem

2009-09-02 Thread jvoro...@googlemail.com
, but something in Datanucleus doesn't build the List correctly. Has anyone found a workaround for this serialization problem. Thanks GWT 1.7 GAE 1.2.2 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web

rpc serialization problem

2009-08-04 Thread mike
'org.datanucleus.sco.backed.List' was not included in the set of types which can be serialized... The entities are successfully read from the datastore, but something in Datanucleus doesn't build the List correctly. Has anyone found a workaround for this serialization problem. Thanks GWT 1.7 GAE 1.2.2

RPC/Serialization problem with StockWatcher tutorial

2009-06-03 Thread james.o...@gmail.com
I'm going through the StockWatcher tutorial and I get to the RPC part (http://code.google.com/webtoolkit/tutorials/1.6/RPC.html). At the first test point I get this error message as expected ... [ERROR] Type 'com.google.gwt.sample.stockwatcher.client.StockPrice' was not serializable and has

Re: RPC/Serialization problem with StockWatcher tutorial

2009-06-03 Thread Isaac Truett
Your StockPrice doesn't have a no-arg constructor. On Wed, Jun 3, 2009 at 1:27 PM, james.o...@gmail.com james.o...@gmail.com wrote: I'm going through the StockWatcher tutorial and I get to the RPC part (http://code.google.com/webtoolkit/tutorials/1.6/RPC.html). At the first test point I

Re: RPC/Serialization problem with StockWatcher tutorial

2009-06-03 Thread James Orr
Thanks! I guess I missed that line earlier in the tutorial. On Wed, Jun 3, 2009 at 2:08 PM, Isaac Truett itru...@gmail.com wrote: Your StockPrice doesn't have a no-arg constructor. On Wed, Jun 3, 2009 at 1:27 PM, james.o...@gmail.com james.o...@gmail.com wrote: I'm going through the

Serialization problem

2009-05-21 Thread Yulia
Hello I have class StringValue which extends abstract class AttributeValue. I call some method on server side, which should return instance of this class. When the method tries to return value the folowing error happens: SEVERE: Exception while dispatching incoming RPC call

Re: Serialization problem

2009-05-21 Thread Jim
You can not use Object in VectorObject for GWT client code. You may try to use VectorSerializable Jim http://www.gwtorm.com - GWT ORM http://code.google.com/p/dreamsource-orm/ On May 21, 6:05 am, Yulia yuli...@gmail.com wrote: Hello I have class StringValue which extends abstract class

Re: Serialization problem

2009-05-21 Thread Yulia
I didn't try VectorSerializable, don't know if it works. I decide to make a class with fields for data I want to return instead of using VectorObject. Now it works. Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Serialization problem

2009-01-12 Thread huma
Thank you for your answer! I will see that information. But what is your opinion about the error message This application is out of date, please click the refresh button on your browser. . I would like to know why I'm receveing that message. Thank you! On 12 Jan, 15:14, ganesh machkure

Serialization problem

2009-01-11 Thread huma
Hi people. I've been developing an application with hibernate + spring + gwt, and i've come to a point where i need some help from you! I know that hibernate generates PersistentBag for Lists ( Hibernate implementation of List), and I need to serialize this lists. But I know that GWT doesn't

Re: Bean Serialization Problem: com.google.gwt.user.client.rpc.SerializationException: Type 'com.dg.common.client.beans.DGUser' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable'

2008-11-06 Thread JM
I fixed it by implementing GWT's IsSerializable interface instead of Java's Serializable... Can't figure out why it works on Winows env. JM On Nov 5, 4:01 pm, JM [EMAIL PROTECTED] wrote: ping2ravi I'm glad you came back to tell it's now working for you! But think of all those people with the

Re: Bean Serialization Problem: com.google.gwt.user.client.rpc.SerializationException: Type 'com.dg.common.client.beans.DGUser' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable'

2008-11-05 Thread JM
ping2ravi I'm glad you came back to tell it's now working for you! But think of all those people with the same problem you had... like me. Any idea? My classes are implementing Serializable. It's working fine on my development environment (Windows). But now that I try an integration (Linux), I

Re: Bean Serialization Problem: com.google.gwt.user.client.rpc.SerializationException: Type 'com.dg.common.client.beans.DGUser' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable'

2008-10-23 Thread [EMAIL PROTECTED]
Hi May we know what was causing the difference in file-names? I am having a similar exception G. On Sep 22, 1:06 pm, ping2ravi [EMAIL PROTECTED] wrote: i found the problem why file names were different. Thanks On Sep 22, 11:18 am, ping2ravi [EMAIL PROTECTED] wrote: Hi All, My

Re: GWT Serialization problem !!!!

2008-10-17 Thread Sam
Hi olivier, Thanks a lot for prompt reply, The solution you said works fine if we extend our class from RemoteServiceServlet . However in my case I am not extending the class from RemoteServiceServlet . I am making the use of HandlerAdapter class of spring for integrating spring wid GWT. Is

Re: GWT Serialization problem !!!!

2008-10-17 Thread Sam
Hi olivier, Thanks a lot for prompt reply, The solution you said works fine if we extend our class from RemoteServiceServlet . However in my case I am not extending the class from RemoteServiceServlet . I am making the use of HandlerAdapter class of spring for integrating spring wid GWT. Is

Re: GWT Serialization problem !!!!

2008-10-17 Thread olivier nouguier
Hi sam, I had the same issue while integrating with acegi, what I choose was to extract the code of RemoteServiceServlet in a helper On Fri, Oct 17, 2008 at 8:40 AM, Sam [EMAIL PROTECTED] wrote: Hi olivier, Thanks a lot for prompt reply, The solution you said works fine if we extend

Re: GWT Serialization problem !!!!

2008-10-17 Thread Sam
Can you please share that code to me ? That will be a great help !! --~--~-~--~~~---~--~~ 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

Re: GWT Serialization problem !!!!

2008-10-15 Thread olivier nouguier
Hi You should call : RPC.decodeRequest(payload,this.remoteServiceClass, *this*); *this* being the remote servlet (SerializationPoliciyProvider) To resolve the serialization policy (That allow the GWT serialization of Serializable). If no SerializationPoliciyProvider or his the resolution fails

Re: GWT Serialization problem !!!!

2008-10-15 Thread olivier nouguier
Sorry for my poor expression... If no SerializationPoliciyProvider is given (your case) or if the resolution fails GWT DefaultPolicies (GWT 1.3) is applied and Object must be IsSerializable. On Wed, Oct 15, 2008 at 4:54 PM, olivier nouguier [EMAIL PROTECTED] wrote: Hi You should call :