You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2010/10/14 00:54:33 UTC

[jira] Commented: (WICKET-3084) CharSetUtil.getEncoding fails with an IndexOutOfBoundsException

    [ https://issues.apache.org/jira/browse/WICKET-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920794#action_12920794 ] 

Hudson commented on WICKET-3084:
--------------------------------

Integrated in Apache Wicket 1.5.x #395 (See [https://hudson.apache.org/hudson/job/Apache%20Wicket%201.5.x/395/])
    

> 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
>            Assignee: Igor Vaynberg
>             Fix For: 1.4.13, 1.5-M3
>
>         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.