No layoutdata for favicon.ico

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

Andrey
Posts: 48
Joined: Wed Jun 21, 2017 12:13 pm

No layoutdata for favicon.ico

Post by Andrey » Fri May 15, 2020 9:10 am

Hi,

After updating to OpenEMM 2020 Beta 20.04.000.132. All seems to work fine but in the log, there are a lot of such string with the No layoutdata for favicon.ico.

Code: Select all

Request Attributes:
IP: censored
javax.servlet.forward.request_uri: /favicon.ico;jsessionid=8B37A74B26BD3F5968E5B7593379B9A3
javax.servlet.forward.context_path: 
javax.servlet.forward.servlet_path: /favicon.ico
javax.servlet.forward.mapping: org.apache.catalina.core.ApplicationMapping$MappingImpl@5eadf6d7
com.agnitas.emm.ORIGIN_URI: /favicon.ico;jsessionid=8B37A74B26BD3F5968E5B7593379B9A3
org.apache.struts.taglib.tiles.CompContext: org.apache.struts.tiles.ComponentContext@33396f79
org.springframework.web.context.request.async.WebAsyncManager.WEB_ASYNC_MANAGER: org.springframework.web.context.request.async.WebAsyncManager@7e15b5ab
javax.servlet.error.status_code: 500
org.apache.struts.action.MESSAGE: com.agnitas.messages.DBMessagesResourceWrapperForStruts@36fc77fb
org.apache.struts.action.mapping.instance: ActionConfig[cancellable=false,path=/error,validate=true,parameter=error,scope=session,type=com.agnitas.web.perm.DelegatingActionProxySecured
org.apache.struts.action.MODULE: org.apache.struts.config.impl.ModuleConfigImpl@531a1cd8
org.apache.struts.globals.ORIGINAL_URI_KEY: /error.do
javax.servlet.error.servlet_name: LayoutServlet
javax.servlet.error.message: Error occurred when loading image
org.springframework.web.context.request.RequestContextListener.REQUEST_ATTRIBUTES: org.apache.catalina.connector.RequestFacade@48d74da0
javax.servlet.error.exception_type: class java.lang.Exception
javax.servlet.error.request_uri: /favicon.ico;jsessionid=8B37A74B26BD3F5968E5B7593379B9A3
javax.servlet.error.exception: java.lang.Exception: No layoutdata for 0/favicon.ico

java.lang.Exception: No layoutdata for 0/favicon.ico
	at com.agnitas.web.LayoutServlet.service(LayoutServlet.java:109)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.OriginUriFilter.doFilter(OriginUriFilter.java:43)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:80)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.sessionhijacking.web.GroupingSessionHijackingPreventionFilter.doFilter(GroupingSessionHijackingPreventionFilter.java:105)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.web.filter.HttpSecurityHeaderFilter.doFilter(HttpSecurityHeaderFilter.java:108)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.LoadBalancerFilter.doFilter(LoadBalancerFilter.java:153)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:666)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1594)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)

maschoff
Site Admin
Posts: 2481
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: No layoutdata for favicon.ico

Post by maschoff » Fri May 15, 2020 10:34 am

Thanks, we will look into that. Maybe we have to fix something in OpenEMMInstaller.
OpenEMM Maintainer

aso
Posts: 21
Joined: Fri Jun 19, 2015 12:43 pm

Re: No layoutdata for favicon.ico

Post by aso » Fri May 15, 2020 11:59 am

Hello,

It seems like something went wrong in the initial migration to the new version.
Please execute the following SQL Statement once on your database.
Then restart the OpenEMM. This will execute the migration for the layout logos again.
This should fix the Logo problem once for all.
After the Restart the table "layout_tbl" should have 4 entries:
0 favicon.ico
0 logo.svg
0 logo.png
0 edition_logo.png
If there is still one logo missing please check following path for file existence:
"/home/openemm/webapps/emm/favicon.ico"

Fix SQL:
DELETE FROM layout_tbl;

Andrey
Posts: 48
Joined: Wed Jun 21, 2017 12:13 pm

Re: No layoutdata for favicon.ico

Post by Andrey » Fri May 15, 2020 6:49 pm

Hi,
Thank you!
maschoff wrote:
Fri May 15, 2020 10:34 am
Fix SQL:
DELETE FROM layout_tbl;
Unfortunately, the layout_tbl is empty after the restart, as it was before the DELETE.

Code: Select all

MariaDB [openemm]> SELECT * FROM layout_tbl;
Empty set (0,00 sec)
UPD:
reinstalled the OpenEmm backend and frontend from OpenEmm installer and the favicon error still persists.

Code: Select all

Request Parameters:

Request Attributes:
IP: --
javax.servlet.forward.request_uri: /favicon.ico;jsessionid=4428E26F2DE912D6B3C210CB1B58AE20
javax.servlet.forward.context_path: 
javax.servlet.forward.servlet_path: /favicon.ico
javax.servlet.forward.mapping: org.apache.catalina.core.ApplicationMapping$MappingImpl@47ba6f7b
com.agnitas.emm.ORIGIN_URI: /favicon.ico;jsessionid=4428E26F2DE912D6B3C210CB1B58AE20
org.apache.struts.taglib.tiles.CompContext: org.apache.struts.tiles.ComponentContext@38646ca2
org.springframework.web.context.request.async.WebAsyncManager.WEB_ASYNC_MANAGER: org.springframework.web.context.request.async.WebAsyncManager@40e3bef7
javax.servlet.error.status_code: 500
org.apache.struts.action.MESSAGE: com.agnitas.messages.DBMessagesResourceWrapperForStruts@6e0f2149
org.apache.struts.action.mapping.instance: ActionConfig[cancellable=false,path=/error,validate=true,parameter=error,scope=session,type=com.agnitas.web.perm.DelegatingActionProxySecured
org.apache.struts.action.MODULE: org.apache.struts.config.impl.ModuleConfigImpl@294b23e5
org.apache.struts.globals.ORIGINAL_URI_KEY: /error.do
javax.servlet.error.message: Error occurred when loading image
javax.servlet.error.servlet_name: LayoutServlet
org.springframework.web.context.request.RequestContextListener.REQUEST_ATTRIBUTES: org.apache.catalina.connector.RequestFacade@4ec660f2
javax.servlet.error.exception_type: class java.lang.Exception
javax.servlet.error.request_uri: /favicon.ico;jsessionid=4428E26F2DE912D6B3C210CB1B58AE20
javax.servlet.error.exception: java.lang.Exception: No layoutdata for 0/favicon.ico

java.lang.Exception: No layoutdata for 0/favicon.ico
	at com.agnitas.web.LayoutServlet.service(LayoutServlet.java:109)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.OriginUriFilter.doFilter(OriginUriFilter.java:43)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:80)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.sessionhijacking.web.GroupingSessionHijackingPreventionFilter.doFilter(GroupingSessionHijackingPreventionFilter.java:105)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.web.filter.HttpSecurityHeaderFilter.doFilter(HttpSecurityHeaderFilter.java:108)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.LoadBalancerFilter.doFilter(LoadBalancerFilter.java:153)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:666)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1594)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)

Post Reply