You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to use JdbcStoreFactory - missing class org.logicalcobwebs.proxool.ProxoolDataSource #607
Describe the bug
When I try to use JdbcStoreFactory like this:
MessageStoreFactory messageStoreFactory = new JdbcStoreFactory(settings);
...
this.initiator = new SocketInitiator(this, messageStoreFactory, settings, logFactory, messageFactory);
...
I get the following error (full stack trace at the bottom):
Caused by: java.lang.ClassNotFoundException: org.logicalcobwebs.proxool.ProxoolDataSource
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @289d1c02
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
at org.logicalcobwebs.cglib.core.ReflectUtils$2.run(ReflectUtils.java:56)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at org.logicalcobwebs.cglib.core.ReflectUtils.<clinit>(ReflectUtils.java:46)
changed the title [-]Unable to use JdbcStoreFactory missing class org.logicalcobwebs.proxool.ProxoolDataSource[/-][+]Unable to use `JdbcStoreFactory` - missing class `org.logicalcobwebs.proxool.ProxoolDataSource`[/+]on Feb 13, 2023
Activity
chrjohn commentedon Jan 27, 2023
Also see #373
chrjohn commentedon Jan 27, 2023
As you can see in the discussion I mentioned you could use another connection pool by passing the data source to the JdbcStore.
IMHO we could get rid of Proxool, would you like to provide a pull request?
As for the exception you are encountering: https://stackoverflow.com/a/41265267/4962355
brisote commentedon Feb 6, 2023
Thanks for the help @chrjohn. I solved the issue using this code:
I will be not able to create a pull request for such thing as I'm not very familiar with the code base of the library.
[-]Unable to use JdbcStoreFactory missing class org.logicalcobwebs.proxool.ProxoolDataSource[/-][+]Unable to use `JdbcStoreFactory` - missing class `org.logicalcobwebs.proxool.ProxoolDataSource`[/+]