Re: Sporadic errors during compilation, Checking type argument 0 of type 'java.util.Arrays.ArrayList, no default constructor.

2013-03-28 Thread MarDeMar
Finally I find the solution!
In my dto I declared a property of type class X in which I declared an enum 
in this manner:

  public enum Type {
SHORT (S), 
MEDIUM (M), 
LONG (L);
private String code;
private Type(String code) {
  this.code = code;
}
public String getCode() {
  return code;
}
  }

When I replaced the enum with constants all the strange behaviors of the 
gwt rpc generator disappeared.
I dit not test more in depth to find the right declaration of the enum, but 
now I know that this was the cause.
I could only point out to the GWT team that maybe it would be better to 
improve the error messages to help the developer to find the right field 
not compliant to the serialization policies.

Best regards
Marcello De Marco


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Sporadic errors during compilation, Checking type argument 0 of type 'java.util.Arrays.ArrayList, no default constructor.

2013-03-21 Thread MarDeMar
Unfortunately even this is not the solution!
I confirm that the behavior of the gwt compiler seems to be rather random.
Currently I only note that making a gwt compile only after a complete maven 
clean, it seems that it fixes the problem.
Anyone has the same problem?

Marcello De Marco

Il giorno martedì 19 marzo 2013 23:55:29 UTC+1, MarDeMar ha scritto:

 ERRATA CORRIGE

 The solution for me is more trivial than it seemed.
 I had this error using bean with a list property not initialized.
 For example:

 public class Order implements Serializable {
   private ListItem items;
   ...
 }

 Simply initializing the list property the error disappears:

 public class Order implements Serializable {
   private ListItem items = *new ArrayListItem()*;
   ...
 }

 For you I believe the problem is that you initialize the property always 
 with a generic and this maybe causes confusion for the generator.

 Regards
 Marcello De Marco



 Il giorno martedì 6 marzo 2012 14:42:30 UTC+1, Dan ha scritto:

 Sorry for the delay in thanking you for your reply. I understand that 
 Objects cannot be serialized, which is why I can't understand the error 
 message.

 Some more information:

 DeviceConfiguration is has a generic type, T, which extends 
 DeviceProperty which is an interface. The definition of the field 
 'properties' is as follows:

 private MapT, Serializable properties = new HashMapT, 
 Serializable();

 So how does the compiler *sometimes* get from HashMapT, Serializable to 
 TreeMapK,V - Serializable - Object?

 Thanks again, 
 Dan.

 On Monday, 27 February 2012 13:59:02 UTC, Thomas Broyer wrote:



 On Sunday, February 26, 2012 2:22:47 AM UTC+1, Dan wrote:


 [WARN] Checking all subtypes of Object which qualify for serialization 


 This is your problem.

 See 
 http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes
  



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Sporadic errors during compilation, Checking type argument 0 of type 'java.util.Arrays.ArrayList, no default constructor.

2013-03-20 Thread MarDeMar
ERRATA CORRIGE

The solution for me is more trivial than it seemed.
I had this error using bean with a list property not initialized.
For example:

public class Order implements Serializable {
  private ListItem items;
  ...
}

Simply initializing the list property the error disappears:

public class Order implements Serializable {
  private ListItem items = *new ArrayListItem()*;
  ...
}

For you I believe the problem is that you initialize the property always 
with a generic and this maybe causes confusion for the generator.

Regards
Marcello De Marco



Il giorno martedì 6 marzo 2012 14:42:30 UTC+1, Dan ha scritto:

 Sorry for the delay in thanking you for your reply. I understand that 
 Objects cannot be serialized, which is why I can't understand the error 
 message.

 Some more information:

 DeviceConfiguration is has a generic type, T, which extends DeviceProperty 
 which is an interface. The definition of the field 'properties' is as 
 follows:

 private MapT, Serializable properties = new HashMapT, 
 Serializable();

 So how does the compiler *sometimes* get from HashMapT, Serializable to 
 TreeMapK,V - Serializable - Object?

 Thanks again, 
 Dan.

 On Monday, 27 February 2012 13:59:02 UTC, Thomas Broyer wrote:



 On Sunday, February 26, 2012 2:22:47 AM UTC+1, Dan wrote:


 [WARN] Checking all subtypes of Object which qualify for serialization 


 This is your problem.

 See 
 http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes
  



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Sporadic errors during compilation, Checking type argument 0 of type 'java.util.Arrays.ArrayList, no default constructor.

2012-03-06 Thread Dan
Sorry for the delay in thanking you for your reply. I understand that 
Objects cannot be serialized, which is why I can't understand the error 
message.

Some more information:

DeviceConfiguration is has a generic type, T, which extends DeviceProperty 
which is an interface. The definition of the field 'properties' is as 
follows:

private MapT, Serializable properties = new HashMapT, 
Serializable();

So how does the compiler *sometimes* get from HashMapT, Serializable to 
TreeMapK,V - Serializable - Object?

Thanks again, 
Dan.

On Monday, 27 February 2012 13:59:02 UTC, Thomas Broyer wrote:



 On Sunday, February 26, 2012 2:22:47 AM UTC+1, Dan wrote:


 [WARN] Checking all subtypes of Object which qualify for serialization 


 This is your problem.

 See 
 http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes
  


-- 
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/msg/google-web-toolkit/-/T11r-bii6psJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Sporadic errors during compilation, Checking type argument 0 of type 'java.util.Arrays.ArrayList, no default constructor.

2012-02-27 Thread Thomas Broyer


On Sunday, February 26, 2012 2:22:47 AM UTC+1, Dan wrote:


 [WARN] Checking all subtypes of Object which qualify for serialization 


This is your problem.

See 
http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes
 

-- 
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/msg/google-web-toolkit/-/yxq47hYfbGIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.