Return-Path: Delivered-To: apmail-db-ojb-user-archive@www.apache.org Received: (qmail 16422 invoked from network); 30 Mar 2005 19:16:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Mar 2005 19:16:37 -0000 Received: (qmail 45415 invoked by uid 500); 30 Mar 2005 19:16:35 -0000 Delivered-To: apmail-db-ojb-user-archive@db.apache.org Received: (qmail 45395 invoked by uid 500); 30 Mar 2005 19:16:35 -0000 Mailing-List: contact ojb-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Users List" Reply-To: "OJB Users List" Delivered-To: mailing list ojb-user@db.apache.org Received: (qmail 45382 invoked by uid 99); 30 Mar 2005 19:16:35 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 30 Mar 2005 11:16:35 -0800 Received: (qmail 16418 invoked from network); 30 Mar 2005 19:16:33 -0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by 127.0.0.1 with SMTP; 30 Mar 2005 19:16:33 -0000 Message-ID: <424AFB10.9050903@apache.org> Date: Wed, 30 Mar 2005 21:16:32 +0200 From: Armin Waibel User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: OJB Users List Subject: Re: Setup Question. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: 127.0.0.1 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Philip Denno wrote: > Thanks, that makes sense. > > I replaced the jar file to be 1.0.2 and it now loads fine. Now I get the > following problem when > I launch related to the repository_database.xml > > Once again I took the defaults from the apache website and attempted to > customize them. The exact warning from OJB is: > > [DEFAULT] WARN: [PlatformFactory] problems with platform > org.apache.ojb.broker.platforms.PlatformMysqlImpl: > org.apache.ojb.broker.platforms.PlatformMysqlImpl > [DEFAULT] WARN: [PlatformFactory] OJB will use PlatformDefaultImpl > instead > hmm, are you sure that all old OJB jars removed from the classpath? regards, Armin > I modified the default file so that it looks like the following: > > jcd-alias="default" > default-connection="true" > platform="mysql" > jdbc-level="2.0" > driver="com.mysql.jdbc.Driver" > protocol="jdbc" > subprotocol="mysql" > dbalias="tsi" > username="guest" > password="guest" > batch-mode="false" > useAutoCommit="1" > ignoreAutoCommitExceptions="false" > > > > Are any of these settings incorrect? What exactly is wrong with the > mysql platform class? > > Cheers, > Philip. > > > -----Original Message----- > From: Armin Waibel [mailto:arminw@apache.org] > Sent: March 30, 2005 8:44 AM > To: OJB Users List > Subject: Re: Setup Question. > > > Hi Philip, > > seems you mixed OJB 1.0.1 with 1.0.2 OJB.properties file. The website > always based on the latest release. > > regards, > Armin > > > Philip Denno wrote: > >>I am trying to configure OJB to examine if it is suitable for my >>persistence problems but am having some problems. I copied an example >>OJB.properties file from apache.org and get the following message when > > >>I launch my test program. >> >>[BOOT] WARN: Value >>"org.apache.ojb.broker.locking.LockManagerCommonsImpl" is illegal for >>key "LockManagerClass" (should be a class, using default value class >>org.apache.ojb.odmg.locking.LockManagerDefaultImpl) >> >> >>The application then crashes with a NullPointerException. >> >>My project depends on the following jar files: >> >> jdo.jar >> jdori.jar >> db-ojb-1.0.1.jar >> commons-lang-2.0.jar >> commons-dbcp-1.1.jar >> commons-pool-1.1.jar >> commons-collections-2.1.1.jar >> mysql-connector-java-3.1.7-bin.jar >> >>I can't seem to find any class called >>"org.apache.ojb.broker.locking.LockManagerCommonsImpl" which I assume >>is what causes the NullPointerException. >> >>Does anybody know where to find said class? >> >>Cheers, >>Philip. >> >> >>The stack trace is given below: >> >>java.lang.NullPointerException >> at >>org.apache.ojb.broker.util.BrokerHelper.crossCheckPBKey(BrokerHelper.j >>av >>a:124) >> at >> > > org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPer > >>sistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:92) >> at >> > > org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroker(P > >>ersistenceBrokerFactory.java:86) >> at >>org.apache.ojb.otm.core.BaseConnection.(BaseConnection.java:65) >> at >> > > org.apache.ojb.otm.transaction.LocalTransactionFactory$LocalConnection.< > >>init>(LocalTransactionFactory.java:94) >> at >>org.apache.ojb.otm.transaction.LocalTransactionFactory.acquireConnecti >>on >>(LocalTransactionFactory.java:76) >> at org.apache.ojb.otm.OTMKit.acquireConnection(OTMKit.java:43) >> at >> > > org.apache.ojb.jdo.PersistenceManagerImpl.(PersistenceManagerImpl. > >>java:67) >> at >> > > org.apache.ojb.jdo.PersistenceManagerFactoryImpl.getPersistenceManager(P > >>ersistenceManagerFactoryImpl.java:177) >> at >> > > org.apache.ojb.jdo.PersistenceManagerFactoryImpl.getPersistenceManager(P > >>ersistenceManagerFactoryImpl.java:167) >> at com.tsi.test.jdo.JDOTest.(JDOTest.java:34) >> at com.tsi.test.jdo.JDOTest.main(JDOTest.java:44) >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org >>For additional commands, e-mail: ojb-user-help@db.apache.org >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org > For additional commands, e-mail: ojb-user-help@db.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org > For additional commands, e-mail: ojb-user-help@db.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org For additional commands, e-mail: ojb-user-help@db.apache.org