Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 65911 invoked from network); 6 Aug 2007 07:27:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2007 07:27:36 -0000 Received: (qmail 14730 invoked by uid 500); 6 Aug 2007 07:27:34 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 14702 invoked by uid 500); 6 Aug 2007 07:27:34 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Delivered-To: moderator for derby-user@db.apache.org Received: (qmail 8346 invoked by uid 99); 4 Aug 2007 06:57:30 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of carfield@gmail.com designates 209.85.146.178 as permitted sender) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=LkNik4Em9Hf9F6erMvmflnBxuY9xjiBSAaZH9IL6zOiKMtJ7y9BFAQRakuGmgSj0BGYYdmUoM3//lRuX0cBqYc3PYmvv4DfVCuNl0lRqVzsfnTJ8C30delnfccyW9AwHZX0WaaY1G+qwsSfqXJSbXfNLTurrxI9Jz14xE79A+G0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=NOhYCjCz3zEtE9578Ms2EQIWRjoNmJvljr6K+e1kTkwBmkiG1vZ52korp1Y1ZQA1RToW8VAqNwoGQgAbAg70XmO+269PNMl3rvraR7cJeWcD0jLLxkNZ8cwbuTItt4Me7CMX6wGQ0eDDbnsq17zuAZNrVhAAbxRctlnXIzDadnA= Message-ID: Date: Sat, 4 Aug 2007 14:56:39 +0800 From: "Carfield Yim" Sender: carfield@gmail.com To: derby-user@db.apache.org Subject: Can I found out why the database is corrupted? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 51678aa4c2301926 X-Virus-Checked: Checked by ClamAV on apache.org 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.(EmbedConnection.jav >a) > at >org.apache.derby.impl.jdbc.EmbedConnection20.(EmbedConnection20 >.java) > at >org.apache.derby.impl.jdbc.EmbedConnection30.(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