I loaded with loadjava tool Jaybird-3.0.9-JDK_1.8 JDBC driver and my java class to Oracle database. All classes were resolved. When I run Java Stored Procedure from Oracle first time got
error ORA-29532: Java call terminated by uncaught Java exception: java.util.ServiceConfigurationError: org.firebirdsql.gds.impl.GDSFactoryPlugin: Error reading configuration file
when the java application was creating connection.
The next calls with the same Oracle connection lead to
ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError
After reconnect I get ServiceConfigurationError exception again. The same code works fine from java. Any good idea? Many thanks
META-INF/services, or the way Oracle classloader works disallows loading those files, as a result, Jaybird can't configure some of its parts. Normally, this would cause a fallback to a built-in list, but it looks like this ServiceConfigurationError is thrown where Jaybird doesn't expect it, and thus it isn't caught. The stacktrace would help me identify the cause and where it is thrown. - Mark Rotteveel