使用derby資料庫首次串連時的ERROR 42Y07問題

來源:互聯網
上載者:User

近日,使用某產品安裝部署,在首次運行時,後台拋出以下異常:

Caused by: java.sql.SQLException: Schema 'ROOT' does not exist
    at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
    at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
    ... 72 more
Caused by: ERROR 42Y07: Schema 'ROOT' does not exist
    at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
    at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getSchemaDescriptor(Unknown Source)
    at org.apache.derby.impl.sql.compile.QueryTreeNode.getSchemaDescriptor(Unknown Source)
    at org.apache.derby.impl.sql.compile.QueryTreeNode.getSchemaDescriptor(Unknown Source)
    at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
    at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
    at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
    at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
    at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
    at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
    at org.apache.derby.impl.sql.compile.CursorNode.bindState

單從異常來看是由於名為“ROOT”的Schema不存在造成的異常,由於資料庫使用的是derby資料庫而且手頭上木有相應的用戶端工具,因此,無法驗證此問題。還是求助Google。

關鍵字:Caused by: ERROR 42Y07: Schema 'ROOT' does not exist,結果中有一位xd介紹“Continuum入門”的博文(作者:jiangshachina,地址:http://www.blogjava.net/jiangshachina/archive/2006/09/09/68680.aspx),此文中提到作者也遇到此問題,而且給出明確解釋:

2.3 啟動Continuum
    假設此時已經安裝了Continuum,但還沒有運行它。要運行Continuum,可以雙擊Continuum_Home\bin\win32\run.bat檔案。對於第一次運行,會報一些錯誤:

……
WARN  RDBMS - Error initialising derby schema : Schema 'SA' does not exist
ERROR 42Y07: Schema 'SA' does not exist
……

這種情況是正常的,因為Continuum後台使用的是Apache Derby資料庫,在第一次運行之前,Continuum所需要的一些表和資料並不存在。但Continuum會初始化這些資料,當第2次啟動Continuum時,這些錯誤就不會出現了。

按照這個思路,我再次啟動產品,發現後台這些異常資訊,不斷拋出,看來服務是正在運行,等後台不再拋異常以後,重啟。

後台正常了!!!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.