Serialization error due to different folder structure on local and server machine

2022-09-09 Thread Abhishek Yadav
I am getting following error in my server tomcat logs:- *ERROR: The serialization policy file '/nos/js/4937711D6147993DCFE47FF203A0FEDC.gwt.rpc' was not found; did you forget to include it in this deployment?* On my local machine the above path is present and tomcat is able to locate it and

Re: GWT RPC Serialization Error

2022-07-25 Thread Abhishek Yadav
Thanks Jens for pointing out the issue. It is working now. On Saturday, July 23, 2022 at 2:53:30 AM UTC+5:30 Jens wrote: > Your interface has a type parameter with no upper bound so it is > effectively Object. Thus GWT does not know which classes to scan because it > will not scan every

Re: GWT RPC Serialization Error

2022-07-22 Thread Jens
Your interface has a type parameter with no upper bound so it is effectively Object. Thus GWT does not know which classes to scan because it will not scan every subclass of Object. Either give your type parameter an upper bound using a common interface or create a dummy method in your service

GWT RPC Serialization Error

2022-07-22 Thread Abhishek Yadav
I am using GWT 2.9 and I am getting below error SEVERE: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'com.xyz.nos.model.NosOptionModel' was not included in the set of types which can be serialized by this SerializationPolicy or its

GWT 2.6.0, SuperDevMode, and GWT-RPC serialization error

2014-01-31 Thread Thad Humphries
I have switched over a new project to GWT 2.6.0. I running with Maven and the GWT Maven Plugin 2.6.0-rc3. Everything was working swimmingly with GWT 2.5.1. Now I'm getting GWT-RPC serialization errors when running SuperDevMode. If I start DevMode from Maven (gwt:run) or through Eclipse, the

Re: GWT 2.6.0, SuperDevMode, and GWT-RPC serialization error

2014-01-31 Thread Juan Pablo Gardella
Seems a cache error. Did you clean all temp data? 2014-01-31 Thad Humphries thad.humphr...@gmail.com: I have switched over a new project to GWT 2.6.0. I running with Maven and the GWT Maven Plugin 2.6.0-rc3. Everything was working swimmingly with GWT 2.5.1. Now I'm getting GWT-RPC

Re: GWT 2.6.0, SuperDevMode, and GWT-RPC serialization error

2014-01-31 Thread Thad Humphries
I thought of that since I recall something similar going from 2.4 to 2.5 (or some such upgrade). I cleared my browser cache completely and (as I said) called `mvn clean` to remove target. I also removed the www-test and gwt-unitCache directories. I even did a clean on supporting libraries. Is

Re: GWT 2.6.0, SuperDevMode, and GWT-RPC serialization error

2014-01-31 Thread Jens
When using SuperDevMode your server side code must access the GWT-RPC serialization policy files from your SDM code server (because thats the one compiling your app and generating the up-to-date policy file). This was kind of annoying with previous GWT versions but now GWT is able to download

Re: GWT 2.6.0, SuperDevMode, and GWT-RPC serialization error

2014-01-31 Thread Thad Humphries
Thank, Jens. That's working: I added -Dgwt.codeserver.port=9876 to the 'VM Arguments' in my run configuration and my RPC call works. I'm guessing there might be similar magic when running -noserver, right? I want to tackle that next, since Jetty configuration is gone with 2.6.0 and I dearly

Re: GWT 2.6.0, SuperDevMode, and GWT-RPC serialization error

2014-01-31 Thread Thad Humphries
Yes, it works with -noserver, just add -Dgwt.codeserver.port=9876 to the 'VM Arguments'. For debugging with Tomcat, I added -Dgwt.codeserver.port=9876 to JAVA_OPTS ins setenv.sh. Thanks again. On Friday, January 31, 2014 3:35:19 PM UTC-5, Thad Humphries wrote: Thank, Jens. That's working: I

Re: GWT Serialization error with HTML String content

2012-05-03 Thread dhoffer
Joseph, In this case I'm just trying to send some HTML to the server so it can be saved as a log file for the user, but the issue here really has nothing to do with HTML, it is due to new line characters in the string...could be any string. I found and fixed the problem. It was due to some

Re: GWT Serialization error with HTML String content

2012-05-03 Thread Joseph Lust
Touche, glad you got it sorted. I'll be on the lookout for newline characters in the future. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: GWT Serialization error with HTML String content

2012-05-01 Thread Joseph Lust
Dave, I know this is not exactly the answer you're looking for, but why are you trying to serialize and send HTML over the wire like that? Why not use a Uibinder to build that HTML and just send the dynamic part over the wire, which is Apr 30 2012 15:11:33? This is how such work is typically

GWT Serialization error with HTML String content

2012-04-30 Thread dhoffer
Using GWT 2.4. I'm trying to track down the root cause of this...not sure if I'm doing something wrong or this is a bug someplace. 30 Apr 2012 13:54:48,953 ERROR AtmosphereHandler []: Failed to deserialize message com.google.gwt.user.client.rpc.SerializationException: Too few tokens in RPC

Re: Serialization Error

2012-04-16 Thread l.denardo
Moreover, Set, just like List, Object etc. is NOT Serializable. If the interface does not extend Serializable, a serialization error is thrown. The fact of Set not being serializable is all but obvious, I think we all forgot this problem with RPC. Btw, this behavior is documented (in a couple

Serialization Error

2012-04-13 Thread Vincenz Mössenböck
Hey i got a serialization error in my prject... just don t konw why may be sb can help me. Here is my Code where the Error occures with some other things. if (listSvc == null) { listSvc = GWT.create(ListServices.class); } // Set up the callback object. AsyncCallbackBestellungDTO

Re: Serialization Error

2012-04-13 Thread Philippe Lhoste
On 13/04/2012 09:08, Vincenz Mössenböck wrote: private SetBestellpositionDTO alBestellpositionDTO; One of the first advices I got for making DTOs is to avoid using interfaces in them. GWT will try and generate JavaScript for all the interface implementations it can find in the classpath,

Serialization Error.... why??????

2011-12-08 Thread francescoNemesi
Hi, when serializing an ArrayList of the bean below I get the following error Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'xxx.CurrentLevel' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be

Re: Serialization Error.... why??????

2011-12-08 Thread francescoNemesi
Thanks for your reply, I am in dev mode with the internal Jetty I deleted all .rpc files, but the problem persists... On Dec 8, 12:07 pm, Jens jens.nehlme...@gmail.com wrote: Seems like your serialization policy file on your server is outdated (thats the hashcode.rpc file in your generated

Re: Serialization Error.... why??????

2011-12-08 Thread Alan Chaney
Looks like you don't have a default constructor. I believe you must provide one for GWT to be able to serialize your objects. Maybe you should look at: http://java.sun.com/developer/technicalArticles/Programming/serialization/ and also the GWT developer guide. I find it useful to create

Re: Insane RPC Serialization Error.

2011-08-26 Thread Gianluigi
... http://code.google.com/p/google-web-toolkit/issues/detail?id=6229 so weird... Da: dreamer venugopal.vasire...@gmail.com A: Google Web Toolkit google-web-toolkit@googlegroups.com Inviato: Lunedì 22 Agosto 2011 15:36 Oggetto: Re: Insane RPC Serialization Error

Re: Insane RPC Serialization Error.

2011-08-23 Thread geert3
I had a similar unexplicable problem that went away after upgrading to 2.3 - worth a shot perhaps -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Insane RPC Serialization Error.

2011-08-22 Thread Gianluigi
Hi to all, It's several days I'm struggling with this error. I make a rpc call from GWT client to a server passing an object. This pojo contain several data ... and a String with some JSON stuff. The call in DEBUG mode works absolutely fine. Not only in debug mode, but when I use the

Re: Insane RPC Serialization Error.

2011-08-22 Thread Gianluigi
Oggetto: Insane RPC Serialization Error. Hi to all, It's several days I'm struggling with this error. I make a rpc call from GWT client to a server passing an object. This pojo contain several data ... and a String with some JSON stuff. The call in DEBUG mode works absolutely fine. Not only

Re: Insane RPC Serialization Error.

2011-08-22 Thread J.Ganesan
this... Da: Gianluigi dava...@yahoo.it A: Google Web Toolkit google-web-toolkit@googlegroups.com Inviato: Lunedì 22 Agosto 2011 10:30 Oggetto: Insane RPC Serialization Error. Hi to all, It's several days I'm struggling with this error. I make a rpc call from GWT client

Re: Insane RPC Serialization Error.

2011-08-22 Thread Stefan Ollinger
don't know how I should resolve this... Da: Gianluigidava...@yahoo.it A: Google Web Toolkitgoogle-web-toolkit@googlegroups.com Inviato: Lunedì 22 Agosto 2011 10:30 Oggetto: Insane RPC Serialization Error. Hi to all, It's several days I'm struggling

Re: Insane RPC Serialization Error.

2011-08-22 Thread Jambi
-web-toolkit@googlegroups.com Inviato: Luned 22 Agosto 2011 10:30 Oggetto: Insane RPC Serialization Error. Hi to all, It's several days I'm struggling with this error. I make a rpc call from GWT client to a server passing an object. This pojo contain several data ... and a String

Re: Insane RPC Serialization Error.

2011-08-22 Thread Gianluigi
$={...} ... Da: Jambi michael.lukaszc...@googlemail.com A: Google Web Toolkit google-web-toolkit@googlegroups.com Inviato: Lunedì 22 Agosto 2011 14:48 Oggetto: Re: Insane RPC Serialization Error. Could you post the class contents? Maybe we can see something in your code. On 22 Aug., 15:08

Re: Insane RPC Serialization Error.

2011-08-22 Thread dreamer
: Gianluigidava...@yahoo.it A: Google Web Toolkitgoogle-web-toolkit@googlegroups.com Inviato: Luned 22 Agosto 2011 10:30 Oggetto: Insane RPC Serialization Error. Hi to all, It's several days I'm struggling with this error. I make a rpc call from GWT client to a server passing

Re: Insane RPC Serialization Error.

2011-08-22 Thread Stefan Ollinger
:* Re: Insane RPC Serialization Error. Could you post the class contents? Maybe we can see something in your code. On 22 Aug., 15:08, Stefan Ollinger stefan.ollin...@gmx.de mailto:stefan.ollin...@gmx.de wrote: Some days ago I had a similar problem. Development version worked fine

Re: Insane RPC Serialization Error.

2011-08-22 Thread Jambi
Try to reproduce the error with a small example. I would also recommend that. Are the classes KeyItem and LookupRow serializable? Do they implement an interface for serialization? Because they need to. check out this documentation:

Serialization error in MapString,Object with numeric object

2011-07-07 Thread Darkman97i
Hi I've got a serialization problem with a MapString,Object when object type is Integer, Double etc... the GWT show error indicating Type 'java.lang.Integer' was not included in the set of types which can be serialized by this SerializationPolicy I'm usign version 2.1.0 it's normal or it's some

回覆:Re: Serialization error

2011-06-16 Thread imsearcher
http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.RemoteProcedureCalls.SerializableTypes.html add your entity class into the typeargs annotation. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on

回覆:Re: Serialization error

2011-06-16 Thread imsearcher
this may help you. it's a workaround solution http://code.sidelab.es/projects/39/wiki/Serializaci%C3%B3n_de_JPA_en_GWT -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: 回覆:Re: Serialization error

2011-06-16 Thread Juan Pablo Gardella
This workaround is equivalent to use fetcType EAGER. I don't recommend to you. 2011/6/16 imsearcher imsearc...@gmail.com this may help you. it's a workaround solution http://code.sidelab.es/projects/39/wiki/Serializaci%C3%B3n_de_JPA_en_GWT -- You received this message because you are

Re: Serialization error

2011-06-13 Thread Juan Pablo Gardella
No hay un error en List, sino en la implementación que estás usando. Supongo que usas EclipseJPA. Estás mandando al cliente colecciones creadas por ese framework que no son serializables. Mira este link: http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html Es el mismo

Re: Serialization error

2011-06-12 Thread Henry
The solution was to comment in Empleado, this //@OneToMany(mappedBy = empleado) //private ListPedido pedidoList; And in the rest //public ListPedido getPedidoList() { //return pedidoList; //} //public void setPedidoList(ListPedido pedidoList) { //

Re: Odd serialization error

2010-06-15 Thread Simon
Finally found it! One of the referenced classes had itself a inverse reference back to Translation. It seems like Gilead cannot handle this resulting (at least for complex PKs) in a immensely large tree beeing sent back. I now use @ServerOnly on the inverse which solves the problem. Cheers

Odd serialization error

2010-06-14 Thread Simon
Hi all, I have a strange serialization problem using the following setup: GWT 2.0.3 GXT 2.1.1 Spring 3.0.2 Hibernate 3.5.1 Gilead 1.3.2 I'd like to serialize the following class: @Entity @Table(name=Core_Translation) public class Translation extends LightEntity{ @Id private

GWT RemoteServiceServlet Implementation Issue ....Serialization Error

2010-04-20 Thread keyboard_samurai
Hi, I have a requirement where my application is being accessed from a different portal itself. The portal developed is on a different technology and has a link to my application. When i directly access the application things seem to work fine. But when accessed via link it throws this strange

Re: GWT RemoteServiceServlet Implementation Issue ....Serialization Error

2010-04-20 Thread keyboard_samurai
The version of GWT used is 1.7 On Apr 20, 8:27 pm, keyboard_samurai yog...@gmail.com wrote: Hi, I have a requirement where my application is being accessed from a different portal itself. The portal developed is on a different technology and has a link to my application. When i directly

Re: Serialization Error with own class while compiling

2010-04-01 Thread Johannes Stein
nobody has a solution? On 1 Apr., 07:46, Johannes Stein johannes.st...@googlemail.com wrote: Hey folks, thank you for your help. I got it fixed. I missed to implement a zero-argument constructor in Kontakt... Damn... im so blind! But sometimes you need to have a night to rethink on it

Re: Serialization Error with own class while compiling

2010-04-01 Thread kozura
Well you know most sane people are asleep over here... You could just use the Date constructor directly with those three numbers - Date(year - 1900, month, date), which is what you then pass on to the client through RPC. The DateTimeFormat class is intended for client side use to substitute for

Serialization Error with own class while compiling

2010-03-31 Thread Johannes Stein
Hey, ive got a problem and im searching for hours to find a solution. My problem is the following: I have a little RPC-Service which returns as a result a Domain- Object (Own custom-class). But this Domain-Object could not be serialized, though i have made this Domain-class serializable with

Re: Serialization Error with own class while compiling

2010-03-31 Thread Sean
Don't have a constructor with arguments, only use Set/Gets. What's a Kontakt? Is that serializable? Fix the constructor and verify Kontakt is serializable and it should work. On Mar 31, 10:43 am, Johannes Stein johannes.st...@googlemail.com wrote: Hey, ive got a problem and im searching

Re: Serialization Error with own class while compiling

2010-03-31 Thread kozura
What are the fields of the Kontakt class? Based on the error, one of the fields under Domain is a JavaScriptObject, but nothing in your Domain class above seems to be. Also, you should just use the java.io.Serializable interface, not gwt's IsSerializable. -- You received this message because

Re: Serialization Error with own class while compiling

2010-03-31 Thread Katharina Probst
I think it's fine to have constructors with arguments (so long as you also have a zero-argument constructor), but, yes, Kontakt needs to be serializable too. kathrin On Wed, Mar 31, 2010 at 2:41 PM, Sean slough...@gmail.com wrote: Don't have a constructor with arguments, only use Set/Gets.

Re: Serialization Error with own class while compiling

2010-03-31 Thread Johannes Stein
Hey folks, thank you for your help. I got it fixed. I missed to implement a zero-argument constructor in Kontakt... Damn... im so blind! But sometimes you need to have a night to rethink on it again. Okay, but there´s one new question. In my database (dont know why it was designed this way) the

Re: List Serialization Error

2009-10-02 Thread Isaac Truett
Well, that could be a perfectly valid argument if stacktraces were capable of lying. Something's null. Denial won't get you anywhere. Something on line 19 is null. Use your debugger and find out what, then trace backwards until you find where/why. Or attack it from the other direction: start with

Re: List Serialization Error

2009-10-02 Thread Bill Michell
Look at line 19 of ServiceImpl.java I can't tell you what it is because your pasted code doesn't include file names or line numbers. If it doesn't jump out at you from that, then paste the code here. Make sure you point out which line is line 19... On 2 Oct 2009, at 18:00, Isaac Truett

List Serialization Error

2009-10-01 Thread The Coder
I have two Entities. Car and Person. Car have a List of Person. Its just for example the problem. Well, we have it: -- package br.com.oxylabtech.client.model; public class Car implements IsSerializable { // Attributes private String name; private String type;

Re: List Serialization Error

2009-10-01 Thread Isaac Truett
Because a pointer referenced on line 19 was null. http://publicint.blogspot.com/2009/04/nullpointerexception.html On Thu, Oct 1, 2009 at 11:56 AM, The Coder thales...@gmail.com wrote: I have two Entities. Car and Person. Car have a List of Person. Its just for example the problem. Well, we

[gwt-contrib] Fix issue 3815 - LinkedHashMap RPC serialization error in AppEngine

2009-08-03 Thread rice
Reviewers: bobv, Description: LinkedHashMap_CustomFieldSerializer currently uses reflection to access a private field, which fails in AppEngine. This patch provides a (possibly slower) alternative approach that does not require reflection, which is used as a fallback when reflection fails.

[gwt-contrib] Re: Fix issue 3815 - LinkedHashMap RPC serialization error in AppEngine

2009-08-03 Thread John Tamplin
On Mon, Aug 3, 2009 at 2:13 PM, Daniel Rice (דניאל רייס) r...@google.comwrote: What sort of opt-in mechanisms do you have in mind? Since this is running on the server, couldn't you clone it and do the add test there? It might be slow if it is large, but that is better than not working at

[gwt-contrib] Re: Fix issue 3815 - LinkedHashMap RPC serialization error in AppEngine

2009-08-03 Thread דניאל רייס
That could still theoretically fail if removeEldestEntry did something weird that mutated the entries. But that seems pretty unlikely to be the case. Dan On Mon, Aug 3, 2009 at 2:17 PM, John Tamplin j...@google.com wrote: On Mon, Aug 3, 2009 at 2:13 PM, Daniel Rice (דניאל רייס)

[gwt-contrib] Re: Fix issue 3815 - LinkedHashMap RPC serialization error in AppEngine

2009-08-03 Thread BobV
On Mon, Aug 3, 2009 at 2:24 PM, Daniel Rice (דניאל רייס)r...@google.com wrote:   That could still theoretically fail if removeEldestEntry did something weird that mutated the entries.  But that seems pretty unlikely to be the case. Which is basically the tension between application code (just

[gwt-contrib] Re: Fix issue 3815 - LinkedHashMap RPC serialization error in AppEngine

2009-08-03 Thread דניאל רייס
Two things occur to me: 1) Doing 'instance = instance.clone(); instance.clear()' will guarantee that neither the current map nor any of its entries can be affected. The only way something bad could happen would be if clone() or clear() were overridden to do something weird, but that would

Serialization error in using FastStringMap

2009-04-24 Thread Estelito D. Reyes III
Hi List, I am using GWT1.5 and was looking into solving that performance bottleneck with using String as key in a HashMap last week and I stumbled upon some group posts recommending usage of the FastStringMap. So I tried using the FastStringMap a few days back but I was having problems when

Re: Serialization Error

2008-11-07 Thread Greg
In order for a class to be added to the serialization policy, the class must be either a parameter to an RPC method, or a return type from an RPC method. There are a couple excpetions to this, but that's the general rule. In your RPC interface, does the type LatitudeLongitude appear in any of

Serialization Error

2008-11-06 Thread Joshua Partogi
Dear all, I encounter this problem: Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'lab.gwt. client.LatitudeLongitude' was not included in the set of types which can be seri alized by this SerializationPolicy or its Class object could not be loaded. For security