[MGNLCACHE-121] MalformedObjectNameException when root path contains special characters Created: 18/Aug/15  Updated: 11/Nov/16  Resolved: 18/Aug/15

Status: Closed
Project: Cache Modules
Component/s: ehcache
Affects Version/s: 5.4.1
Fix Version/s: 5.4.2

Type: Bug Priority: Critical
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.75h
Original Estimate: Not Specified
Environment:

Windows


Issue Links:
causality
caused by MGNLCACHE-120 Not possible to run two web apps unde... Closed
duplicate
is duplicated by MGNLCACHE-123 "Clear all caches" in 5.4.1 CE throws... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Sprint: Sprint 6 (Kromeriz)
Story Points: 1

 Description   

Workaround: downgrade to magnolia-cache-ehcahe-5.4

<dependency>
      <groupId>info.magnolia.cache</groupId>
      <artifactId>magnolia-cache-ehcache</artifactId>
      <version>5.4</version>
</dependency>
2015-08-18 08:04:46,268 ERROR info.magnolia.module.ModuleManagerImpl            : Can't start module cache
net.sf.ehcache.CacheException: javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
	at net.sf.ehcache.management.Cache.createObjectName(Cache.java:76)
	at net.sf.ehcache.management.Cache.<init>(Cache.java:64)
	at net.sf.ehcache.management.ManagementService.notifyCacheAdded(ManagementService.java:365)
	at net.sf.ehcache.event.CacheManagerEventListenerRegistry.notifyCacheAdded(CacheManagerEventListenerRegistry.java:159)
	at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1448)
	at net.sf.ehcache.CacheManager.addCache(CacheManager.java:1312)
	at net.sf.ehcache.CacheManager.addCache(CacheManager.java:1256)
	at info.magnolia.module.cache.ehcache.EhCacheFactory.createCache(EhCacheFactory.java:172)
	at info.magnolia.module.cache.ehcache.EhCacheFactory.getCache(EhCacheFactory.java:158)
	at info.magnolia.module.cache.AbstractCacheModule.startCache(AbstractCacheModule.java:61)
	at info.magnolia.module.cache.CacheModule.start(CacheModule.java:141)
	at info.magnolia.module.ModuleManagerImpl.startModule(ModuleManagerImpl.java:402)
	at info.magnolia.module.ModuleManagerImpl.startModules(ModuleManagerImpl.java:343)
	at info.magnolia.module.ui.ModuleManagerWebUI.onStartup(ModuleManagerWebUI.java:78)
	at info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:148)
	at info.magnolia.init.MagnoliaServletContextListener$1.doExec(MagnoliaServletContextListener.java:250)
	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:421)
	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:418)
	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:392)
	at info.magnolia.init.MagnoliaServletContextListener.startServer(MagnoliaServletContextListener.java:247)
	at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:173)
	at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:127)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
	at javax.management.ObjectName.construct(Unknown Source)
	at javax.management.ObjectName.<init>(Unknown Source)
	at net.sf.ehcache.management.Cache.createObjectName(Cache.java:73)
	... 31 more

Generated at Sun Feb 11 23:52:25 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.