Unable to use theme constants 'hover'

Hi,

When I try to use my cuba app from a new computer, I get the error below on trying to access the log-in page.
It works with no problem when I try to log-in from my usual computer.

The error mentions ‘hover’, but my app.properties specify ‘halo’ as theme, so I don’t know what is going wrong.

Any help appreciated!
I am using Cuba platform 6.10.9.

Thanks,

 ERROR [http-nio-8080-exec-2] com.haulmont.cuba.web.AppUI - Unable to init ui
java.lang.IllegalStateException: Unable to use theme constants 'hover'
        at com.haulmont.cuba.web.App.loadTheme(App.java:145) ~[cuba-web-6.10.7.jar:6.10.7]
        at com.haulmont.cuba.web.App.init(App.java:239) ~[cuba-web-6.10.7.jar:6.10.7]
        at com.haulmont.cuba.web.AppUI.init(AppUI.java:203) ~[cuba-web-6.10.7.jar:6.10.7]
        at com.vaadin.ui.UI.doInit(UI.java:693) [vaadin-server-7.7.15.cuba.4.jar:7.7.15.cuba.4]
        at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:222) [vaadin-server-7.7.15.cuba.4.jar:7.7.15.cuba.4]
        at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:74) [vaadin-server-7.7.15.cuba.4.jar:7.7.15.cuba.4]
        at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41) [vaadin-server-7.7.15.cuba.4.jar:7.7.15.cuba.4]
        at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1435) [vaadin-server-7.7.15.cuba.4.jar:7.7.15.cuba.4]
        at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:361) [vaadin-server-7.7.15.cuba.4.jar:7.7.15.cuba.4]
        at com.haulmont.cuba.web.sys.CubaApplicationServlet.serviceAppRequest(CubaApplicationServlet.java:324) [cuba-web-6.10.7.jar:6.10.7]
        at com.haulmont.cuba.web.sys.CubaApplicationServlet.service(CubaApplicationServlet.java:210) [cuba-web-6.10.7.jar:6.10.7]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [tomcat8-servlet-api-8.0.32.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat8-websocket-8.0.32.jar:8.0.32]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:107) [spring-web-4.3.18.RELEASE.jar:4.3.18.RELEASE]
        at org.springframework.web.filter.CompositeFilter.doFilter(CompositeFilter.java:73) [spring-web-4.3.18.RELEASE.jar:4.3.18.RELEASE]
        at com.haulmont.cuba.web.sys.CubaHttpFilter.doFilter(CubaHttpFilter.java:107) [cuba-web-6.10.7.jar:6.10.7]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat8-coyote-8.0.32.jar:8.0.32]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat8-coyote-8.0.32.jar:8.0.32]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520) [tomcat8-coyote-8.0.32.jar:8.0.32]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476) [tomcat8-coyote-8.0.32.jar:8.0.32]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_191]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_191]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat8-util-8.0.32.jar:8.0.32]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_191]

Hello @Matthis

The hover theme could be saved as last used theme in cookies.

Could you clarify whether your web-app.properties file contains cuba.themeConfig config or not?

Is it possible to share the project or at leat web-app.properties file to investigate the issue?

Regards,
Daniil

Hi, thank you very much for looking into this, and apologies for my late reply!

To begin with please find my web-app.properties:
web-app.properties (1.7 KB)

The problem does not happen when I test locally, only when deployed.
I can’t seem to find a halo-theme.properties file in my project folder, could this be the issue?

Thank you,

Matthis

Hello @Matthis

Yes, the cuba.themeConfig property usually exists in a project when some theme is extended or custom theme created.

Value of this property should be equal to path to existing *-theme.properties file.

But it’s not related to initial stacktrace.

I still can’t solve this issue…
I can’t reproduce the issue when running from cuba studio, only when deployed.

Any ideas on how I could find more info about the problem?
I would like to send the entire project - is there a zip command like there was in the old studio?

Thanks!

You can archive the project with any available tool like 7-Zip

Ok - the cuba studio utility made a small zip which was nice.
Here is my project file. Thanks again for your kind help.

https://www.dropbox.com/s/t8cvz97miwt3tvp/tproj.7z?dl=1

I figured out was the issue was.
The version of war deployed on test server was incorrect, and had “hover” in web-app.properties.

Sorry for bothering you with that!
Now solved.

1 Like