0

ZK Calendar error

asked 2010-08-19 14:39:52 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-08-19 14:41:16 +0800

Hi all,

today i wan't to implement the ZK calendar in the zksample2 demo application.

1. If i create a new Calendars instance in java and call to a later time by resizing calXXX.invalidate() it throws an error.
2. If i use the demo zul's (i have changed the arrowDiv and tabDiv to working buttons ) and change the Calendars mold to 'month' it crashes too with the same error message. pic

I would likely go in the code to see what happens but can and WILL not like the ZK Calendar is NOT in the maven repository.

IS THERE ANY PLAN TO mavenize ZK Calendar?

best
Stephan

delete flag offensive retag edit

45 Replies

Sort by ยป oldest newest

answered 2010-08-19 19:40:43 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Ho Stephan
What version of ZK calendar are you use?
you can try to download latest freshly

link publish delete flag offensive edit

answered 2010-08-20 04:31:43 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Hi Jimmy,

First try was with 2.0.
I updated it to 2.0.1 like the link.

2010-08-20 11:24:46,994 DEBUG   DefaultTreecell M --> --> calling zul-file: /WEB-INF/pages/calendar/calendar.zul
20.08.2010 11:24:48 org.zkoss.zk.ui.impl.UiEngineImpl execUpdate:1075
SCHWERWIEGEND: 
java.lang.IllegalStateException: ended
	at org.zkoss.zk.ui.impl.UiVisualizer.getAttrRespMap(UiVisualizer.java:277)
	at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate(UiVisualizer.java:233)
	at org.zkoss.zk.ui.impl.UiEngineImpl.addSmartUpdate(UiEngineImpl.java:262)
	at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1441)
	at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1416)
	at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1481)
	at org.zkoss.calendar.Calendars.renderProperties(Calendars.java:871)
	at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1677)
	at org.zkoss.zk.ui.AbstractComponent.redrawChildren(AbstractComponent.java:1750)
	at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1690)
	at org.zkoss.zk.ui.AbstractComponent.redrawChildren(AbstractComponent.java:1750)
	at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1690)
	at org.zkoss.zk.ui.AbstractComponent.redrawChildren(AbstractComponent.java:1750)
	at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1690)
	at org.zkoss.zk.ui.AbstractComponent.redrawChildren(AbstractComponent.java:1750)
	at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1690)
	at org.zkoss.zk.ui.AbstractComponent.redrawChildren(AbstractComponent.java:1750)
	at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1690)
	at org.zkoss.zk.ui.AbstractComponent.redrawChildren(AbstractComponent.java:1750)
	at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1690)
	at org.zkoss.zk.ui.AbstractComponent.redrawChildren(AbstractComponent.java:1750)
	at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1690)
	at org.zkoss.zk.ui.impl.UiVisualizer.redraw(UiVisualizer.java:905)
	at org.zkoss.zk.ui.impl.UiVisualizer.addResponsesForCreatedPerSiblings(UiVisualizer.java:803)
	at org.zkoss.zk.ui.impl.UiVisualizer.getResponses(UiVisualizer.java:641)
	at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1070)
	at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:555)
	at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:446)
	at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:454)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)

I will try to start with an empty calendar.zul and made the rest in java.

best
Stephan

link publish delete flag offensive edit

answered 2010-08-22 05:30:42 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-08-22 12:03:15 +0800

Hi Jimmy,

the latest (ZK Calendar 2.01) version crashes by declaring only the naked component (env zk 5.0.3 ee) with the above error message. What are the minimal initialisation params for this component?

			<div id="divCenter" height="100%" width="100%">

					<calendars id="cal"  mold="default"
						firstDayOfWeek="Sunday" timeZone="Taiwan=GMT+8,Sweden=GMT+1" />

				</div>

best
Stephan

PS: you can checkout from zksample2 ./trunk and have a try after uncomment the Window(with apply="" ) and Calendars declaration in the calendars1.zul file.

link publish delete flag offensive edit

answered 2010-08-23 20:20:11 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi Stephan
I have tested with ZK Calendar 2.01 and zk 5.0.3 ee
it worked well

<window title="Hello World!!" border="normal" height="100%">
	<calendars />
</window>

is it cause by spring?

link publish delete flag offensive edit

answered 2010-08-24 06:25:10 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

I switch back to v2.0 . At time i must not use mold="month" which raises an error. So i can begin with integrating the dataStructure.
Hope that you can have a look on it.

best
Stephan

link publish delete flag offensive edit

answered 2010-08-26 01:30:40 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Is it the same problem about not use mold="month"?
http://code.google.com/p/zkcalendar/issues/detail?id=34&can=1


I try to build your project in maven
but it fail on spring-hibernate-backend
Could you provide me a war file to reproduce your problem ?

link publish delete flag offensive edit

answered 2010-08-26 01:36:14 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Hi Jimmy,

i will upload today a ready war-file and send you the link for downloading.
----------------------------------------------------------------------------------
Have you checked out from /trunk ?
What failure do maven raise ?

best
Stephan

link publish delete flag offensive edit

answered 2010-08-26 04:49:29 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Hi Jimmy,

i have uploaded the zksample2.war including sources to following address: http://www.forsthaus.de/zkoss/zksample2/zksample2.war

It's the same code as in SVN ~/trunk but with the calendar.jar 2.01 fixed in the WEB-INF/lib folder

best
Stephan

link publish delete flag offensive edit

answered 2010-08-26 19:50:50 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

It seems the DB not prepare

Can your project run without DB?

Could you reproduce this problem in a simple sample ?

link publish delete flag offensive edit

answered 2010-09-08 23:26:01 +0800

pdavie gravatar image pdavie
97 3

I had the same issue with ZK Calendar 2.0 from the website, but loading this ZK Calendar 2.0.1 solved my problem.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-08-19 14:39:52 +0800

Seen: 1,662 times

Last updated: Jun 25 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More