Huiliang Zhang <huiliang.zh...@huawei.com> writes: > Hi Knut Anders, > > Yes, I was using an old version Java DB (10.3.1). I just tried to > upgrade Java DB to 10.8.2.2. I used the new lib/*.jar to replaced the > old Java DB jars. After that, I restarted Java DB and it shows "Apache > Derby Network Server - 10.8.2.2". However, "OpenGrok index" still does > not work and returned the same exceptions.
This probably happens because the database that was created with version 10.3.1 is still lying around. It needs to be upgraded to a newer format too in order to support the required feature. Since I suppose you have nothing stored in the database yet, the easiest solution would be to delete the cachedb directory and rerun OpenGrok's indexer to get a new database created with the new version. Alternatively, if you want to preserve the contents of the database and just upgrade its format, the following steps should do the trick: 1. Start the Java DB server 2. Run "java -jar /path/to/javadb/lib/derbyrun.jar ij" and execute the following commands in the ij command-line interface: connect 'jdbc:derby://localhost/cachedb;upgrade=true'; exit; 3. Run the indexer -- Knut Anders _______________________________________________ opengrok-discuss mailing list opengrok-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss