CharSetUtil.getEncoding fails with an IndexOutOfBoundsException
---------------------------------------------------------------
Key: WICKET-3084
URL: https://issues.apache.org/jira/browse/WICKET-3084
Project: Wicket
Issue Type: Bug
Components: wicket-extensions
Affects Versions: 1.4.12, 1.4.11, 1.4.10, 1.4.9, 1.4.8, 1.4.7, 1.4.6,
1.4.5, 1.4.4, 1.4.3, 1.4.2, 1.4.1, 1.4.0
Environment: Windows XP; Wicket 1.4.x.
Reporter: J.W. Janssen
We are experiencing some problems in CharSetUtil.getEncoding(). When used, we
see the following stacktrace appear:
java.lang.IndexOutOfBoundsException: Index: 4, Size: 0
at java.util.ArrayList.add(ArrayList.java:367)
at
org.apache.wicket.extensions.util.encoding.CharSetMap.<init>(CharSetMap.java:238)
at
org.apache.wicket.extensions.util.encoding.CharSetUtil.initialize(CharSetUtil.java:72)
at
org.apache.wicket.extensions.util.encoding.CharSetUtil.getEncoding(CharSetUtil.java:102)
As I understand the code in CharSetMap, it looks like the construction of the
encodings array list fails. The paths it tries to load encoding map files from
yield exceptions causing the array list to remain empty.
See attached quickstart for a sample.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.