Revision history [back]

click to hide/show revision 1
initial version

asked 2015-02-09 11:27:22 +0800

sleb82 gravatar image sleb82

ZK Spring 3.1 - Null Pointer in Method Invocation

Hello.

I've upgraded my project to ZK 7.0.3. I also had to move to ZK Spring 3.1. However, when I access the first page of the project, I get the following exception:

java.lang.NullPointerException: Null Pointer in Method Invocation bsh.Name.invokeMethod(Unknown Source) bsh.BSHMethodInvocation.eval(Unknown Source) bsh.BSHPrimaryExpression.eval(Unknown Source) bsh.BSHPrimaryExpression.eval(Unknown Source) bsh.BSHVariableDeclarator.eval(Unknown Source) bsh.BSHTypedVariableDeclaration.eval(Unknown Source) bsh.Interpreter.eval(Unknown Source) bsh.Interpreter.eval(Unknown Source) org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:133) org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:328) org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:900) org.zkoss.zk.ui.impl.UiEngineImpl.execNonComponent(UiEngineImpl.java:1003) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:789) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:797) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:757) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.createComponents(UiEngineImpl.java:1080) org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:251) org.zkoss.zk.ui.impl.AbstractExecution.createComponents(AbstractExecution.java:243) org.zkoss.zul.Include.afterCompose(Include.java:448) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:878) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:797) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:757) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:442) org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:356) org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:217) org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) dhl.web.SecurityFilter.doFilter(SecurityFilter.java:47) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:369) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:168) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

I see that AppliedTo, AfterCompose and EventHandler annotations are deprecated in zkspring 3.1. Can it be caused by this fact? If yes - what should I use instead of this deprecated functionality?

ZK Spring 3.1 - Null Pointer in Method Invocation

Hello.

I've upgraded my project to ZK 7.0.3. I also had to move to ZK Spring 3.1. However, when I access the first page of the project, I get the following exception:

java.lang.NullPointerException: Null Pointer in Method Invocation bsh.Name.invokeMethod(Unknown Source) bsh.BSHMethodInvocation.eval(Unknown Source) bsh.BSHPrimaryExpression.eval(Unknown Source) bsh.BSHPrimaryExpression.eval(Unknown Source) bsh.BSHVariableDeclarator.eval(Unknown Source) bsh.BSHTypedVariableDeclaration.eval(Unknown Source) bsh.Interpreter.eval(Unknown Source) bsh.Interpreter.eval(Unknown Source) org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:133) org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:328) org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:900) org.zkoss.zk.ui.impl.UiEngineImpl.execNonComponent(UiEngineImpl.java:1003) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:789) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:797) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:757) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.createComponents(UiEngineImpl.java:1080) org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:251) org.zkoss.zk.ui.impl.AbstractExecution.createComponents(AbstractExecution.java:243) org.zkoss.zul.Include.afterCompose(Include.java:448) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:878) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:797) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:757) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:442) org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:356) org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:217) org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) dhl.web.SecurityFilter.doFilter(SecurityFilter.java:47) myproject.web.SecurityFilter.doFilter(SecurityFilter.java:47) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:369) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:168) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

I see that AppliedTo, AfterCompose and EventHandler annotations are deprecated in zkspring 3.1. Can it be caused by this fact? If yes - what should I use instead of this deprecated functionality?

ZK Spring 3.1 - Null Pointer in Method Invocation7.0.3 doAfterCompose is not called for GenericForwardComposer

Hello.

I've upgraded my project to ZK 7.0.3. I also had to move to ZK Spring 3.1. However, when I access My main page used the first page of the project, I get the following exception:composer that extends GenericForwardComposer:

java.lang.NullPointerException: Null Pointer in Method Invocation bsh.Name.invokeMethod(Unknown Source) bsh.BSHMethodInvocation.eval(Unknown Source) bsh.BSHPrimaryExpression.eval(Unknown Source) bsh.BSHPrimaryExpression.eval(Unknown Source) bsh.BSHVariableDeclarator.eval(Unknown Source) bsh.BSHTypedVariableDeclaration.eval(Unknown Source) bsh.Interpreter.eval(Unknown Source) bsh.Interpreter.eval(Unknown Source) org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:133) org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:328) org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:900) org.zkoss.zk.ui.impl.UiEngineImpl.execNonComponent(UiEngineImpl.java:1003) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:789) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:797) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:757) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.createComponents(UiEngineImpl.java:1080) org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:251) org.zkoss.zk.ui.impl.AbstractExecution.createComponents(AbstractExecution.java:243) org.zkoss.zul.Include.afterCompose(Include.java:448) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:878) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:872) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735) org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:797) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:757) org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699) org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:442) org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:356) org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:217) org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) myproject.web.SecurityFilter.doFilter(SecurityFilter.java:47) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:369) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:168) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)<window id="main" width="100%" height="100%" apply="myproject.web.MainLayoutComposer">

However, I see that AppliedTo, AfterCompose and EventHandler annotations are deprecated doAfterCompose method in zkspring 3.1. Can it be caused by this fact? If yes - what should I use instead MainLayoutComposer is not invoked at all (I have super.doAfterCompose(comp) call at the beginning of this deprecated functionality?method) which leads to application crash. Could you please help me to find out - why this method is not called?

ZK 7.0.3 doAfterCompose is not called for GenericForwardComposer

Hello.

I've upgraded my project to ZK 7.0.3. My main page used the composer that extends GenericForwardComposer:

<window id="main" width="100%" height="100%" apply="myproject.web.MainLayoutComposer">

However, I see that doAfterCompose method in MainLayoutComposer is not invoked at all (I have super.doAfterCompose(comp) call at the beginning of this method) which leads to application crash. Could you please help me to find out - why this method is not called?

ZK 7.0.3 doAfterCompose is not called for GenericForwardComposer

Hello.

I've upgraded my project to ZK 7.0.3. My main page used the composer that extends GenericForwardComposer:

<window id="main" width="100%" height="100%" apply="myproject.web.MainLayoutComposer">

However, I see that doAfterCompose method in MainLayoutComposer is not invoked at all (I have super.doAfterCompose(comp) call at the beginning of this method) which leads to application crash. Could you please help me to find out - why this method is not called?

UPD: Just checked: the same problem when I upgrade to 5.0.11. The previous version, when everything worked was 3.6.4. Kind of weird...

ZK 7.0.3 doAfterCompose is not called for GenericForwardComposer

Hello.

I've upgraded my project to ZK 7.0.3. My main page used the composer that extends GenericForwardComposer:

<window id="main" width="100%" height="100%" apply="myproject.web.MainLayoutComposer">

However, I see that doAfterCompose method in MainLayoutComposer is not invoked at all (I have super.doAfterCompose(comp) call at the beginning of this method) which leads to application crash. Could you please help me to find out - why this method is not called?

UPD: Just checked: the same problem when I upgrade to 5.0.11. The previous version, when where everything worked was 3.6.4. Kind of weird...

ZK 7.0.3 doAfterCompose is not called for GenericForwardComposer

Hello.

I've upgraded my project to ZK 7.0.3. My main page used the composer that extends GenericForwardComposer:

<window id="main" width="100%" height="100%" apply="myproject.web.MainLayoutComposer">

However, I see that doAfterCompose method in MainLayoutComposer is not invoked at all (I have super.doAfterCompose(comp) call at the beginning of this method) which leads to application crash. Could you please help me to find out - why this method is not called?

UPD: Just checked: the same problem when I upgrade to 5.0.11. The previous version, where everything worked was 3.6.4. Kind of weird...

ZUL page:

<?page title="${c:l('app.title')}"?>
<?taglib uri="zkoss.org/dsp/web/core" prefix="c"?>

<window id="main" width="100%" height="100%" apply="myproject.web.MainLayoutComposer">
        <attribute name="onLoginOK">
            principal.setValue(execution.getUserPrincipal().getName());
        </attribute>
        <borderlayout>
            <north size="110px">
                <vbox heights="40px,15px" width="100%">
<div id="headerDiv" height="64px" >
                    <include src="header.zul"/>
</div>
<div id="menuDiv" style="margin:10px">
                    <include src="menu.zul"/>
</div>
                </vbox>
            </north>
            <center flex="true">
                <div id="contentDiv">

                </div>
            </center>

            <south size="20px">
                <hbox pack="center" width="100%">
                    <html><![CDATA[
                        <span style="color:#0C7A9A">${c:l('footer.text')}</span>
                    ]]></html>
                </hbox>
            </south>
        </borderlayout>
    </window>

Here is the composer:

package myproject.web;

import org.springframework.context.annotation.Scope;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.util.GenericForwardComposer;

@Scope("idspace")
public class MainLayoutComposer extends GenericForwardComposer{

    public void doAfterCompose(Component comp) throws Exception {
        super.doAfterCompose(comp);
        //Other code
    }
}

ZK 7.0.3 doAfterCompose is not called for GenericForwardComposer

Hello.

I've upgraded my project to ZK 7.0.3. My main page used the composer that extends GenericForwardComposer:

<window id="main" width="100%" height="100%" apply="myproject.web.MainLayoutComposer">

However, I see that doAfterCompose method in MainLayoutComposer is not invoked at all (I have super.doAfterCompose(comp) call at the beginning of this method) which leads to application crash. Could you please help me to find out - why this method is not called?

UPD: Just checked: I've found out that the same problem when is with <include src="menu.zul"/>. Something is wrong with menu.zul. I'll try to investigate and if I upgrade to 5.0.11. The previous version, where everything worked was 3.6.4. Kind of weird...have more questions on it I'll ask.

ZUL page:

<?page title="${c:l('app.title')}"?>
<?taglib uri="zkoss.org/dsp/web/core" prefix="c"?>

<window id="main" width="100%" height="100%" apply="myproject.web.MainLayoutComposer">
        <attribute name="onLoginOK">
            principal.setValue(execution.getUserPrincipal().getName());
        </attribute>
        <borderlayout>
            <north size="110px">
                <vbox heights="40px,15px" width="100%">
<div id="headerDiv" height="64px" >
                    <include src="header.zul"/>
</div>
<div id="menuDiv" style="margin:10px">
                    <include src="menu.zul"/>
</div>
                </vbox>
            </north>
            <center flex="true">
                <div id="contentDiv">

                </div>
            </center>

            <south size="20px">
                <hbox pack="center" width="100%">
                    <html><![CDATA[
                        <span style="color:#0C7A9A">${c:l('footer.text')}</span>
                    ]]></html>
                </hbox>
            </south>
        </borderlayout>
    </window>

Here is the composer:

package myproject.web;

import org.springframework.context.annotation.Scope;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.util.GenericForwardComposer;

@Scope("idspace")
public class MainLayoutComposer extends GenericForwardComposer{

    public void doAfterCompose(Component comp) throws Exception {
        super.doAfterCompose(comp);
        //Other code
    }
}

ZK 7.0.3 doAfterCompose is not called for GenericForwardComposer

Hello.

I've upgraded my project to ZK 7.0.3. My main page used the composer that extends GenericForwardComposer:

<window id="main" width="100%" height="100%" apply="myproject.web.MainLayoutComposer">

However, I see that doAfterCompose method in MainLayoutComposer is not invoked at all (I have super.doAfterCompose(comp) call at the beginning of this method) which leads to application crash. Could you please help me to find out - why this method is not called?

UPD. I've found out that the problem is with <include src="menu.zul"/>. Something is wrong with menu.zul. I'll try to investigate and if I have more questions on it I'll ask.

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