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
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 '/
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
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
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
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
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
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:
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
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
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:
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
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
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
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
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 =
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
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
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
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
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
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
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:
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
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
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.
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
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
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
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
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
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.
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
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();
//
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();
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
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
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
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
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
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
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
, 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
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
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
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
...
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
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
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/
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
'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
, 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
'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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 :
70 matches
Mail list logo