db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shashanka tilak <shashankati...@yahoo.com>
Subject derby exception
Date Thu, 20 Apr 2006 16:03:07 GMT
Hi,
   
  I am a new user of derby. I would like to learn and contribute for this project. I successfully
compiled the derby source and I tried to run the SimpleApp.java provided as demo for starting
derby in embedded mode. But, I get the following exception when I run the program. I did not
jar the compiled classes. The classes are in exploded directory structure.  A new directory
"derbyDB\log" was created. And derby.log shows the following exception. I would really appreciate
if someone can give explanation.
   
  Thank you.
   
  2006-04-17 16:06:58.625 GMT Thread[main,5,main] Cleanup action starting
java.lang.NullPointerException
 at org.apache.derby.impl.store.raw.log.LogToFile.getFirstLogNeeded(LogToFile.java:2103)
 at org.apache.derby.impl.store.raw.log.LogToFile.deleteObsoleteLogfiles(LogToFile.java:3173)
 at org.apache.derby.impl.store.raw.log.LogToFile.stop(LogToFile.java:3156)
 at org.apache.derby.impl.services.monitor.TopService.stop(TopService.java:404)
 at org.apache.derby.impl.services.monitor.TopService.shutdown(TopService.java:348)
 at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1866)
 at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(BaseMonitor.java:1018)
 at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Monitor.java:579)
 at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(EmbedConnection.java:1513)
 at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:224)
 at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:72)
 at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:73)
 at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:187)
 at java.sql.DriverManager.getConnection(DriverManager.java:512)
 at java.sql.DriverManager.getConnection(DriverManager.java:140)
 at SimpleApp.go(SimpleApp.java:94)
 at SimpleApp.main(SimpleApp.java:61)
Cleanup action completed
   
   

		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1&cent;/min.
Mime
View raw message