You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jan Willem Janssen <Ja...@planon.nl> on 2010/09/28 13:16:20 UTC

Bug in CharSetUtil/Map?

Hi,

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.

We already tried adding (as suggested on the mailing list earlier):

getMarkupSettings().setDefaultMarkupEncoding("UTF-8");

to our WebApplication#init method, but the issue remains. 

Any ideas on how to resolve this, or should we create a JIRA issue?

Regards,

-- 

Jan Willem Janssen, M.Sc.
software engineer, Development
______________________________

Planon B.V.
Wijchenseweg 8
6537 TL Nijmegen
P.O. Box 38074
6503 AB Nijmegen
The Netherlands
T:  +31 (0) 24 648 7662
F:  +31 (0) 24 642 2942
E: j.janssen@planon.nl
W: www.planon-fm.com

Deze email en alle bijlagen zijn slechts voor gebruik door de beoogde ontvanger. De email kan intellectueel eigendom en/of vertrouwelijke informatie bevatten. Het mag niet worden gekopieerd, openbaar gemaakt, bewaard of gebruikt worden door anderen dan waarvoor deze bestemd is. Bent u niet de beoogde ontvanger,verwijdert u dan deze email met alle bijlagen en kopieën onmiddellijk en informeer de afzender.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.

  ``I want to create machines that do exactly
    what I want them to do...''
      -- Strange Machines, The Gathering 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Bug in CharSetUtil/Map?

Posted by Jan Willem Janssen <Ja...@planon.nl>.
Hi,

> From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> 
> file a jira with a quickstart

See Wicket-3084: http://issues.apache.org/jira/browse/WICKET-3084.

Regards,

-- 

Jan Willem Janssen, M.Sc.
software engineer, Development
______________________________

Planon B.V.
Wijchenseweg 8
6537 TL Nijmegen
P.O. Box 38074
6503 AB Nijmegen
The Netherlands
T:  +31 (0) 24 648 7662
F:  +31 (0) 24 642 2942
E: j.janssen@planon.nl
W: www.planon-fm.com

Deze email en alle bijlagen zijn slechts voor gebruik door de beoogde ontvanger. De email kan intellectueel eigendom en/of vertrouwelijke informatie bevatten. Het mag niet worden gekopieerd, openbaar gemaakt, bewaard of gebruikt worden door anderen dan waarvoor deze bestemd is. Bent u niet de beoogde ontvanger,verwijdert u dan deze email met alle bijlagen en kopieën onmiddellijk en informeer de afzender.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.

  ``I want to create machines that do exactly
    what I want them to do...''
      -- Strange Machines, The Gathering 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Bug in CharSetUtil/Map?

Posted by Igor Vaynberg <ig...@gmail.com>.
file a jira with a quickstart

-igor

On Tue, Sep 28, 2010 at 4:16 AM, Jan Willem Janssen
<Ja...@planon.nl> wrote:
> Hi,
>
> 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.
>
> We already tried adding (as suggested on the mailing list earlier):
>
> getMarkupSettings().setDefaultMarkupEncoding("UTF-8");
>
> to our WebApplication#init method, but the issue remains.
>
> Any ideas on how to resolve this, or should we create a JIRA issue?
>
> Regards,
>
> --
>
> Jan Willem Janssen, M.Sc.
> software engineer, Development
> ______________________________
>
> Planon B.V.
> Wijchenseweg 8
> 6537 TL Nijmegen
> P.O. Box 38074
> 6503 AB Nijmegen
> The Netherlands
> T:  +31 (0) 24 648 7662
> F:  +31 (0) 24 642 2942
> E: j.janssen@planon.nl
> W: www.planon-fm.com
>
> Deze email en alle bijlagen zijn slechts voor gebruik door de beoogde ontvanger. De email kan intellectueel eigendom en/of vertrouwelijke informatie bevatten. Het mag niet worden gekopieerd, openbaar gemaakt, bewaard of gebruikt worden door anderen dan waarvoor deze bestemd is. Bent u niet de beoogde ontvanger,verwijdert u dan deze email met alle bijlagen en kopieën onmiddellijk en informeer de afzender.
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.
>
>  ``I want to create machines that do exactly
>    what I want them to do...''
>      -- Strange Machines, The Gathering
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org