You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by Alvaro Zamorano <za...@gmail.com> on 2011/11/09 20:09:30 UTC

Posible bug in Pivot Calendar

Dear friends

I´m java developer and in this moment i use pivot api, during test i found
some error in the calendar, in the year 2012 month january the problem is
visible, attachment the exception.

Thanks!!!

Ing. Alvaro Zamorano
*

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.terra.TerraCalendarSkin$4.selectionChanged(*
TerraCalendarSkin.java:506*)

at
org.apache.pivot.wtk.ButtonGroup$ButtonGroupListenerList.selectionChanged(*
ButtonGroup.java:46*)

at org.apache.pivot.wtk.ButtonGroup.setSelection(*ButtonGroup.java:128*)

at org.apache.pivot.wtk.Button.setState(*Button.java:469*)

at org.apache.pivot.wtk.Button.setSelected(*Button.java:432*)

at org.apache.pivot.wtk.skin.terra.TerraCalendarSkin$DateButton.press(*
TerraCalendarSkin.java:77*)

at
org.apache.pivot.wtk.skin.terra.TerraCalendarSkin$DateButtonSkin.mouseClick(
*TerraCalendarSkin.java:219*)

at
org.apache.pivot.wtk.Component$ComponentMouseButtonListenerList.mouseClick(*
Component.java:483*)

at org.apache.pivot.wtk.Component.mouseClick(*Component.java:2777*)

at org.apache.pivot.wtk.Container.mouseUp(*Container.java:774*)

at org.apache.pivot.wtk.Container.mouseUp(*Container.java:759*)

at org.apache.pivot.wtk.Container.mouseUp(*Container.java:759*)

at org.apache.pivot.wtk.Container.mouseUp(*Container.java:759*)

at org.apache.pivot.wtk.Container.mouseUp(*Container.java:759*)

at org.apache.pivot.wtk.Container.mouseUp(*Container.java:759*)

at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processMouseEvent(*
ApplicationContext.java:914*)

at java.awt.Component.processEvent(*Component.java:5803*)

at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(*
ApplicationContext.java:709*)

at java.awt.Component.dispatchEventImpl(*Component.java:4410*)

at java.awt.Component.dispatchEvent(*Component.java:4240*)

at java.awt.LightweightDispatcher.retargetMouseEvent(*Container.java:4322*)

at java.awt.LightweightDispatcher.processMouseEvent(*Container.java:3986*)

at java.awt.LightweightDispatcher.dispatchEvent(*Container.java:3916*)

at java.awt.Container.dispatchEventImpl(*Container.java:2102*)

at java.awt.Window.dispatchEventImpl(*Window.java:2429*)

at java.awt.Component.dispatchEvent(*Component.java:4240*)

at java.awt.EventQueue.dispatchEvent(*EventQueue.java:599*)

at java.awt.EventDispatchThread.pumpOneEventForFilters(*
EventDispatchThread.java:273*)

at java.awt.EventDispatchThread.pumpEventsForFilter(*
EventDispatchThread.java:183*)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(*
EventDispatchThread.java:173*)

at java.awt.EventDispatchThread.pumpEvents(*EventDispatchThread.java:168*)

at java.awt.EventDispatchThread.pumpEvents(*EventDispatchThread.java:160*)

at java.awt.EventDispatchThread.run(*EventDispatchThread.java:121*)

Re: Posible bug in Pivot Calendar

Posted by Sandro Martini <sa...@gmail.com>.
Hi all,
in attach you can find a screenshot with the Calendars section inside
the Kitchen Sink Demo (taken from latest trunk, near 2.0.1 final) with
2012-01-01 chosen in all calendars.
I tried even to select other dates and all seems ok ... are you doing
something different in your tests ?

> What Pivot version are you using? I think this may have been fixed for 2.0.1.
Yes, probably he is using 2.0 final ... really we should release 2.0.1
asap, now we are really near to a code freeze.


If possible next week I could try to post some updated jars somewhere,
to start public testing of latest snapshots, after start for our
release vote process (unless Todd prefer to do it).

Bye

Re: Posible bug in Pivot Calendar

Posted by Greg Brown <gk...@verizon.net>.
What Pivot version are you using? I think this may have been fixed for 2.0.1.

On Nov 9, 2011, at 2:09 PM, Alvaro Zamorano wrote:

> Dear friends
> 
> I´m java developer and in this moment i use pivot api, during test i found
> some error in the calendar, in the year 2012 month january the problem is
> visible, attachment the exception.
> 
> Thanks!!!
> 
> Ing. Alvaro Zamorano
> *
> 
> 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.terra.TerraCalendarSkin$4.selectionChanged(*
> TerraCalendarSkin.java:506*)
> 
> at
> org.apache.pivot.wtk.ButtonGroup$ButtonGroupListenerList.selectionChanged(*
> ButtonGroup.java:46*)
> 
> at org.apache.pivot.wtk.ButtonGroup.setSelection(*ButtonGroup.java:128*)
> 
> at org.apache.pivot.wtk.Button.setState(*Button.java:469*)
> 
> at org.apache.pivot.wtk.Button.setSelected(*Button.java:432*)
> 
> at org.apache.pivot.wtk.skin.terra.TerraCalendarSkin$DateButton.press(*
> TerraCalendarSkin.java:77*)
> 
> at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin$DateButtonSkin.mouseClick(
> *TerraCalendarSkin.java:219*)
> 
> at
> org.apache.pivot.wtk.Component$ComponentMouseButtonListenerList.mouseClick(*
> Component.java:483*)
> 
> at org.apache.pivot.wtk.Component.mouseClick(*Component.java:2777*)
> 
> at org.apache.pivot.wtk.Container.mouseUp(*Container.java:774*)
> 
> at org.apache.pivot.wtk.Container.mouseUp(*Container.java:759*)
> 
> at org.apache.pivot.wtk.Container.mouseUp(*Container.java:759*)
> 
> at org.apache.pivot.wtk.Container.mouseUp(*Container.java:759*)
> 
> at org.apache.pivot.wtk.Container.mouseUp(*Container.java:759*)
> 
> at org.apache.pivot.wtk.Container.mouseUp(*Container.java:759*)
> 
> at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processMouseEvent(*
> ApplicationContext.java:914*)
> 
> at java.awt.Component.processEvent(*Component.java:5803*)
> 
> at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(*
> ApplicationContext.java:709*)
> 
> at java.awt.Component.dispatchEventImpl(*Component.java:4410*)
> 
> at java.awt.Component.dispatchEvent(*Component.java:4240*)
> 
> at java.awt.LightweightDispatcher.retargetMouseEvent(*Container.java:4322*)
> 
> at java.awt.LightweightDispatcher.processMouseEvent(*Container.java:3986*)
> 
> at java.awt.LightweightDispatcher.dispatchEvent(*Container.java:3916*)
> 
> at java.awt.Container.dispatchEventImpl(*Container.java:2102*)
> 
> at java.awt.Window.dispatchEventImpl(*Window.java:2429*)
> 
> at java.awt.Component.dispatchEvent(*Component.java:4240*)
> 
> at java.awt.EventQueue.dispatchEvent(*EventQueue.java:599*)
> 
> at java.awt.EventDispatchThread.pumpOneEventForFilters(*
> EventDispatchThread.java:273*)
> 
> at java.awt.EventDispatchThread.pumpEventsForFilter(*
> EventDispatchThread.java:183*)
> 
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(*
> EventDispatchThread.java:173*)
> 
> at java.awt.EventDispatchThread.pumpEvents(*EventDispatchThread.java:168*)
> 
> at java.awt.EventDispatchThread.pumpEvents(*EventDispatchThread.java:160*)
> 
> at java.awt.EventDispatchThread.run(*EventDispatchThread.java:121*)