You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Carfield Yim <ca...@carfield.com.hk> on 2007/08/04 08:56:39 UTC
Can I found out why the database is corrupted?
If I get the exception like following, and the file is exist as well
as the user have admin right, does that mean DB is corrupted? If it is
, possible to found out the reason?
>Caused by: SQL Exception: Failed to create database 'derbydb', see the next
>exce
>ption for details.
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java)
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java)
> at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java)
> at
>org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(EmbedConne
>ction.java)
> at
>org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(EmbedConnec
>tion.java)
> at
>org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.jav
>a)
> at
>org.apache.derby.impl.jdbc.EmbedConnection20.<init>(EmbedConnection20
>.java)
> at
>org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30
>.java)
> at
>org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java)
> at org.apache.derby.jdbc.Driver169.connect(Driver169.java)
> at
>org.apache.commons.dbcp.DriverConnectionFactory.createConnection(Driv
>erConnectionFactory.java:37)
> at
>org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable
>ConnectionFactory.java:290)
> at
>org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas
>icDataSource.java:881)
> at
>org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
>rce.java:855)
> ... 35 more
Re: Can I found out why the database is corrupted?
Posted by John Embretsen <Jo...@Sun.COM>.
Carfield Yim wrote:
> If I get the exception like following, and the file is exist as well
> as the user have admin right, does that mean DB is corrupted? If it is
> , possible to found out the reason?
>
>> Caused by: SQL Exception: Failed to create database 'derbydb', see the next
>> exce
>> ption for details.
[snip stack trace]
Try following the advice on the following page and see if you get more information:
http://wiki.apache.org/db-derby/UnwindExceptionChain
More hints and tips are available on the wiki (see HintsAndTips link under "How
to do stuff" on the front page, http://wiki.apache.org/).
--
John