Re: Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-30 Thread Ralf Fischer
On Fri, Jan 30, 2009 at 10:10 AM, mleneveut wrote: > > I put some @Conversion(), @Element(value = java.lang.Long.class) and > @TypeConversion(rule = ConversionRule.COLLECTION, converter = > "java.lang.Long") in my Action and it's not working better. > > So I set the convertion in a properties file

Re: Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-30 Thread mleneveut
I put some @Conversion(), @Element(value = java.lang.Long.class) and @TypeConversion(rule = ConversionRule.COLLECTION, converter = "java.lang.Long") in my Action and it's not working better. So I set the convertion in a properties file with : Element_idsCommerciaux=java.lang.Long and it is worki

Re: Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-29 Thread Dale Newfield
mleneveut wrote: What I can't understand is why it works in some environments, and no others. The war is the same. Probably because there were known bugs in 2.1.0 (both struts and xwork). As such, it was never intended for general use. The first GA (General Availability) 2.1.x was 2.1.6. U

Re: Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-29 Thread mleneveut
Hi, Thanks for your reply. What I can't understand is why it works in some environments, and no others. The war is the same. And why do you say that the "generic type of the idsCommerciaux list is not available at runtime" ? I defined it as a List in the Action. So Struts should know that it ha

Re: Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-29 Thread Ralf Fischer
Hi, On Thu, Jan 29, 2009 at 10:06 AM, mleneveut wrote: > > Hi all, > > I have a very strange thing. I have a multiple select in my JSP, and a > List of ids in my Action. When I submit the form, I iterate on that > List of Long, and I have this error : > > java.lang.ClassCastException: java.lang.S

Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-29 Thread mleneveut
Hi all, I have a very strange thing. I have a multiple select in my JSP, and a List of ids in my Action. When I submit the form, I iterate on that List of Long, and I have this error : java.lang.ClassCastException: java.lang.String Struts has String in the List instead of Long. The strange thin