-1
我正在使用Netbeans & JavaDB開發JSF + JPA應用程序。當數據庫處於脫機狀態時,我按照this link中的說明覆制了整個數據庫文件夾。當我將特定數據庫子文件夾複製到另一個德比位置或將整個數據庫文件夾作爲Netbeans Java數據庫中的新Java數據庫位置時,它會給出以下錯誤。Java Apache Derby數據庫恢復錯誤
Unable to connect. Cannot establish a connection to jdbc:derby://localhost:1527/hr using org.apache.derby.jdbc.ClientDriver(DERBY SQL error:SQLCODE: -1, SQLSTATE:XJ040, SQLERRMC:Failed to start database 'hr', see the next exception for details.:SQLSTATE:XSLANDatabase at D:\Data\PDHS\hr has an incompatible format with the current version of the software. The Database was created by or upgraded by version 10.8.).
如何解決此錯誤。
在此先感謝。
目標計算機的版本是10.5.3.0。所以我會嘗試更新java數據庫,然後重試。謝謝。 – 2013-03-27 04:44:26
在目標計算機上運行的derby數據庫是10.5版本。我更新了數據庫,問題解決了。謝謝 – 2013-03-27 06:09:34