db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Luksha \(RIT Student\)" <tjl6...@rit.edu>
Subject apache derby with CDC/JSR 169
Date Thu, 22 Dec 2005 16:41:54 GMT
Hi, 
I have been working on setting up a derby database in an embedded environment. We have CVM
as our java virtual machine and have the optional JDBC package installed. I created a little
program that uses EmbeddedSimpleDataSources to create a database and insert a few entries.
I am able to run this on my pc with the 1.3 jvm with the JDBC package. When I attempt to run
the same program on the CVM, I get a null pointer error. Is the 10.1.2.1 binary that is available
for download built to be used with the cdc and jsr 169? The error I receive is below. Any
insights would be helpful.
 
 
/mnt/newjava/bin/cvm -Xbootclasspath:/mnt/newjava/lib/cdc_jdbc_classes:/mnt/Luksha/db-derby-10.1.2.1-bin/lib/derby.jar:.
runner
1
2
3
java.lang.NullPointerException:
        at org.apache.derby.impl.services.monitor.BaseMonitor.getDefaultModuleProperties()Ljava/util/Properties;(Unknown
Source)
        at org.apache.derby.impl.services.monitor.FileMonitor.run()Ljava/lang/Object;(Unknown
Source)
        at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;(Unknown
Source)
        at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;(Unknown
Source)
        at org.apache.derby.impl.services.monitor.FileMonitor.getDefaultModuleProperties()Ljava/util/Properties;(Unknown
Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.getDefaultImplementations()Ljava/util/Vector;(Unknown
Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Ljava/util/Properties;Ljava/io/PrintStream;)V(Unknown
Source)
        at org.apache.derby.impl.services.monitor.FileMonitor.<init>(Ljava/util/Properties;Ljava/io/PrintStream;)V(Unknown
Source)
        at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Ljava/util/Properties;Ljava/io/PrintStream;)V(Unknown
Source)
        at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Ljava/lang/String;Ljava/io/PrintStream;)V(Unknown
Source)
        at org.apache.derby.jdbc.EmbeddedSimpleDataSource.findDriver()Lorg/apache/derby/jdbc/InternalDriver;(Unknown
Source)
        at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection(Ljava/lang/String;Ljava/lang/String;Z)Ljava/sql/Connection;(Unknown
Source)
        at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection()Ljava/sql/Connection;(Unknown
Source)
        at DatabaseFactory.getConnection()Ljava/sql/Connection;(Unknown Source)
        at runner.go()V(Unknown Source)
        at runner.main([Ljava/lang/String;)V(Unknown Source)
 
 
 
This is the CVM's version:
java version "J2ME CDC_jdbc 1.0.1"                                             
Java(TM) 2, Micro Edition (build 1.0.1-std-b12)
CVM (build 1.0.1-std-b12, interpreter loop)

Mime
View raw message