google-code-export / webical

Automatically exported from code.google.com/p/webical
GNU General Public License v3.0
1 stars 1 forks source link

changing timezone results in ClassCastException #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
in demo.webical.org, i changed the timezone for the webical-demo calendar
from GMT-1 to GMT+1 and i got this error:

java.lang.ClassCastException: java.util.Date

org.apache.wicket.WicketRuntimeException: Error attaching this container
for rendering: [MarkupContainer [Component id = calendarViewPanel, page =
org.webical.web.pages.BasePage, path =
0:contentPanel:calendarViewPanel.CalendarPanel$7, isVisible = true,
isVersioned = false]]
    at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:15
26)
    at org.apache.wicket.Component.onBeforeRender(Component.java:3591)
    at
org.apache.wicket.extensions.markup.html.tabs.TabbedPanel.onBeforeRender(TabbedP
anel.java:186)
    at org.apache.wicket.Component.internalBeforeRender(Component.java:993)
    at org.apache.wicket.Component.beforeRender(Component.java:1025)
    at org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:905)
    at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:139)
    at org.apache.wicket.MarkupContainer.addOrReplace(MarkupContainer.java:168)
    at
org.webical.web.component.calendar.CalendarPanel.createCalendarView(CalendarPane
l.java:448)
    at
org.webical.web.component.calendar.CalendarPanel.setupAccessibleComponents(Calen
darPanel.java:238)
    at
org.webical.web.component.AbstractBasePanel.setupComponents(AbstractBasePanel.ja
va:115)
    at
org.webical.web.component.AbstractBasePanel.onBeforeRender(AbstractBasePanel.jav
a:223)
    at
org.webical.web.component.calendar.CalendarPanel.onBeforeRender(CalendarPanel.ja
va:655)
    at org.apache.wicket.Component.internalBeforeRender(Component.java:993)
    at org.apache.wicket.Component.beforeRender(Component.java:1025)
    at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:15
14)
    at org.apache.wicket.Component.onBeforeRender(Component.java:3591)
    at org.apache.wicket.Page.onBeforeRender(Page.java:1391)
    at
org.webical.web.pages.AbstractBasePage.onBeforeRender(AbstractBasePage.java:347)
    at org.apache.wicket.Component.internalBeforeRender(Component.java:993)
    at org.apache.wicket.Component.beforeRender(Component.java:1025)
    at org.apache.wicket.Component.prepareForRender(Component.java:2098)
    at org.apache.wicket.Page.renderPage(Page.java:869)
    at
org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:
164)
    at
org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequest
Target.java:58)
    at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestC
ycleProcessor.java:103)
    at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1100)
    at org.apache.wicket.RequestCycle.step(RequestCycle.java:1169)
    at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1248)
    at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
    at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:343)
    at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:193)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:202)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:173)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
13)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
78)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.jav
a:514)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107
)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
    at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConne
ction(Http11BaseProtocol.java:663)
    at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:52
7)
    at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorker
Thread.java:80)
    at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:68
4)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: java.util.Date
    at java.sql.Timestamp.compareTo(Unknown Source)
    at
org.webical.comparator.EventStartTimeComparator.compare(EventStartTimeComparator
.java:59)
    at
org.webical.comparator.EventStartTimeComparator.compare(EventStartTimeComparator
.java:1)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.sort(Unknown Source)
    at java.util.Collections.sort(Unknown Source)
    at
org.webical.web.component.calendar.model.EventsModel.load(EventsModel.java:94)
    at
org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableMode
l.java:114)
    at
org.webical.web.component.calendar.model.EventsModel.getObject(EventsModel.java:
120)
    at
org.webical.web.component.calendar.model.EventsModel.getStartDate(EventsModel.ja
va:129)
    at
org.webical.web.component.calendar.WeekColumnRepeater.addDays(WeekColumnRepeater
.java:61)
    at
org.webical.web.component.calendar.WeekColumnRepeater.<init>(WeekColumnRepeater.
java:57)
    at
org.webical.web.component.calendar.WeekViewPanel$1.<init>(WeekViewPanel.java:154
)
    at
org.webical.web.component.calendar.WeekViewPanel.setupAccessibleComponents(WeekV
iewPanel.java:154)
    at
org.webical.web.component.AbstractBasePanel.setupComponents(AbstractBasePanel.ja
va:115)
    at
org.webical.web.component.AbstractBasePanel.onBeforeRender(AbstractBasePanel.jav
a:223)
    at
org.webical.web.component.calendar.WeekViewPanel.onBeforeRender(WeekViewPanel.ja
va:202)
    at org.apache.wicket.Component.internalBeforeRender(Component.java:993)
    at org.apache.wicket.Component.beforeRender(Component.java:1025)
    at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:15
14)
    ... 46 more

Original issue reported on code.google.com by zorre...@gmail.com on 29 Jan 2008 at 3:51

GoogleCodeExporter commented 9 years ago
after selecting calendar, it renders fine again.

Original comment by zorre...@gmail.com on 29 Jan 2008 at 4:00

GoogleCodeExporter commented 9 years ago

Original comment by mattijsh...@gmail.com on 29 Jan 2008 at 4:10

GoogleCodeExporter commented 9 years ago

Original comment by zorre...@gmail.com on 1 Feb 2008 at 8:36

GoogleCodeExporter commented 9 years ago
The timezones must be fixed once and fore all this time....

Original comment by ivovando...@gmail.com on 24 Feb 2008 at 6:08

GoogleCodeExporter commented 9 years ago

Original comment by ivovando...@gmail.com on 12 Apr 2008 at 7:19

GoogleCodeExporter commented 9 years ago

Original comment by ivovando...@gmail.com on 12 Apr 2008 at 7:19