0

Exception thrown loading ZK Theme

asked 2014-06-17 09:19:42 +0800

JustinFrost gravatar image JustinFrost
143 1 6

updated 2014-06-17 09:33:15 +0800

chillworld gravatar image chillworld flag of Belgium
5337 4 9
https://github.com/chillw...

I am getting an exception on startup of my ZK application which is preventing my theme from being loaded. I am thinking it is related to spring as this theme was previously working in a maven project without spring:

2014-06-17 17:42:18,706 ERROR org.zkoss.zk.ui.http.AbstractExtendlet             - Unable to load ~./zul/css/norm.css.dsp
org.zkoss.zel.ELException: Problems calling function 't:gradient'
    at org.zkoss.zel.impl.parser.AstFunction.getValue(AstFunction.java:116) ~[zel-7.0.1.jar:7.0.1]
    at org.zkoss.zel.impl.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184) ~[zel-7.0.1.jar:7.0.1]
    at org.zkoss.xel.zel.ELXelExpression.evaluate(ELXelExpression.java:40) ~[zcommon-7.0.1.jar:7.0.1]
    at org.zkoss.web.servlet.dsp.impl.XelNode.interpret(XelNode.java:45) ~[zweb-7.0.1.jar:7.0.1]
    at org.zkoss.web.servlet.dsp.impl.RootNode.interpret(RootNode.java:51) ~[zweb-7.0.1.jar:7.0.1]
    at org.zkoss.web.servlet.dsp.impl.RootNode.interpret(RootNode.java:60) ~[zweb-7.0.1.jar:7.0.1]
    at org.zkoss.web.util.resource.DspExtendlet.service(DspExtendlet.java:95) ~[zweb-7.0.1.jar:7.0.1]
    at org.zkoss.web.util.resource.ClassWebResource.web0(ClassWebResource.java:585) [zweb-7.0.1.jar:7.0.1]
    at org.zkoss.web.util.resource.ClassWebResource.web(ClassWebResource.java:571) [zweb-7.0.1.jar:7.0.1]
    at org.zkoss.web.util.resource.ClassWebResource.service(ClassWebResource.java:262) [zweb-7.0.1.jar:7.0.1]
    at org.zkoss.web.util.resource.ClassWebResource$CWC.include(ClassWebResource.java:811) ~[zweb-7.0.1.jar:7.0.1]
    at org.zkoss.zk.ui.http.WcsExtendlet.service(WcsExtendlet.java:112) ~[zk-7.0.1.jar:7.0.1]
    at org.zkoss.web.util.resource.ClassWebResource.web0(ClassWebResource.java:585) [zweb-7.0.1.jar:7.0.1]
    at org.zkoss.web.util.resource.ClassWebResource.web(ClassWebResource.java:571) [zweb-7.0.1.jar:7.0.1]
    at org.zkoss.web.util.resource.ClassWebResource.service(ClassWebResource.java:262) [zweb-7.0.1.jar:7.0.1]
    at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:427) [zk-7.0.1.jar:7.0.1]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) [servlet-api.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) [servlet-api.jar:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) [catalina.jar:7.0.50]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.50]
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat7-websocket.jar:7.0.50]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.50]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.50]
    at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:177) [spring-orm-4.0.0.RELEASE.jar:4.0.0.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108) [spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.50]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.50]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) [catalina.jar:7.0.50]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) [catalina.jar:7.0.50]
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [catalina.jar:7.0.50]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) [catalina.jar:7.0.50]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [catalina.jar:7.0.50]
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) [catalina.jar:7.0.50]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.50]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409) [catalina.jar:7.0.50]
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044) [tomcat-coyote.jar:7.0.50]
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) [tomcat-coyote.jar:7.0.50]
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315) [tomcat-coyote.jar:7.0.50]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51]
    at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
Caused by: java.lang.IllegalArgumentException: Type must be ver, hor, diag-, diag+, or rad.
    at org.zkoss.web.fn.ThemeFns.grad(ThemeFns.java:150) ~[zweb-7.0.1.jar:7.0.1]
    at org.zkoss.web.fn.ThemeFns.gradient(ThemeFns.java:125) ~[zweb-7.0.1.jar:7.0.1]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51]
    at org.zkoss.zel.impl.parser.AstFunction.getValue(AstFunction.java:111) ~[zel-7.0.1.jar:7.0.1]
    ... 40 common frames omitted
delete flag offensive retag edit
Be the first one to answer this question!
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-06-17 09:19:42 +0800

Seen: 13 times

Last updated: Jun 17 '14

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