Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error executing tag <ala:systemMessage>: Cache systemMessageCache already exists #5

Open
ansell opened this issue May 28, 2019 · 2 comments

Comments

@ansell
Copy link

ansell commented May 28, 2019

The APPD was broken for the past 2 days with the following exceptions in the log after restarting. A grails developer may be aware of a fix for this other than stopping tomcat, deleting the temporary directories and restarting tomcat, which a well functioning web application should not require for normal operations:

==> /var/log/tomcat7/catalina.out <==
May 29, 2019 8:37:55 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [default] in context with path [/appd-hub] threw exception
org.codehaus.groovy.grails.web.mapping.exceptions.UrlMappingException: Error mapping onto view [/index]: Error applying layout : appd
	at au.org.ala.cas.client.UriFilter.doFilter(UriFilter.java:181)
	at au.org.ala.web.filter.ParametersFilterProxy.doFilter(ParametersFilterProxy.java:24)
	at au.org.ala.cas.client.UriFilter.doFilter(UriFilter.java:181)
	at au.org.ala.web.filter.ParametersFilterProxy.doFilter(ParametersFilterProxy.java:24)
	at au.org.ala.cas.client.UriFilter.doFilter(UriFilter.java:181)
	at au.org.ala.web.filter.ParametersFilterProxy.doFilter(ParametersFilterProxy.java:24)
	at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:97)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error applying layout : appd
	... 10 more
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag <plugin:isAvailable>: Error executing tag <ala:systemMessage>: Cache systemMessageCache already exists
	... 10 more
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <plugin:isAvailable>: Error executing tag <ala:systemMessage>: Cache systemMessageCache already exists
	at gsp_appdHub_layoutsappd_gsp$_run_closure2.doCall(gsp_appdHub_layoutsappd_gsp.groovy:85)
	at gsp_appdHub_layoutsappd_gsp.run(gsp_appdHub_layoutsappd_gsp.groovy:92)
	... 10 more
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <ala:systemMessage>: Cache systemMessageCache already exists
	at gsp_appdHub_layoutsappd_gsp$_run_closure2$_closure6.doCall(gsp_appdHub_layoutsappd_gsp.groovy:82)
	... 12 more
Caused by: net.sf.ehcache.ObjectExistsException: Cache systemMessageCache already exists
	at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1115)
	at net.sf.ehcache.CacheManager.addCache(CacheManager.java:1006)
	at net.sf.ehcache.CacheManager.addCache(CacheManager.java:959)
	at grails.plugin.cache.ehcache.GrailsEhcacheCacheManager.getCache(GrailsEhcacheCacheManager.java:60)
	at au.org.ala.admin.SystemMessageTagLib.showSystemMessage(SystemMessageTagLib.groovy:16)
	at au.org.ala.admin.SystemMessageTagLib$_closure1.doCall(SystemMessageTagLib.groovy:12)
	... 13 more

May 29, 2019 8:37:55 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [default] in context with path [/appd-hub] threw exception
org.codehaus.groovy.grails.web.mapping.exceptions.UrlMappingException: Error mapping onto view [/index]: Error applying layout : appd
	at au.org.ala.cas.client.UriFilter.doFilter(UriFilter.java:181)
	at au.org.ala.web.filter.ParametersFilterProxy.doFilter(ParametersFilterProxy.java:24)
	at au.org.ala.cas.client.UriFilter.doFilter(UriFilter.java:181)
	at au.org.ala.web.filter.ParametersFilterProxy.doFilter(ParametersFilterProxy.java:24)
	at au.org.ala.cas.client.UriFilter.doFilter(UriFilter.java:181)
	at au.org.ala.web.filter.ParametersFilterProxy.doFilter(ParametersFilterProxy.java:24)
	at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:97)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error applying layout : appd
	... 10 more
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag <plugin:isAvailable>: Error executing tag <ala:systemMessage>: Cache systemMessageCache already exists
	... 10 more
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <plugin:isAvailable>: Error executing tag <ala:systemMessage>: Cache systemMessageCache already exists
	at gsp_appdHub_layoutsappd_gsp$_run_closure2.doCall(gsp_appdHub_layoutsappd_gsp.groovy:85)
	at gsp_appdHub_layoutsappd_gsp.run(gsp_appdHub_layoutsappd_gsp.groovy:92)
	... 10 more
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <ala:systemMessage>: Cache systemMessageCache already exists
	at gsp_appdHub_layoutsappd_gsp$_run_closure2$_closure6.doCall(gsp_appdHub_layoutsappd_gsp.groovy:82)
	... 12 more
Caused by: net.sf.ehcache.ObjectExistsException: Cache systemMessageCache already exists
	at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1115)
	at net.sf.ehcache.CacheManager.addCache(CacheManager.java:1006)
	at net.sf.ehcache.CacheManager.addCache(CacheManager.java:959)
	at grails.plugin.cache.ehcache.GrailsEhcacheCacheManager.getCache(GrailsEhcacheCacheManager.java:60)
	at au.org.ala.admin.SystemMessageTagLib.showSystemMessage(SystemMessageTagLib.groovy:16)
	at au.org.ala.admin.SystemMessageTagLib$_closure1.doCall(SystemMessageTagLib.groovy:12)
	... 13 more

May 29, 2019 8:37:55 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'grails-errorhandler'
@ansell
Copy link
Author

ansell commented May 28, 2019

This ticket was created based on ticket 33358 in helpdesk

@nickdos
Copy link
Contributor

nickdos commented May 29, 2019

This tag comes from ala-admin-plugin so might need to move issue there. I've just looked and the that plugin is now updated for Grails 3 although there is a Grails 2 branch there,.

@ansell ansell transferred this issue from AtlasOfLivingAustralia/appd-hub May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants