Can you post your com.db.ged.ojb.util.ObjectCacheOSCacheImpl
file? as well as your oscache.properties file?
Jason
On Thu, 2004-03-11 at 14:50, Andrew Wilson wrote:
> Ive been using OJB for a while now and am very impressed (I once wrote an ODMG
> implementation, but thats another story).
>
> Im having a problem, configuring OSCache with OJB
>
> Im using :
> - OJB rc5
> - OSCache 2.0.2 and included Javagroups
>
> Ive followed the instructions and on Linux everything works fine. However, when
> I try to run on NT I get the attached error (bottom).
>
> Ive run the multicast test programs and they work fine (ie. I can use
> multicast).
>
> Ive searched the news groups for a similar problem, but come up blank.
>
> I need to get my application running on NT, so advice would be appreciated. Im
> not really sure whether this is an OJB or OSCache problem, but the stack trace
> points to OJB.
>
> Kindest regards,
> Andrew.
>
> (core.PersistenceBrokerFactoryDefaultImpl 112 ) Create PersistenceBroker
> instance pool, pool configuration was {whenExhaustedAction=2, maxIdle=-1,
> maxActive=100, maxWait=2000, removeAbandoned=false, numTestsPerEvictionRun=10,
> testWhileIdle=false, minEvictableIdleTimeMillis=1000000, testOnReturn=false,
> logAbandoned=false, removeAbandonedTimeout=300,
> timeBetweenEvictionRunsMillis=-1, testOnBorrow=false}
> (metadata.RepositoryPersistor 383 ) OJB Descriptor Repository:
> file:/C:/dev/ged-foundation/ged-foundation/ojb/config/repository.xml
> (metadata.RepositoryPersistor 216 ) Read class descriptors took 328 ms
> (metadata.RepositoryPersistor 383 ) OJB Descriptor Repository:
> file:/C:/dev/ged-foundation/ged-foundation/ojb/config/repository.xml
> (metadata.RepositoryPersistor 239 ) Read connection repository took 47 ms
> (core.PersistenceBrokerFactoryBaseImpl 131 ) Create new PB instance for PBKey
> org.apache.ojb.broker.PBKey: jcdAlias=default, user=dbticket_dev1_dbo,
> password=*****, already created persistence broker instances: 0
> (cache.ObjectCacheFactory 103 ) Start creating new ObjectCache
> instance
> (cache.ObjectCacheFactory 165 ) ConfigurableFactory instantiation
> failed for class class com.db.ged.ojb.util.ObjectCacheOSCacheImpl
> * Factory types:
> 1 - Type: org.apache.ojb.broker.PersistenceBroker
> 2 - Type: java.util.Properties
> * Factory arguments:
> 1 - Argument: [EMAIL PROTECTED]
> 2 - Argument: null
> java.lang.NoSuchMethodException
> at java.lang.Class.getConstructor0(Native Method)
> at java.lang.Class.getConstructor(Class.java:922)
> at org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:38)
> at
> org.apache.ojb.broker.util.factory.ConfigurableFactory.createNewInstance(ConfigurableFactory.java:140)
> at
> org.apache.ojb.broker.cache.ObjectCacheFactory.createObjectCache(ObjectCacheFactory.java:120)
> at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.<init>(PersistenceBrokerImpl.java:192)
> at java.lang.reflect.Constructor.newInstance(Native Method)
> at org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:38)
> at
> org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.createNewBrokerInstance(PersistenceBrokerFactoryBaseImpl.java:142)
> at
> org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl$PBKeyedPoolableObjectFactory.makeObject(PersistenceBrokerFactoryDefaultImpl.java:266)
> at
> org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:792)
> at
> org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPersistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:138)
> at
> org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroker(PersistenceBrokerFactory.java:125)
> at org.apache.ojb.odmg.DatabaseImpl.open(DatabaseImpl.java:160)
> at com.db.ged.ojb.example.OJBExample.main(OJBExample.java:27)
> at java.lang.reflect.Method.invoke(Native Method)
> at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
> (cache.ObjectCacheFactory 153 ) Error while ObjectCache initiation,
> please check your configuration files and the used implementation class - use
> default cache nullinstead
> org.apache.ojb.broker.PersistenceBrokerException: java.lang.NoSuchMethodException
> at
> org.apache.ojb.broker.util.factory.ConfigurableFactory.createNewInstance(ConfigurableFactory.java:167)
> at
> org.apache.ojb.broker.cache.ObjectCacheFactory.createObjectCache(ObjectCacheFactory.java:120)
> at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.<init>(PersistenceBrokerImpl.java:192)
> at java.lang.reflect.Constructor.newInstance(Native Method)
> at org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:38)
> at
> org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.createNewBrokerInstance(PersistenceBrokerFactoryBaseImpl.java:142)
> at
> org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl$PBKeyedPoolableObjectFactory.makeObject(PersistenceBrokerFactoryDefaultImpl.java:266)
> at
> org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:792)
> at
> org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPersistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:138)
> at
> org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroker(PersistenceBrokerFactory.java:125)
> at org.apache.ojb.odmg.DatabaseImpl.open(DatabaseImpl.java:160)
> at com.db.ged.ojb.example.OJBExample.main(OJBExample.java:27)
> at java.lang.reflect.Method.invoke(Native Method)
> at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
> Caused by:
> java.lang.NoSuchMethodException
> at java.lang.Class.getConstructor0(Native Method)
> at java.lang.Class.getConstructor(Class.java:922)
> at org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:38)
> at
> org.apache.ojb.broker.util.factory.ConfigurableFactory.createNewInstance(ConfigurableFactory.java:140)
> ... 13 more
> (cache.ObjectCacheFactory 157 ) New ObjectCache instance was created
> (accesslayer.RsIterator 309 ) Error while iterate ResultSet for
> query org.apache.ojb.broker.accesslayer.RsQueryObject[query: Query from class
> com.db.ged.ojb.example.Counterparty where null, class descriptor:
> com.db.ged.ojb.example.Counterparty]
> java.lang.NullPointerException
> at
> org.apache.ojb.broker.accesslayer.RsIterator.getObjectFromResultSet(RsIterator.java:457)
> at org.apache.ojb.broker.accesslayer.RsIterator.next(RsIterator.java:284)
> at
> org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:147)
> at
> org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:244)
> at
> org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:263)
> at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getCollectionByQuery(PersistenceBrokerImpl.java:997)
> at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery(DelegatingPersistenceBroker.java:322)
> at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery(DelegatingPersistenceBroker.java:322)
> at com.db.ged.ojb.example.OJBExample.main(OJBExample.java:31)
> at java.lang.reflect.Method.invoke(Native Method)
> at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
> org.apache.ojb.broker.PersistenceBrokerException:
> java.util.NoSuchElementException: Could not obtain next object: null
> at
> org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:251)
> at
> org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:263)
> at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getCollectionByQuery(PersistenceBrokerImpl.java:997)
> at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery(DelegatingPersistenceBroker.java:322)
> at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery(DelegatingPersistenceBroker.java:322)
> at com.db.ged.ojb.example.OJBExample.main(OJBExample.java:31)
> at java.lang.reflect.Method.invoke(Native Method)
> at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
> Caused by: java.util.NoSuchElementException: Could not obtain next object: null
> at org.apache.ojb.broker.accesslayer.RsIterator.next(RsIterator.java:310)
> at
> org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:147)
> at
> org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:244)
> ... 7 more
> Exception in thread "main" Process terminated with exit code 1
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]