abhishek24509 / aribaweb

Automatically exported from code.google.com/p/aribaweb
Apache License 2.0
0 stars 0 forks source link

"IllegalArgumentException: argument type mismatch" on GlassFish (v3) for index binding in <a:For> #73

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Note: This issue only occurs when application is running on GlassFish v3
server -- the local (Tomcat-hosted) version works fine(!).

What steps will reproduce the problem?
1.Use index binding in <a:For>
2.In associated .java, include getter/setter for index binding field.
3.Deploy to GlassFish v3.

What is the expected output? What do you see instead?
Expected: Working <a:For> output.
Instead: Exception (Please see the attached stack trace (stack.txt).)

What version of the product are you using? On what operating system?
Ubuntu 8.10 server
GlassFish v3 (b74.2)
Sun JDK v1.6.0_b18

Please provide any additional information below.
Workaround: 
1. Make the field bound to the index public. (For index="$myIndex", do:
public int _myIndex;)
2. OMIT getter and (especially) setter for index field. (The setter seems
to be causing the heartburn, based on the exception and stack. Is AW trying
to push in a String or some non-int?)

Original issue reported on code.google.com by morton.t...@gmail.com on 2 Mar 2010 at 8:33

Attachments: