You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "J.W. Janssen (JIRA)" <ji...@apache.org> on 2010/09/29 09:31:33 UTC
[jira] Updated: (WICKET-3084) CharSetUtil.getEncoding fails with an
IndexOutOfBoundsException
[ https://issues.apache.org/jira/browse/WICKET-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
J.W. Janssen updated WICKET-3084:
---------------------------------
Attachment: charsetutil-jira3084.zip
Wicket quickstart project with a JUnit that fails due to the described behaviour.
> 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.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.8, 1.4.9, 1.4.10, 1.4.11, 1.4.12
> Environment: Windows XP; Wicket 1.4.x.
> Reporter: J.W. Janssen
> Attachments: charsetutil-jira3084.zip
>
>
> 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.