You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Tomas Stenlund <to...@telia.com> on 2012/01/01 08:18:39 UTC
CalendarButton throws ArrayIndexOutOfBounds after new years eve
Hi,
this line of code:
CalendarButton calendarButton = new CalendarButton();
throws a:
java.lang.IndexOutOfBoundsException: index -1 out of bounds.
at
org.apache.pivot.collections.ArrayList.verifyIndexBounds(ArrayList.java:577)
at org.apache.pivot.collections.ArrayList.get(ArrayList.java:346)
at org.apache.pivot.wtk.TablePane$Row.get(TablePane.java:263)
at
org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.updateSelection(TerraCalendarSkin.java:706)
at
org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.selectedDateChanged(TerraCalendarSkin.java:963)
at
org.apache.pivot.wtk.Calendar$CalendarSelectionListenerList.selectedDateChanged(Calendar.java:90)
at org.apache.pivot.wtk.Calendar.setSelectedDate(Calendar.java:212)
at
org.apache.pivot.wtk.skin.CalendarButtonSkin.selectedDateChanged(CalendarButtonSkin.java:353)
at
org.apache.pivot.wtk.CalendarButton$CalendarButtonSelectionListenerList.selectedDateChanged(CalendarButton.java:75)
at
org.apache.pivot.wtk.CalendarButton.setSelectedDate(CalendarButton.java:243)
at org.apache.pivot.wtk.CalendarButton.<init>(CalendarButton.java:155)
at
cc.stenlund.xc.ctrl.competition.CompetitionEditor.initialize(CompetitionEditor.java:129)
<--- The new CalendarButton();
It worked perfectly yesterday, but not today. Probably has something to
do with the year shift and the same week being in two years or something
similar. I've found a similar message from 2010 adressing the same
issue, but no note on anything being entered in the bugdatabase or being
some other problem.
Any ideas ?
Happy New Year,
Tomas
Re: CalendarButton throws ArrayIndexOutOfBounds after new years eve
Posted by Tomas Stenlund <to...@telia.com>.
Thanks Sandro,
it worked when I used the
http://svn.apache.org/repos/asf/pivot/tags/2.0.1/ so I'm happy :-)
Cheers,
Tomas
On 01/01/2012 05:21 PM, Sandro Martini wrote:
>
> Hi Thomas, don't worry for the false positive.
>
> We are freezing the 2.0.1 release during these days, and shold be
> released to the public in a few weeks now (we have a formal process in
> Apache to respect with timing issues, qa issues, etc) so if you can,
> try to use it from our trunk in the meantime.
>
> Bye,
> Sandro
>
> Il giorno 01/gen/2012 10:58, "Tomas Stenlund"
> <tomas.stenlund@telia.com <ma...@telia.com>> ha scritto:
>
> I seemed to do a bad search in the bug database, now I found
> something related. PIVOT-702.
>
> Sorry,
>
> Tomas
>
> On 01/01/2012 10:35 AM, Tomas Stenlund wrote:
>
> Hi,
>
> I'm probably wrong but it seems to be locale related. When I
> run my app with the locale en_US instead of sv_SE it works.
> But I haven't changed locale for a long time and it worked
> yesterday but not today. So it might be a combination of
> locale and date/year.
>
> /Tomas
>
> On 01/01/2012 08:21 AM, Tomas Stenlund wrote:
>
> Forgot to mention I run Pivot 2.0.
>
> Cheers,
>
> Tomas
>
> On 01/01/2012 08:18 AM, Tomas Stenlund wrote:
>
> Hi,
>
> this line of code:
>
> CalendarButton calendarButton = new CalendarButton();
>
> throws a:
>
> java.lang.IndexOutOfBoundsException: index -1 out of
> bounds.
> at
> org.apache.pivot.collections.ArrayList.verifyIndexBounds(ArrayList.java:577)
> at
> org.apache.pivot.collections.ArrayList.get(ArrayList.java:346)
> at
> org.apache.pivot.wtk.TablePane$Row.get(TablePane.java:263)
> at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.updateSelection(TerraCalendarSkin.java:706)
> at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.selectedDateChanged(TerraCalendarSkin.java:963)
> at
> org.apache.pivot.wtk.Calendar$CalendarSelectionListenerList.selectedDateChanged(Calendar.java:90)
> at
> org.apache.pivot.wtk.Calendar.setSelectedDate(Calendar.java:212)
> at
> org.apache.pivot.wtk.skin.CalendarButtonSkin.selectedDateChanged(CalendarButtonSkin.java:353)
> at
> org.apache.pivot.wtk.CalendarButton$CalendarButtonSelectionListenerList.selectedDateChanged(CalendarButton.java:75)
> at
> org.apache.pivot.wtk.CalendarButton.setSelectedDate(CalendarButton.java:243)
> at
> org.apache.pivot.wtk.CalendarButton.<init>(CalendarButton.java:155)
> at
> cc.stenlund.xc.ctrl.competition.CompetitionEditor.initialize(CompetitionEditor.java:129)
> <--- The new CalendarButton();
>
> It worked perfectly yesterday, but not today. Probably
> has something to do with the year shift and the same
> week being in two years or something similar. I've
> found a similar message from 2010 adressing the same
> issue, but no note on anything being entered in the
> bugdatabase or being some other problem.
>
> Any ideas ?
>
> Happy New Year,
>
> Tomas
>
>
>
>
>
>
>
Re: CalendarButton throws ArrayIndexOutOfBounds after new years eve
Posted by Sandro Martini <sa...@gmail.com>.
Hi Thomas, don't worry for the false positive.
We are freezing the 2.0.1 release during these days, and shold be released
to the public in a few weeks now (we have a formal process in Apache to
respect with timing issues, qa issues, etc) so if you can, try to use it
from our trunk in the meantime.
Bye,
Sandro
Il giorno 01/gen/2012 10:58, "Tomas Stenlund" <to...@telia.com>
ha scritto:
> I seemed to do a bad search in the bug database, now I found something
> related. PIVOT-702.
>
> Sorry,
>
> Tomas
>
> On 01/01/2012 10:35 AM, Tomas Stenlund wrote:
>
>> Hi,
>>
>> I'm probably wrong but it seems to be locale related. When I run my app
>> with the locale en_US instead of sv_SE it works. But I haven't changed
>> locale for a long time and it worked yesterday but not today. So it might
>> be a combination of locale and date/year.
>>
>> /Tomas
>>
>> On 01/01/2012 08:21 AM, Tomas Stenlund wrote:
>>
>>> Forgot to mention I run Pivot 2.0.
>>>
>>> Cheers,
>>>
>>> Tomas
>>>
>>> On 01/01/2012 08:18 AM, Tomas Stenlund wrote:
>>>
>>>> Hi,
>>>>
>>>> this line of code:
>>>>
>>>> CalendarButton calendarButton = new CalendarButton();
>>>>
>>>> throws a:
>>>>
>>>> java.lang.**IndexOutOfBoundsException: index -1 out of bounds.
>>>> at org.apache.pivot.collections.**ArrayList.verifyIndexBounds(**
>>>> ArrayList.java:577)
>>>> at org.apache.pivot.collections.**ArrayList.get(ArrayList.java:**
>>>> 346)
>>>> at org.apache.pivot.wtk.**TablePane$Row.get(TablePane.**java:263)
>>>> at org.apache.pivot.wtk.skin.**terra.TerraCalendarSkin.**
>>>> updateSelection(**TerraCalendarSkin.java:706)
>>>> at org.apache.pivot.wtk.skin.**terra.TerraCalendarSkin.**
>>>> selectedDateChanged(**TerraCalendarSkin.java:963)
>>>> at org.apache.pivot.wtk.Calendar$**CalendarSelectionListenerList.**
>>>> selectedDateChanged(Calendar.**java:90)
>>>> at org.apache.pivot.wtk.Calendar.**setSelectedDate(Calendar.java:**
>>>> 212)
>>>> at org.apache.pivot.wtk.skin.**CalendarButtonSkin.**
>>>> selectedDateChanged(**CalendarButtonSkin.java:353)
>>>> at org.apache.pivot.wtk.**CalendarButton$**
>>>> CalendarButtonSelectionListene**rList.selectedDateChanged(**
>>>> CalendarButton.java:75)
>>>> at org.apache.pivot.wtk.**CalendarButton.**setSelectedDate(**
>>>> CalendarButton.java:243)
>>>> at org.apache.pivot.wtk.**CalendarButton.<init>(**
>>>> CalendarButton.java:155)
>>>> at cc.stenlund.xc.ctrl.**competition.CompetitionEditor.**
>>>> initialize(CompetitionEditor.**java:129) <--- The new CalendarButton();
>>>>
>>>> It worked perfectly yesterday, but not today. Probably has something to
>>>> do with the year shift and the same week being in two years or something
>>>> similar. I've found a similar message from 2010 adressing the same issue,
>>>> but no note on anything being entered in the bugdatabase or being some
>>>> other problem.
>>>>
>>>> Any ideas ?
>>>>
>>>> Happy New Year,
>>>>
>>>> Tomas
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
Re: CalendarButton throws ArrayIndexOutOfBounds after new years eve
Posted by Tomas Stenlund <to...@telia.com>.
I seemed to do a bad search in the bug database, now I found something
related. PIVOT-702.
Sorry,
Tomas
On 01/01/2012 10:35 AM, Tomas Stenlund wrote:
> Hi,
>
> I'm probably wrong but it seems to be locale related. When I run my
> app with the locale en_US instead of sv_SE it works. But I haven't
> changed locale for a long time and it worked yesterday but not today.
> So it might be a combination of locale and date/year.
>
> /Tomas
>
> On 01/01/2012 08:21 AM, Tomas Stenlund wrote:
>> Forgot to mention I run Pivot 2.0.
>>
>> Cheers,
>>
>> Tomas
>>
>> On 01/01/2012 08:18 AM, Tomas Stenlund wrote:
>>> Hi,
>>>
>>> this line of code:
>>>
>>> CalendarButton calendarButton = new CalendarButton();
>>>
>>> throws a:
>>>
>>> java.lang.IndexOutOfBoundsException: index -1 out of bounds.
>>> at
>>> org.apache.pivot.collections.ArrayList.verifyIndexBounds(ArrayList.java:577)
>>> at org.apache.pivot.collections.ArrayList.get(ArrayList.java:346)
>>> at org.apache.pivot.wtk.TablePane$Row.get(TablePane.java:263)
>>> at
>>> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.updateSelection(TerraCalendarSkin.java:706)
>>> at
>>> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.selectedDateChanged(TerraCalendarSkin.java:963)
>>> at
>>> org.apache.pivot.wtk.Calendar$CalendarSelectionListenerList.selectedDateChanged(Calendar.java:90)
>>> at org.apache.pivot.wtk.Calendar.setSelectedDate(Calendar.java:212)
>>> at
>>> org.apache.pivot.wtk.skin.CalendarButtonSkin.selectedDateChanged(CalendarButtonSkin.java:353)
>>> at
>>> org.apache.pivot.wtk.CalendarButton$CalendarButtonSelectionListenerList.selectedDateChanged(CalendarButton.java:75)
>>> at
>>> org.apache.pivot.wtk.CalendarButton.setSelectedDate(CalendarButton.java:243)
>>> at
>>> org.apache.pivot.wtk.CalendarButton.<init>(CalendarButton.java:155)
>>> at
>>> cc.stenlund.xc.ctrl.competition.CompetitionEditor.initialize(CompetitionEditor.java:129)
>>> <--- The new CalendarButton();
>>>
>>> It worked perfectly yesterday, but not today. Probably has something
>>> to do with the year shift and the same week being in two years or
>>> something similar. I've found a similar message from 2010 adressing
>>> the same issue, but no note on anything being entered in the
>>> bugdatabase or being some other problem.
>>>
>>> Any ideas ?
>>>
>>> Happy New Year,
>>>
>>> Tomas
>>>
>>>
>>
>>
>
>
Re: CalendarButton throws ArrayIndexOutOfBounds after new years eve
Posted by Tomas Stenlund <to...@telia.com>.
Hi,
I'm probably wrong but it seems to be locale related. When I run my app
with the locale en_US instead of sv_SE it works. But I haven't changed
locale for a long time and it worked yesterday but not today. So it
might be a combination of locale and date/year.
/Tomas
On 01/01/2012 08:21 AM, Tomas Stenlund wrote:
> Forgot to mention I run Pivot 2.0.
>
> Cheers,
>
> Tomas
>
> On 01/01/2012 08:18 AM, Tomas Stenlund wrote:
>> Hi,
>>
>> this line of code:
>>
>> CalendarButton calendarButton = new CalendarButton();
>>
>> throws a:
>>
>> java.lang.IndexOutOfBoundsException: index -1 out of bounds.
>> at
>> org.apache.pivot.collections.ArrayList.verifyIndexBounds(ArrayList.java:577)
>> at org.apache.pivot.collections.ArrayList.get(ArrayList.java:346)
>> at org.apache.pivot.wtk.TablePane$Row.get(TablePane.java:263)
>> at
>> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.updateSelection(TerraCalendarSkin.java:706)
>> at
>> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.selectedDateChanged(TerraCalendarSkin.java:963)
>> at
>> org.apache.pivot.wtk.Calendar$CalendarSelectionListenerList.selectedDateChanged(Calendar.java:90)
>> at org.apache.pivot.wtk.Calendar.setSelectedDate(Calendar.java:212)
>> at
>> org.apache.pivot.wtk.skin.CalendarButtonSkin.selectedDateChanged(CalendarButtonSkin.java:353)
>> at
>> org.apache.pivot.wtk.CalendarButton$CalendarButtonSelectionListenerList.selectedDateChanged(CalendarButton.java:75)
>> at
>> org.apache.pivot.wtk.CalendarButton.setSelectedDate(CalendarButton.java:243)
>> at
>> org.apache.pivot.wtk.CalendarButton.<init>(CalendarButton.java:155)
>> at
>> cc.stenlund.xc.ctrl.competition.CompetitionEditor.initialize(CompetitionEditor.java:129)
>> <--- The new CalendarButton();
>>
>> It worked perfectly yesterday, but not today. Probably has something
>> to do with the year shift and the same week being in two years or
>> something similar. I've found a similar message from 2010 adressing
>> the same issue, but no note on anything being entered in the
>> bugdatabase or being some other problem.
>>
>> Any ideas ?
>>
>> Happy New Year,
>>
>> Tomas
>>
>>
>
>
Re: CalendarButton throws ArrayIndexOutOfBounds after new years eve
Posted by Tomas Stenlund <to...@telia.com>.
Forgot to mention I run Pivot 2.0.
Cheers,
Tomas
On 01/01/2012 08:18 AM, Tomas Stenlund wrote:
> Hi,
>
> this line of code:
>
> CalendarButton calendarButton = new CalendarButton();
>
> throws a:
>
> java.lang.IndexOutOfBoundsException: index -1 out of bounds.
> at
> org.apache.pivot.collections.ArrayList.verifyIndexBounds(ArrayList.java:577)
> at org.apache.pivot.collections.ArrayList.get(ArrayList.java:346)
> at org.apache.pivot.wtk.TablePane$Row.get(TablePane.java:263)
> at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.updateSelection(TerraCalendarSkin.java:706)
> at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.selectedDateChanged(TerraCalendarSkin.java:963)
> at
> org.apache.pivot.wtk.Calendar$CalendarSelectionListenerList.selectedDateChanged(Calendar.java:90)
> at org.apache.pivot.wtk.Calendar.setSelectedDate(Calendar.java:212)
> at
> org.apache.pivot.wtk.skin.CalendarButtonSkin.selectedDateChanged(CalendarButtonSkin.java:353)
> at
> org.apache.pivot.wtk.CalendarButton$CalendarButtonSelectionListenerList.selectedDateChanged(CalendarButton.java:75)
> at
> org.apache.pivot.wtk.CalendarButton.setSelectedDate(CalendarButton.java:243)
> at org.apache.pivot.wtk.CalendarButton.<init>(CalendarButton.java:155)
> at
> cc.stenlund.xc.ctrl.competition.CompetitionEditor.initialize(CompetitionEditor.java:129)
> <--- The new CalendarButton();
>
> It worked perfectly yesterday, but not today. Probably has something
> to do with the year shift and the same week being in two years or
> something similar. I've found a similar message from 2010 adressing
> the same issue, but no note on anything being entered in the
> bugdatabase or being some other problem.
>
> Any ideas ?
>
> Happy New Year,
>
> Tomas
>
>