Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 74930 invoked from network); 17 Aug 2010 23:51:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Aug 2010 23:51:11 -0000 Received: (qmail 27243 invoked by uid 500); 17 Aug 2010 23:51:11 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 27190 invoked by uid 500); 17 Aug 2010 23:51:10 -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 66906 invoked by uid 99); 17 Aug 2010 21:54:50 -0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) To: Derby Discussion Subject: Re: Running derby with JVM CreMe? References: <4C5C2B9F.17500.196BD3E@landeck.seko-se.de> From: dag.wanvik@oracle.com (Dag H. Wanvik) Date: Tue, 17 Aug 2010 23:54:16 +0200 In-Reply-To: <4C5C2B9F.17500.196BD3E@landeck.seko-se.de> (landeck@seko-se.de's message of "Fri, 06 Aug 2010 17:34:55 +0200") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii landeck@seko-se.de writes: > Hello, all, > > after searching the web it seems to me that there is at least one person who > succeeded in using derby with the JVM CreMe for PDAs. But my own trials > did not end in success. I am not familiar with CreMe, and I haven't heard it discussed as a viable platform for Derby in the dev community so far. If you find out conclusively that using Derby with it is possible, I'd be interested to hear. Dag > With Derby 10.2. I'm getting this: > > java.lang.IncompatibleClassChangeError: Unimplemented interface method > > > and with the newest version 10.6.1.0 I get > > java.lang.NoSuchMethodError: org.apache.derby.impl.jdbc.EmbedSQLException: method > initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable; not found > at org.apache.derby.impl.jdbc.EmbedSQLException.() > at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException() > at org.apache.derby.impl.jdbc.Util.newEmbedSQLException() > at org.apache.derby.impl.jdbc.Util.javaException() > at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException() > at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException() > at org.apache.derby.impl.jdbc.EmbedConnection.handleException() > at org.apache.derby.impl.jdbc.EmbedConnection.() > at org.apache.derby.impl.jdbc.EmbedConnection30.() > at org.apache.derby.jdbc.Driver30.getNewEmbedConnection() > at org.apache.derby.jdbc.InternalDriver.connect() > at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection() > at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection() > at de.seko_se.milkrun.database.DerbyConnector.initDb() > at de.seko_se.milkrun.database.DerbyConnector.() > > This is the same with the Demo-Application "SimpleMobileApp" from derby's > demo directory. > > The code which causes these errors is this: > > String derbyPrefix = "jdbc:derby:"; > String dbName = "someName"; > Properties props = new Properties(); > props.setProperty("create", "true"); > String derbyHome = > new File("\\some\\Directory").getAbsolutePath(); > System.setProperty("derby.system.home", derbyHome); > > EmbeddedSimpleDataSource ds = new EmbeddedSimpleDataSource(); > ds.setDatabaseName(dbName); > ds.setCreateDatabase("create"); > Connection connection = ds.getConnection(); > > > The Derby-Home directory is created, the Jar-Files needed are in the classpath. > Is there something missing? Can anybody help me getting this code to work? > > > > -- > Thanks for all help, > > Gerhard Landeck > > > > ____________ > Virus checked by G Data AntiVirus > Version: AVA 21.1868 dated 06.08.2010 > Virus news: www.antiviruslab.com --