当我运行遗留java应用程序的spring集成测试时,出现以下错误:
Apr 14, 2021 9:59:44 AM org.apache.calcite.avatica.UnregisteredDriver handle
SEVERE: Error loading factory org.apache.calcite.jdbc.CalciteJdbc41Factory
java.lang.StackOverflowError
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.Class.forName0(Native Method)
...
java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:780)
at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:722)
at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1395)
at java.sql/java.sql.DriverManager$2.run(DriverManager.java:614)
at java.sql/java.sql.DriverManager$2.run(DriverManager.java:594)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.sql/java.sql.DriverManager.ensureDriversInitialized(DriverManager.java:594)
at java.sql/java.sql.DriverManager.getDrivers(DriverManager.java:424)
at com.sybase.jdbc4.jdbc.SybDriver.registerWithDriverManager(SybDriver.java:711)
at com.sybase.jdbc4.jdbc.SybDriver.<init>(SybDriver.java:140)
at jdk.internal.reflect.GeneratedConstructorAccessor22.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:780)
at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:722)
at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1395)
at java.sql/java.sql.DriverManager$2.run(DriverManager.java:614)
at java.sql/java.sql.DriverManager$2.run(DriverManager.java:594)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.sql/java.sql.DriverManager.ensureDriversInitialized(DriverManager.java:594)
at java.sql/java.sql.DriverManager.getDrivers(DriverManager.java:424)
at com.sybase.jdbc4.jdbc.SybDriver.registerWithDriverManager(SybDriver.java:711)
at com.sybase.jdbc4.jdbc.SybDriver.<init>(SybDriver.java:140)
at jdk.internal.reflect.GeneratedConstructorAccessor22.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:780)
at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:722)
at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1395)
at java.sql/java.sql.DriverManager$2.run(DriverManager.java:614)
at java.sql/java.sql.DriverManager$2.run(DriverManager.java:594)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.sql/java.sql.DriverManager.ensureDriversInitialized(DriverManager.java:594)
at java.sql/java.sql.DriverManager.getDrivers(DriverManager.java:424)
at com.sybase.jdbc4.jdbc.SybDriver.registerWithDriverManager(SybDriver.java:711)
at com.sybase.jdbc4.jdbc.SybDriver.<init>(SybDriver.java:140)
at jdk.internal.reflect.GeneratedConstructorAccessor22.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:780)
at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:722)
at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1395)
at java.sql/java.sql.DriverManager$2.run(DriverManager.java:614)
at java.sql/java.sql.DriverManager$2.run(DriverManager.java:594)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.sql/java.sql.DriverManager.ensureDriversInitialized(DriverManager.java:594)
测试成功地完成了,但我想消除这个错误。
不幸的是,我不知道从哪里开始寻找原因。你有什么提示吗?
暂无答案!
目前还没有任何答案,快来回答吧!