使用FineReport鏈接Oracle時,出現以下日誌:java
嚴重:java.sql.SQLException: ORA-28040: No matching authentication protocolsql
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at com.fr.dav.LocalEnv.testConnection(Unknown Source)
at com.fr.design.data.datapane.connect.DatabaseConnectionPane$1$1.doInBackground(Unknown Source)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2019-07-23 10:49:03
正常:加載配置文件:"datasource.xml".spa
解決方法:日誌
在報表軟件安裝目錄下,個人是在D:\FineReport8.0-CN\FineReport8.0-CNInStall\FineReport_8.0\WebReport\WEB-INF\lib,有如上圖片中名爲 ojdbc** 的jar包,將他替換爲你的Oracle所對應的 jar,個人替換爲 ojdbc11,再次連接就能夠了,注意須要將你原來的 ojdbc** 從原文件中刪除(建議剪切到另外文件夾,備用)。xml