Code:
[com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache] - [oscache] Exception persisting sql: select ticket0_.ticketId as ticketId1_, ticket0_.ticketType as ticketType1_, ticket0_.active as active1_ from TICKET ticket0_ where ticket0_.peopleId = ? and ticket0_.active=0; parameters: 1, ; named parameters: {}.org.hibernate.cache.StandardQueryCache
com.opensymphony.oscache.base.persistence.CachePersistenceException: Unable to write 'c:\myapp\cache\application\sql__select_ticket0__ticketId_as_ticketId1_,_ticket0__ticketType_as_ticketType1_,_ticket0__active_as_active1__from_TICKET_ticket0__where_ticket0__peopleId_=_?_and_ticket0__active=0__parameters__1,___named_parameters__{}_org_hibernate_cache_StandardQueryCache.cache' in the cache. Exception: java.io.FileNotFoundException, Message: c:\myapp\cache\application\sql__select_ticket0__ticketId_as_ticketId1_,_ticket0__ticketType_as_ticketType1_,_ticket0__active_as_active1__from_TICKET_ticket0__where_ticket0__peopleId_=_?_and_ticket0__active=0__parameters__1,___named_parameters__{}_org_hibernate_cache_StandardQueryCache.cache (The filename, directory name, or volume label syntax is incorrect)
at com.opensymphony.oscache.plugins.diskpersistence.AbstractDiskPersistenceListener.store(AbstractDiskPersistenceListener.java:350)
at com.opensymphony.oscache.plugins.diskpersistence.AbstractDiskPersistenceListener.store(AbstractDiskPersistenceListener.java:238)
at com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache.persistStore(AbstractConcurrentReadCache.java:1091)
at com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache.put(AbstractConcurrentReadCache.java:1570)
at com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache.put(AbstractConcurrentReadCache.java:866)
at com.opensymphony.oscache.base.Cache.putInCache(Cache.java:570)
at com.opensymphony.oscache.base.Cache.putInCache(Cache.java:535)
at com.opensymphony.oscache.general.GeneralCacheAdministrator.putInCache(GeneralCacheAdministrator.java:241)
at com.opensymphony.oscache.general.GeneralCacheAdministrator.putInCache(GeneralCacheAdministrator.java:251)
at org.hibernate.cache.OSCache.put(OSCache.java:56)
at org.hibernate.cache.StandardQueryCache.put(StandardQueryCache.java:87)
at org.hibernate.loader.Loader.putResultInQueryCache(Loader.java:2194)
at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2138)
at org.hibernate.loader.Loader.list(Loader.java:2096)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.listFilter(SessionImpl.java:1477)
at org.hibernate.impl.CollectionFilterImpl.list(CollectionFilterImpl.java:51)
at service.Main.filterCollection(Main.java:67)
at service.Main.main(Main.java:56)
I am using OSCache, hibernate query cache, I got this exception. Obviously, the file name is too long for Windows. Any ideas how to fix it ?
Thanks.