0

ZK Upgrade to 7.0.1 from ZK.6.5.4 Problem

asked 2014-03-12 07:06:31 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2611 3 8
http://emrpms.blogspot.in...

updated 2014-03-12 11:25:13 +0800

sitansu gravatar image sitansu
2254 13
http://java91.blogspot.in...

Hi

Try to upgrade the version to ZK 7.0.1 from ZK 6.5.4. After the login screen itself, i got the following error

type Exception report

message org.zkoss.json.JSONArray.toJSONString(Ljava/util/Collection;)Ljava/lang/String;

description The server encountered an internal error that prevented it from fulfilling this request.

exception

  java.lang.NoSuchMethodError: org.zkoss.json.JSONArray.toJSONString(Ljava/util/Collection;)Ljava/lang/String;
        org.zkoss.zk.ui.sys.HtmlPageRenders.outResponseJavaScripts(HtmlPageRenders.java:205)
        org.zkoss.zk.ui.sys.HtmlPageRenders.outEndJavaScriptFunc(HtmlPageRenders.java:698)
        org.zkoss.zk.ui.sys.HtmlPageRenders.outPageContent(HtmlPageRenders.java:620)
        org.zkoss.zul.impl.PageRenderer.renderDesktop(PageRenderer.java:104)
        org.zkoss.zul.impl.PageRenderer.render(PageRenderer.java:56)
        org.zkoss.zk.ui.impl.PageImpl.redraw(PageImpl.java:874)
        org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:538)
        org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:356)
        org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215)
        org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
        org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
        org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
        org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
        org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
        org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
        org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
        org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
        org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
        org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
        org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
        org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
        org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
        org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
        org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
        org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
        org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
        org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
        org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
        org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
        org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
        org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
        org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
        org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
        org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
        org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
        org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
        org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:149)
        org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)

    note The full stack trace of the root cause is available in the Apache Tomcat/7.0.47 logs.
delete flag offensive retag edit

Comments

Please check the version of zcommon.jar

jumperchen ( 2014-03-12 07:19:42 +0800 )edit

<dependency> <groupId>org.zkoss.common</groupId> <artifactId>zcommon</artifactId> <version>6.5.4</version> </dependency>

is that correct ?

or i need to change to ZK 7. 0. 1

Senthilchettyin ( 2014-03-12 07:39:44 +0800 )edit
1
     &lt;zk.version&gt;7.0.1&lt;/zk.version&gt;
     &lt;dependency&gt;
            &lt;groupId&gt;org.zkoss.common&lt;/groupId&gt;
            &lt;artifactId&gt;zcommon&lt;/artifactId&gt;
            &lt;version&gt;${zk.version}&lt;/version&gt;
        &lt;/dependency&gt;
IngoB ( 2014-03-12 07:44:10 +0800 )edit

Yes, all components have to be set to your ZK Version.

IngoB ( 2014-03-12 12:09:31 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-03-12 14:07:51 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2611 3 8
http://emrpms.blogspot.in...

Thank you it is working now

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2014-03-12 07:06:31 +0800

Seen: 41 times

Last updated: Mar 12 '14

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