]
Vojtech Juranek updated ISPN-7181:
----------------------------------
Status: Open (was: New)
RocksDB cache store fails when using embedded uber jar
------------------------------------------------------
Key: ISPN-7181
URL:
https://issues.jboss.org/browse/ISPN-7181
Project: Infinispan
Issue Type: Bug
Components: Build process
Reporter: Vojtech Juranek
Assignee: Vojtech Juranek
When app uses depends on ISPN embedded user jar and has configured RocksDB cache store,
it fails with
{noformat}
Caused by: java.lang.NoClassDefFoundError: org/rocksdb/RocksDBException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetPublicMethods(Class.java:2902)
at java.lang.Class.getMethods(Class.java:1615)
at org.infinispan.commons.util.Util.getFactoryMethod(Util.java:220)
at org.infinispan.commons.util.Util.getInstanceStrict(Util.java:259)
at org.infinispan.commons.util.Util.getInstance(Util.java:238)
at
org.infinispan.persistence.factory.LocalClassLoaderCacheStoreFactory.createInstance(LocalClassLoaderCacheStoreFactory.java:25)
at
org.infinispan.persistence.factory.CacheStoreFactoryRegistry.createInstance(CacheStoreFactoryRegistry.java:39)
at
org.infinispan.persistence.manager.PersistenceManagerImpl.createLoadersAndWriters(PersistenceManagerImpl.java:590)
at
org.infinispan.persistence.manager.PersistenceManagerImpl.start(PersistenceManagerImpl.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
... 11 more
Caused by: java.lang.ClassNotFoundException: org.rocksdb.RocksDBException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 27 more
{noformat}