Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-121

MalformedObjectNameException when root path contains special characters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 5.4.2
    • 5.4.1
    • ehcache
    • None
    • Windows
    • Sprint 6 (Kromeriz)
    • 1

      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
      

        Acceptance criteria

              rkovarik Roman Kovařík
              rkovarik Roman Kovařík
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 0.75h
                    0.75h