net.sf.ehcache.CacheException: Error configuring from jar:file:/C:/documents and settings/jt/LOCALS~1/Temp/config_29212.jar!/ehcache.xml. Error was file:\C:\documents and settings\jt\LOCALS~1\Temp\config_29212.jar!\ehcache.xml (The filename, directory name, or volume label syntax is incorrect)

Terracotta Project Issue Tracker | Sourceforge Tracker | 7 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Loading any configuration file from a jar fails in the current beta release and CVS head. Error details: net.sf.ehcache.CacheException: Error configuring from jar:file:/C:/documents and settings/jt/LOCALS~1/Temp/config_29212.jar!/ehcache.xml. Error was file:\C:\documents and settings\jt\LOCALS~1\Temp\config_29212.jar!\ehcache.xml (The filename, directory name, or volume label syntax is incorrect) at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:120) at net.sf.ehcache.config.ConfigurationFactoryTest.testDefaultConfiguration(ConfigurationFactoryTest.java:561) at net.sf.ehcache.config.ConfigurationFactoryTest.testLoadConfigurationFromJarURL(ConfigurationFactoryTest.java:617) <snip/> This is regression caused by the fix applied for bug 1237017: "Fails to load ehcache.xml if the filepath contains spaces" - it now tries to convert all urls to a file path and load from that path, which will only work for files - not for jars, http or any other protocol. The fix is to simply use the URL.openStream() method. Note that this fix will invalidate bug 1338846: "URLdecode for url.getFile". The attached patch fixes the issue and includes a test case to prevent regression. Sourceforge Ticket ID: 1410374 - Opened By: teljj001 - 20 Jan 2006 02:05 UTC

    Terracotta Project Issue Tracker | 7 years ago | Sourceforge Tracker
    net.sf.ehcache.CacheException: Error configuring from jar:file:/C:/documents and settings/jt/LOCALS~1/Temp/config_29212.jar!/ehcache.xml. Error was file:\C:\documents and settings\jt\LOCALS~1\Temp\config_29212.jar!\ehcache.xml (The filename, directory name, or volume label syntax is incorrect)

    Root Cause Analysis

    1. net.sf.ehcache.CacheException

      Error configuring from jar:file:/C:/documents and settings/jt/LOCALS~1/Temp/config_29212.jar!/ehcache.xml. Error was file:\C:\documents and settings\jt\LOCALS~1\Temp\config_29212.jar!\ehcache.xml (The filename, directory name, or volume label syntax is incorrect)

      at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration()
    2. Ehcache
      ConfigurationFactoryTest.testLoadConfigurationFromJarURL
      1. net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:120)
      2. net.sf.ehcache.config.ConfigurationFactoryTest.testDefaultConfiguration(ConfigurationFactoryTest.java:561)
      3. net.sf.ehcache.config.ConfigurationFactoryTest.testLoadConfigurationFromJarURL(ConfigurationFactoryTest.java:617)
      3 frames