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 interface that returns a dummy class which references all your 
classes you want to use in your load method. 

abhiy...@gmail.com schrieb am Freitag, 22. Juli 2022 um 15:43:24 UTC+2:

> 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 Class object 
> could not be loaded. For security purposes, this type will not be 
> serialized.: instance = com.xyz.nos.model.NosOptionModel@6cad8f33
>
> 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 Class object 
> could not be loaded. For security purposes, this type will not be 
> serialized.: instance = com.xyz.nos.model.NosOptionModel@5fc5e111
>
> SEVERE: Exception while dispatching incoming RPC call
> com.google.gwt.user.client.rpc.SerializationException: Type 
> 'com.xyz.nos.model.NosCaseDetailModel' was not included in the set of types 
> which can be serialized by this SerializationPolicy or its Class object 
> could not be loaded. For security purposes, this type will not be 
> serialized.: instance = com.xyz.nos.model.NosCaseDetailModel@af3642f
>
> SEVERE: Exception while dispatching incoming RPC call
> com.google.gwt.user.client.rpc.SerializationException: Type 
> 'com.xyz.nos.model.CountryGroupModel' was not included in the set of types 
> which can be serialized by this SerializationPolicy or its Class object 
> could not be loaded. For security purposes, this type will not be 
> serialized.: instance = com.xyz.nos.model.CountryGroupModel@51987007
>
> SEVERE: Exception while dispatching incoming RPC call
> com.google.gwt.user.client.rpc.SerializationException: Type 
> 'com.xyz.nos.model.NosUser' was not included in the set of types which can 
> be serialized by this SerializationPolicy or its Class object could not be 
> loaded. For security purposes, this type will not be serialized.: instance 
> = com.xyz.nos.model.NosUser@28bbfa7f
>
> I am doing GWT RPC for populating liststore of combobox and getting above 
> exception while performing it from EntryPoint class. All the above classes 
> are Pojo's and all the fields of these classes are Serializable
>
> I have tried all possible solutions given in java - GWT - RPC 
> SerializationException - Stack Overflow 
> 
>
> I have defined my service as below 
> public interface INamedComboListDataProvider extends RemoteService {
> public List load(String name);
> }
>
> I also have checked my *serializationWhitelist *and it only contain 
> following 25 classes
> {class com.google.gwt.user.client.ui.TreeListenerCollection=true, class 
> java.lang.String=true, class 
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException=true, 
> class com.google.gwt.user.client.ui.FocusListenerCollection=true, class 
> com.google.gwt.user.client.rpc.RpcTokenException=true, class 
> java.util.LinkedList=true, class java.lang.RuntimeException=false, class 
> com.google.gwt.user.client.ui.LoadListenerCollection=true, class 
> com.google.gwt.user.client.ui.ClickListenerCollection=true, class 
> com.google.gwt.user.client.ui.FormHandlerCollection=true, class 
> java.lang.Throwable=false, class 
> com.google.gwt.user.client.ui.KeyboardListenerCollection=true, class 
> com.google.gwt.user.client.ui.MouseListenerCollection=true, class 
> com.google.gwt.user.client.ui.TabListenerCollection=true, class 
> java.util.Vector=true, class 
> com.google.gwt.user.client.ui.ChangeListenerCollection=true, class 
> com.google.gwt.user.client.ui.ScrollListenerCollection=true, class 
> com.google.gwt.user.client.ui.PopupListenerCollection=true, class 
> com.google.gwt.user.client.ui.MouseWheelListenerCollection=true, class 
> java.util.Arrays$ArrayList=true, class java.lang.Exception=false, class 
> java.util.ArrayList=true, class java.util.Collections$EmptyList=true, class 
> java.util.Collections$SingletonList=true, class 
> com.google.gwt.user.client.ui.TableListenerCollection=true}
>
> I also have added project folder structure in attachment.
> Can anybody guide me where I am going wrong and why does the 
> serializationwhilteList does not contain the pojo models ?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group 

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 Class object 
could not be loaded. For security purposes, this type will not be 
serialized.: instance = com.xyz.nos.model.NosOptionModel@6cad8f33

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 Class object 
could not be loaded. For security purposes, this type will not be 
serialized.: instance = com.xyz.nos.model.NosOptionModel@5fc5e111

SEVERE: Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type 
'com.xyz.nos.model.NosCaseDetailModel' was not included in the set of types 
which can be serialized by this SerializationPolicy or its Class object 
could not be loaded. For security purposes, this type will not be 
serialized.: instance = com.xyz.nos.model.NosCaseDetailModel@af3642f

SEVERE: Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type 
'com.xyz.nos.model.CountryGroupModel' was not included in the set of types 
which can be serialized by this SerializationPolicy or its Class object 
could not be loaded. For security purposes, this type will not be 
serialized.: instance = com.xyz.nos.model.CountryGroupModel@51987007

SEVERE: Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type 
'com.xyz.nos.model.NosUser' was not included in the set of types which can 
be serialized by this SerializationPolicy or its Class object could not be 
loaded. For security purposes, this type will not be serialized.: instance 
= com.xyz.nos.model.NosUser@28bbfa7f

I am doing GWT RPC for populating liststore of combobox and getting above 
exception while performing it from EntryPoint class. All the above classes 
are Pojo's and all the fields of these classes are Serializable

I have tried all possible solutions given in java - GWT - RPC 
SerializationException - Stack Overflow 


I have defined my service as below 
public interface INamedComboListDataProvider extends RemoteService {
public List load(String name);
}

I also have checked my *serializationWhitelist *and it only contain 
following 25 classes
{class com.google.gwt.user.client.ui.TreeListenerCollection=true, class 
java.lang.String=true, class 
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException=true, 
class com.google.gwt.user.client.ui.FocusListenerCollection=true, class 
com.google.gwt.user.client.rpc.RpcTokenException=true, class 
java.util.LinkedList=true, class java.lang.RuntimeException=false, class 
com.google.gwt.user.client.ui.LoadListenerCollection=true, class 
com.google.gwt.user.client.ui.ClickListenerCollection=true, class 
com.google.gwt.user.client.ui.FormHandlerCollection=true, class 
java.lang.Throwable=false, class 
com.google.gwt.user.client.ui.KeyboardListenerCollection=true, class 
com.google.gwt.user.client.ui.MouseListenerCollection=true, class 
com.google.gwt.user.client.ui.TabListenerCollection=true, class 
java.util.Vector=true, class 
com.google.gwt.user.client.ui.ChangeListenerCollection=true, class 
com.google.gwt.user.client.ui.ScrollListenerCollection=true, class 
com.google.gwt.user.client.ui.PopupListenerCollection=true, class 
com.google.gwt.user.client.ui.MouseWheelListenerCollection=true, class 
java.util.Arrays$ArrayList=true, class java.lang.Exception=false, class 
java.util.ArrayList=true, class java.util.Collections$EmptyList=true, class 
java.util.Collections$SingletonList=true, class 
com.google.gwt.user.client.ui.TableListenerCollection=true}

I also have added project folder structure in attachment.
Can anybody guide me where I am going wrong and why does the 
serializationwhilteList does not contain the pojo models ?


-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/4714130a-cc2e-4936-8d42-f0067b6caeb4n%40googlegroups.com.


Re: [WARN] 404 - GET //10.14.0.224:8888/sampleapp/sampleapp.nocache.js

2022-07-22 Thread Abhishek Yadav

Thanks Frank & Craig Mitchell.  It is working now.
On Wednesday, July 20, 2022 at 10:33:59 AM UTC+5:30 
ma...@craig-mitchell.com wrote:

> I thought you had to put a "-bindAddress 0.0.0.0" to get access to your 
> actual IP address.
>
> Have you tried accessing it from http://127.0.0.1:/ ?
>
> On Wednesday, 20 July 2022 at 12:32:02 am UTC+10 frank.h...@googlemail.com 
> wrote:
>
>> Inside your module descriptor, is the rename-to attribute of the module 
>> tag also "sampleapp"?
>>
>> abhiy...@gmail.com schrieb am Montag, 18. Juli 2022 um 19:18:00 UTC+2:
>>
>>> Hello Everyone,
>>>
>>> I am getting below error when trying to start application through GWT 
>>> plugin in eclipse. I am using GWT 2.9.0. I have renamed my module to 
>>> *sampleapp 
>>> *and in the html file I have used the below script in html file
>>> * *
>>>
>>> 07:18 20:56:17 |  INFO | [main] | 
>>> org.eclipse.jetty.server.handler.ContextHandler:doStart(824) | Started 
>>> c.g.g.d.s.j.WebAppContextWithReload@238d3e2d{}
>>> 07:18 20:56:18 |  INFO | [main] | 
>>> org.eclipse.jetty.server.AbstractConnector:doStart(330) | Started 
>>> ServerConnector@6e4484d6{HTTP/1.1,[http/1.1]}{0.0.0.0:}
>>> 07:18 20:56:18 |  INFO | [main] | 
>>> org.eclipse.jetty.server.Server:doStart(399) | Started @32366ms
>>> *[WARN] 404 - GET //10.14.0.224:/ * 
>>> *sampleapp**/**sampleapp**.nocache.js (10.14.0.224)*
>>>Request headers
>>>   Host: 10.14.0.224:
>>>   Connection: keep-alive
>>>   User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) 
>>> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
>>>   Accept: */*
>>>   Referer: http://10.14.0.224:/sampleapp.html
>>>   Accept-Encoding: gzip, deflate
>>>   Accept-Language: en-US,en;q=0.9
>>>Response headers
>>>   Cache-Control: must-revalidate,no-cache,no-store
>>>   Content-Type: text/html;charset=iso-8859-1
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/bccecf3d-ed27-4a1a-879a-02aa96a3a823n%40googlegroups.com.


Re: Startup error: Object of class 'com.google.gwt.dev.shell.jetty.JettyLauncher.WebAppContextWithReload' is not of type 'org.eclipse.jetty.webapp.WebAppContext'.

2022-07-22 Thread Thomas Broyer


On Thursday, July 21, 2022 at 5:10:40 PM UTC+2 mmo wrote:

> OK - thanks for letting me know! I interpret that such that gwt:run and 
> gwt:debug aren't working/supported anymore, right?


Well, first, regarding the plugin you're using: “The legacy maven plugin is 
still supported but it is strongly encouraged to use the new one for new 
projects.” https://gwt-maven-plugin.github.io/gwt-maven-plugin/
That however doesn't mean gwt:run and gwt:debug aren't supported: as long 
as you don't need jetty-web.xml, they work perfectly fine.
Should you use them though? I don't think so (and for many reasons).

Do you test and develop in a Tomcat or what's your preferred setup?
>

My preferred setup is https://github.com/tbroyer/gwt-maven-archetypes/ , 
with a clear separation of client and server code. This only works with 
"that other gwt-maven-plugin" that was specifically designed for 
multi-module Maven projects (well, technically you can make it work with 
the "legacy plugin", and early versions of the archetypes did just that, 
but it's too hackish for me).
(my actual preferred setup is to not build a WAR, and use Gradle rather 
than Maven, but that's outside the scope of that discussion)

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/d5ad99e1-2b05-4f14-a6fc-80a0c8c8356dn%40googlegroups.com.


Re: How interpret error messages?

2022-07-22 Thread Jens
GWT supports the validation API 1.0.0 with hibernate validator as 
implementation. GWT itself only ships/depends on the validation api but 
implementation needs to be added manually. The documentation how to use it 
can be found 
at https://www.gwtproject.org/doc/latest/DevGuideValidation.html

Please note that validation API support is unmaintained (that's why it is 
still validation API 1.0.0). A GWT user has a project for newer validation 
API, see: 

https://gitlab.com/ManfredTremmel/gwt-bean-validators

-- J.

mmo schrieb am Donnerstag, 21. Juli 2022 um 18:53:08 UTC+2:

> Sorry - if you get this twice - I accidentally have hit the PostMessage 
> button before and had to delete the message again.
>
> Just tried to dig deeper here:  the gwt-user.jar contains a file 
> /org/hibernate/validator/HibernateValidator.gwt.xml.
>
> In the GWT-file I see a section
>
>   ...
>   
> 
> 
> 
> 
>   
>   ...
> The file engine/NodeImpl.[java|class] however, is not in that .jar. 
> Where's that supposed to come from?
>
> On Thursday, July 21, 2022 at 6:39:11 PM UTC+2 mmo wrote:
>
>> When I compile my application with failOnError=true and logLevel=TRACE I 
>> see errors like this:
>>
>> ...
>> [INFO]Tracing compile failure path for type 
>> 'org.hibernate.validator.engine.PathImpl'
>> [INFO]   [ERROR] Errors in 
>> 'jar:file:/D:/m2repository/rjp/org/gwtproject/gwt-user/2.10.0/gwt-user-2.10.0.jar!/org/hibernate/validator/super/org/hibernate/validator/engine/PathImpl.java'
>> [INFO]  [ERROR] Line 202: The constructor NodeImpl(String) is 
>> undefined
>> [INFO]  [ERROR] Line 95: The constructor NodeImpl(Path.Node) is 
>> undefined
>> [INFO]  [ERROR] Line 209: The method setIndex(Integer) is 
>> undefined for the type NodeImpl
>> [INFO]  [ERROR] Line 212: The method setKey(String) is undefined 
>> for the type NodeImpl
>> [INFO]  [ERROR] Line 72: The constructor NodeImpl(String) is 
>> undefined
>> [INFO]  [ERROR] Line 84: The constructor NodeImpl(Path.Node) is 
>> undefined
>> [INFO]  [ERROR] Line 204: The method setInIterable(boolean) is 
>> undefined for the type NodeImpl
>> ...
>>
>> How does one interpret these? It seems to me as if the 
>> ...org/gwtproject/gwt-user/2.10.0/gwt-user-2.10.0.jar references some 
>> class org/hibernate/validator/engine/PathImpl.java and can't find its 
>> source.
>> Is that intgerpretation correct? If so: what do I need to import to make 
>> that source available? Certainly not the entire Hibernate sources, do I?
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/e3e2e8b1-ab3c-4f49-9864-585c5fa80ac0n%40googlegroups.com.