db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saurabh Vyas <Saurabh.V...@Sun.COM>
Subject Error while connecting to existing database with create=true
Date Mon, 16 Apr 2007 08:59:51 GMT
Hi All,

I got the following error while I tried to connect to database which was 
already existing!!!!!!(unlikely to the warning message)
Am I missing anything or can anyone please tell me what went wrong in 
this scenario.
Apart when I deleted the database dir (mydb in my case) and then tried 
to connect again, things went fine (as expected)

$ java org.apache.derby.tools.ij
ij version 10.3
ij> connect 'jdbc:derby:mydb;create=true';
java.lang.NoSuchMethodError: 
org.apache.derby.iapi.services.io.ArrayInputStream.setLimit(II)I
        at 
org.apache.derby.impl.store.raw.log.Scan.getNextRecordForward(Scan.java:856)
        at 
org.apache.derby.impl.store.raw.log.Scan.getNextRecord(Scan.java:206)
        at 
org.apache.derby.impl.store.raw.log.FileLogger.redo(FileLogger.java:1176)
        at 
org.apache.derby.impl.store.raw.log.LogToFile.recover(LogToFile.java:811)
        at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:309)
        at 
org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1994)
        at 
org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:291)
        at 
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:546)
        at 
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:419)
        at 
org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:985)
        at 
org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1994)
        at 
org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:291)
        at 
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:546)
        at 
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:419)
        at 
org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:753)
        at 
org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:188)
        at 
org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1994)
        at 
org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:291)
        at 
org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1829)
        at 
org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1695)
        at 
org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1575)
        at 
org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
        at 
org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
        at 
org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1789)
        at 
org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:253)
        at 
org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:73)
        at 
org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:74)
        at 
org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
        at 
org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:117)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:140)
        at org.apache.derby.impl.tools.ij.ij.dynamicConnection(ij.java:1124)
        at org.apache.derby.impl.tools.ij.ij.ConnectStatement(ij.java:974)
        at org.apache.derby.impl.tools.ij.ij.ijStatement(ij.java:802)
        at 
org.apache.derby.impl.tools.ij.utilMain.runScriptGuts(utilMain.java:350)
        at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:270)
        at org.apache.derby.impl.tools.ij.Main.go(Main.java:215)
        at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:181)
        at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:56)
        at org.apache.derby.tools.ij.main(ij.java:71)
ERROR XJ040: Failed to start database 'mydb', see the next exception for 
details.
ERROR XJ001: Java exception: 
'org.apache.derby.iapi.services.io.ArrayInputStream.setLimit(II)I: 
java.lang.NoSuchMethodError'.
ij>

Mime
View raw message