麦粉社区
>
帖子详情

smartbi 链接Oracle19报错

其它 发表于 2022-4-27 17:28
发表于 2022-4-27 17:28:01

配置了Oracle19链接所需的jar包,但是配置数据链接过程中,还是报错,请问有朋友知道如何解决吗

image.png

发表于 2022-4-27 17:29:36
显示栈信息,发来看看
  •   麦粉818759
    version:	2022-04-21 11:29:30
    packageinfo:	Hotfix_SmartbiV10_5_20220307 
    
    
    未指定错误,请查看详细信息
    	at smartbi.framework.rmi.ClientService.executeInternal(ClientService.java:170)
    	at ...(...)
    	at smartbi.DynamicLoadLibManager.loadClass(DynamicLoadLibManager.java:378)
    Caused by: java.lang.UnsupportedClassVersionError: oracle/jdbc/driver/OracleDriver has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
    	at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	at smartbi.DynamicLoadLibManager.loadClass(DynamicLoadLibManager.java:378)
    	at smartbi.connectionpool.ConnectionPool.createPool(ConnectionPool.java:1157)
    	at smartbi.connectionpool.ConnectionPool.getConnectionPool(ConnectionPool.java:680)
    	at smartbi.connectionpool.ConnectionPool.getConnection(ConnectionPool.java:821)
    	at smartbi.connectionpool.ConnectionPool.getConnection(ConnectionPool.java:789)
    	at smartbi.freequery.basicdata.MetaDataServiceImpl.testConnection(MetaDataServiceImpl.java:642)
    	at smartbi.freequery.client.datasource.DataSourceService.testConnectionList(DataSourceService.java:287)
    	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 smartbi.framework.rmi.ClientService.executeInternal(ClientService.java:138)
    	at smartbi.framework.rmi.ClientService.execute(ClientService.java:120)
    	at smartbi.framework.rmi.RMIServlet.processExecute(RMIServlet.java:206)
    	at smartbi.framework.rmi.RMIServlet.doPost(RMIServlet.java:131)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at smartbi.extension.ExtensionFilter$2.doFilter(ExtensionFilter.java:275)
    	at smartbi.extension.ExtensionFilter$1.doFilter(ExtensionFilter.java:256)
    	at smartbi.security.patch.PatchFilter.doFilter(PatchFilter.java:77)
    	at smartbi.extension.ExtensionFilter$1.doFilter(ExtensionFilter.java:256)
    	at smartbi.extension.ExtensionFilter.doFilterInternal(ExtensionFilter.java:288)
    	at smartbi.extension.ExtensionFilter.doFilter(ExtensionFilter.java:109)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at smartbi.framework.rmi.TransactionFilter.doFilter(Smartbi:71)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at smartbi.freequery.filter.GZIPFilter.doFilter(GZIPFilter.java:236)
    	at smartbi.freequery.filter.Filter.doFilter(Filter.java:33)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at smartbi.freequery.filter.ExceptionResponseFilter.doFilter(ExceptionResponseFilter.java:85)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at smartbi.freequery.filter.CheckIsLoggedFilter.doFilter(CheckIsLoggedFilter.java:236)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at smartbi.freequery.filter.CheckRefererFilter.doFilter(CheckRefererFilter.java:45)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at smartbi.freequery.filter.CheckHttpMethodFilter.doFilter(CheckHttpMethodFilter.java:62)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at smartbi.freequery.filter.TraceFilter.doFilter(TraceFilter.java:61)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at smartbi.framework.RedisSessionFilter.doFilter(RedisSessionFilter.java:138)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
    	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:366)
    	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:639)
    	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
    	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:881)
    	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1647)
    	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
    	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
    	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    	at java.lang.Thread.run(Thread.java:748)
    
    2022-4-27 17:35| 回复
  •   红茶可乐
     回复 麦粉818759
    错误:由更新版本的Java运行时(类文件版本54.0)编译的,这个版本的Java运行时只识别52.0以下的类文件版本。
    2022-4-27 17:45| 回复
  •   打工人的一天
     回复 麦粉818759
    驱动不匹配,建议找个和当前oracle版本匹配的驱动来连接
    2022-4-28 17:26| 回复
  •   麦粉818759
     回复 打工人的一天
    已经更新了Oracle19c数据库的jar包,但是还不能成功链接
    
    2022-4-29 09:21| 回复
  •   打工人的一天
     回复 麦粉818759
    在驱动程序类文件夹上不要只放oracle19c对应的驱动,不要把其他版本的驱动都添加到对应的目录下。
    或者也可以先找个jdbc数据库客户端工具先连接看看,能否连上对应的数据库。
    2022-4-29 10:41| 回复

回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

6回帖数 0关注人数 1050浏览人数
最后回复于:2022-4-27 17:29
快速回复 返回顶部 返回列表