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*)
