[infinispan-issues] [JBoss JIRA] Work started: (ISPN-827) DefaultCacheManager don't fallback gracefully to file system based configuration when initiated from within glassfish.

Manik Surtani (JIRA) jira-events at lists.jboss.org
Fri Dec 10 18:59:52 EST 2010


     [ https://issues.jboss.org/browse/ISPN-827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on ISPN-827 started by Manik Surtani.

> DefaultCacheManager don't fallback gracefully to file system based configuration when initiated from within glassfish.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-827
>                 URL: https://issues.jboss.org/browse/ISPN-827
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 4.1.0.Final, 4.2.0.CR3
>         Environment: Windows 7 64 bit.
>            Reporter: Jonas Lasson
>            Assignee: Manik Surtani
>             Fix For: 4.2.0.CR4, 4.2.0.Final
>
>
> When initiating the DefaultCacheManager with an absolute windows path from within Glassfish, a IllegalArgumentException is thrown before the configuration is even tried to be read with FileInputStream.
> SEVERE: org.infinispan.config.ConfigurationException: java.lang.IllegalArgumentException: name
> 	at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:256)
> The problem is easily reproducible by doing:
> new DefaultCacheManager("c:\\cachetest.xml");
> From within a servlet.
> The reason for this problem is found in FileLookup.java line 68, and happens because the classloader throws an IllegalArgumentException for the path provided.
> A simple solution would be to catch runtime exceptions when we try to load a resource from the cache loader, and then fall back to reading the config file with FileInputStream

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list