You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Stuart Heriot <sh...@infocomp.com> on 2003/09/03 00:45:57 UTC
ClassCastException with rc4
Hi,
Since installing rc4 I've been unable to run some jUnit tests I previously
had working with 0.9.8. Error log is below. I am running the Junit
TestRunner gui from the command line. Running through Netbeans causes other
problems with Log4j and multiple class loaders.
Any assistance would be much appreciated. I've been battling with this for
the past week and getting nowhere...
Thanks
Stuart
[BOOT] ERROR: The specified class
"org.apache.ojb.broker.cache.ObjectCacheDefaultImpl" does not implement the
interface org.apache.ojb.broker.cache.Ob
jectCache, which is a requirement for the key "ObjectCacheClass". Using
default class org.apache.ojb.broker.cache.ObjectCacheDefaultImpl
[BOOT] ERROR: The specified class
"org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl" does not
implement the interface org.apache.ojb.brok
er.accesslayer.ConnectionFactory, which is a requirement for the key
"ConnectionFactoryClass". Using default class
org.apache.ojb.broker.accesslayer.C
onnectionFactoryPooledImpl
[BOOT] ERROR: The specified class
"org.apache.ojb.odmg.locking.LockManagerDefaultImpl" does not implement the
interface org.apache.ojb.odmg.locking.Lo
ckManager, which is a requirement for the key "LockManagerClass". Using
default class org.apache.ojb.odmg.locking.LockManagerDefaultImpl
[BOOT] ERROR: The specified class
"org.apache.ojb.odmg.locking.InMemoryLockMapImpl" does not implement the
interface org.apache.ojb.odmg.locking.LockM
ap, which is a requirement for the key "LockMapClass". Using default class
org.apache.ojb.odmg.locking.PersistentLockMapImpl
[BOOT] ERROR: The specified class
"org.apache.ojb.broker.util.logging.Log4jLoggerImpl" does not implement the
interface org.apache.ojb.broker.util.log
ging.Logger, which is a requirement for the key "LoggerClass". Using default
class org.apache.ojb.broker.util.logging.PoorMansLoggerImpl
[BOOT] ERROR: The specified class
"org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDirectAccessImpl"
does not implement the interface org.ap
ache.ojb.broker.metadata.fieldaccess.PersistentField, which is a requirement
for the key "PersistentFieldClass". Using default class org.apache.ojb.br
oker.metadata.fieldaccess.PersistentFieldPrivilegedImpl
[BOOT] ERROR: The specified class
"org.apache.ojb.broker.core.PersistenceBrokerImpl" does not implement the
interface org.apache.ojb.broker.Persistenc
eBroker, which is a requirement for the key "PersistenceBrokerClass". Using
default class org.apache.ojb.broker.core.PersistenceBrokerImpl
[BOOT] ERROR: The specified class
"org.apache.ojb.odmg.collections.DListImpl" does not implement the interface
org.apache.ojb.broker.ManageableCollect
ion, which is a requirement for the key "OqlCollectionClass". Using default
class org.apache.ojb.odmg.collections.DListImpl
[BOOT] ERROR: Error in instantiation of PersistenceBrokerFactory class class
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl, try to us
e default PersistenceBrokerFactory implementation
null
java.lang.ClassCastException
at
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(PersistenceB
rokerFactoryFactory.java:94)
at
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.<clinit>(Persiste
nceBrokerFactoryFactory.java:71)
at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Pers
istenceBrokerFactory.java:103)
at
com.infocomp.composer.data.bankaccount.helpers.BankAccountHelper.LoadBankAcc
ountByBsb(BankAccountHelper.java:159)
at
com.infocomp.composer.data.bankaccount.helpers.TestBankAccountHelper.testLoa
dBankAccountByBsb(TestBankAccountHelper.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.swingui.TestRunner$16.run(TestRunner.java:623)
Re: newbie Q: Update creates new object - DISREGARD
Posted by LAURENT Stephane <sl...@adequates.com>.
Hi,
I use this way, working fine ...
Criteria lCriteria=new Criteria();
lCriteria.addEqualTo("id",Long.valueOf(request.getParameter("id")));
Query query = QueryFactory.newQuery(SeminarVO.class,lCriteria);
SeminarVO vo = (SeminarVO) broker.getObjectByQuery(query);
Regards.
----- Original Message -----
From: ross@bowtech.com
To: OJB Users List
Sent: Wednesday, September 03, 2003 10:37 PM
Subject: Re: newbie Q: Update creates new object - DISREGARD
have it partially working now.
Regards
Ross Rotherham
----- Original Message -----
From: <ro...@bowtech.com>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Wednesday, September 03, 2003 1:03 PM
Subject: newbie Q: Update creates new object
Have a problem with updates.
the record that I want to update is altered and then stored in the cache
with a new id but the changes are not written to the DB. The original
record is no longer displayed.
When I try to view the altered record with the new id it doesn't exist.
Any help for where to look greatly appreciated (the insert works fine)
//update code
DynaValidatorForm _form = (DynaValidatorForm) form; // is in struts
PersistenceBroker broker = null;
broker = PersistenceBrokerFactory.defaultPersistenceBroker();
// build object with matching id to retrive toBeEdited from DB
SeminarVO search_vo = new SeminarVO();
search_vo.setId(Long.valueOf(request.getParameter("id")));
Query query = new QueryByCriteria(search_vo);
broker.beginTransaction();
//get toBeEdited
SeminarVO vo = (SeminarVO) broker.getObjectByQuery(query);
System.out.println("\n\nid = " + vo.getId());
//populate toBeEdited
populateVO(_form, vo);
System.out.println("\n\n\n after populate id = " + vo.getId());
broker.store(vo);
broker.commitTransaction();
//
public class SeminarVO extends BaseVO{
private Long id;
private Date startDate;
private Date endDate;
private Integer stateId;
private String location;
private String city;
// methods and other fields ommitted
// repository_user.xml
<class-descriptor class="com.bowtech.ojb.domainmodel.om.SeminarVO"
table="SEMINARS">
<field-descriptor name="id" column="id" jdbc-type="BIGINT" primarykey="true"
autoincrement="true"/>
<field-descriptor name="startDate" column="startDate" jdbc-type="DATE"/>
<field-descriptor name="endDate" column="endDate" jdbc-type="DATE"/>
<field-descriptor name="stateId" column="stateId" jdbc-type="INTEGER"/>
<field-descriptor name="location" column="location" jdbc-type="VARCHAR"/>
<field-descriptor name="address1" column="address1" jdbc-type="VARCHAR"/>
<field-descriptor name="address2" column="address2" jdbc-type="VARCHAR"/>
<field-descriptor name="city" column="city" jdbc-type="VARCHAR"/>
//other fields ommitted
Regards
Ross Rotherham
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.514 / Virus Database: 312 - Release Date: 29/08/2003
Re: newbie Q: Update creates new object - DISREGARD
Posted by ro...@bowtech.com.
have it partially working now.
Regards
Ross Rotherham
----- Original Message -----
From: <ro...@bowtech.com>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Wednesday, September 03, 2003 1:03 PM
Subject: newbie Q: Update creates new object
Have a problem with updates.
the record that I want to update is altered and then stored in the cache
with a new id but the changes are not written to the DB. The original
record is no longer displayed.
When I try to view the altered record with the new id it doesn't exist.
Any help for where to look greatly appreciated (the insert works fine)
//update code
DynaValidatorForm _form = (DynaValidatorForm) form; // is in struts
PersistenceBroker broker = null;
broker = PersistenceBrokerFactory.defaultPersistenceBroker();
// build object with matching id to retrive toBeEdited from DB
SeminarVO search_vo = new SeminarVO();
search_vo.setId(Long.valueOf(request.getParameter("id")));
Query query = new QueryByCriteria(search_vo);
broker.beginTransaction();
//get toBeEdited
SeminarVO vo = (SeminarVO) broker.getObjectByQuery(query);
System.out.println("\n\nid = " + vo.getId());
//populate toBeEdited
populateVO(_form, vo);
System.out.println("\n\n\n after populate id = " + vo.getId());
broker.store(vo);
broker.commitTransaction();
//
public class SeminarVO extends BaseVO{
private Long id;
private Date startDate;
private Date endDate;
private Integer stateId;
private String location;
private String city;
// methods and other fields ommitted
// repository_user.xml
<class-descriptor class="com.bowtech.ojb.domainmodel.om.SeminarVO"
table="SEMINARS">
<field-descriptor name="id" column="id" jdbc-type="BIGINT" primarykey="true"
autoincrement="true"/>
<field-descriptor name="startDate" column="startDate" jdbc-type="DATE"/>
<field-descriptor name="endDate" column="endDate" jdbc-type="DATE"/>
<field-descriptor name="stateId" column="stateId" jdbc-type="INTEGER"/>
<field-descriptor name="location" column="location" jdbc-type="VARCHAR"/>
<field-descriptor name="address1" column="address1" jdbc-type="VARCHAR"/>
<field-descriptor name="address2" column="address2" jdbc-type="VARCHAR"/>
<field-descriptor name="city" column="city" jdbc-type="VARCHAR"/>
//other fields ommitted
Regards
Ross Rotherham
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
newbie Q: Update creates new object
Posted by ro...@bowtech.com.
Have a problem with updates.
the record that I want to update is altered and then stored in the cache with a new id but the changes are not written to the DB. The original record is no longer displayed.
When I try to view the altered record with the new id it doesn't exist.
Any help for where to look greatly appreciated (the insert works fine)
//update code
DynaValidatorForm _form = (DynaValidatorForm) form; // is in struts
PersistenceBroker broker = null;
broker = PersistenceBrokerFactory.defaultPersistenceBroker();
// build object with matching id to retrive toBeEdited from DB
SeminarVO search_vo = new SeminarVO();
search_vo.setId(Long.valueOf(request.getParameter("id")));
Query query = new QueryByCriteria(search_vo);
broker.beginTransaction();
//get toBeEdited
SeminarVO vo = (SeminarVO) broker.getObjectByQuery(query);
System.out.println("\n\nid = " + vo.getId());
//populate toBeEdited
populateVO(_form, vo);
System.out.println("\n\n\n after populate id = " + vo.getId());
broker.store(vo);
broker.commitTransaction();
//
public class SeminarVO extends BaseVO{
private Long id;
private Date startDate;
private Date endDate;
private Integer stateId;
private String location;
private String city;
// methods and other fields ommitted
// repository_user.xml
<class-descriptor class="com.bowtech.ojb.domainmodel.om.SeminarVO" table="SEMINARS">
<field-descriptor name="id" column="id" jdbc-type="BIGINT" primarykey="true" autoincrement="true"/>
<field-descriptor name="startDate" column="startDate" jdbc-type="DATE"/>
<field-descriptor name="endDate" column="endDate" jdbc-type="DATE"/>
<field-descriptor name="stateId" column="stateId" jdbc-type="INTEGER"/>
<field-descriptor name="location" column="location" jdbc-type="VARCHAR"/>
<field-descriptor name="address1" column="address1" jdbc-type="VARCHAR"/>
<field-descriptor name="address2" column="address2" jdbc-type="VARCHAR"/>
<field-descriptor name="city" column="city" jdbc-type="VARCHAR"/>
//other fields ommitted
Regards
Ross Rotherham
Re: ClassCastException with rc4
Posted by Clay Mitchell <cl...@pfd.net>.
Nope - first time I run it deploy the webapp, everything works fine. If
I redeploy, everything dies.
-Clay
jean-pierre lerbscher wrote:
> Hi,
> Could you make sure that you do not have several times the same jar file
> in your classpath.
> A few times ago I had a similar problem where an exception stated to me
> wrongly that a class did not implement an interface. It was a problem
> with multiple class loaders.
>
>
> Clay Mitchell wrote:
>
>> I get this also, after I reload my webapp in Orion.
>>
>> -Clay
>>
>> Stuart Heriot wrote:
>>
>>> Hi,
>>> Since installing rc4 I've been unable to run some jUnit tests I
>>> previously
>>> had working with 0.9.8. Error log is below. I am running the Junit
>>> TestRunner gui from the command line. Running through Netbeans causes
>>> other
>>> problems with Log4j and multiple class loaders.
>>>
>>> Any assistance would be much appreciated. I've been battling with
>>> this for
>>> the past week and getting nowhere...
>>> Thanks
>>> Stuart
>>>
>>> [BOOT] ERROR: The specified class
>>> "org.apache.ojb.broker.cache.ObjectCacheDefaultImpl" does not
>>> implement the
>>> interface org.apache.ojb.broker.cache.Ob
>>> jectCache, which is a requirement for the key "ObjectCacheClass". Using
>>> default class org.apache.ojb.broker.cache.ObjectCacheDefaultImpl
>>> [BOOT] ERROR: The specified class
>>> "org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl" does not
>>> implement the interface org.apache.ojb.brok
>>> er.accesslayer.ConnectionFactory, which is a requirement for the key
>>> "ConnectionFactoryClass". Using default class
>>> org.apache.ojb.broker.accesslayer.C
>>> onnectionFactoryPooledImpl
>>> [BOOT] ERROR: The specified class
>>> "org.apache.ojb.odmg.locking.LockManagerDefaultImpl" does not
>>> implement the
>>> interface org.apache.ojb.odmg.locking.Lo
>>> ckManager, which is a requirement for the key "LockManagerClass". Using
>>> default class org.apache.ojb.odmg.locking.LockManagerDefaultImpl
>>> [BOOT] ERROR: The specified class
>>> "org.apache.ojb.odmg.locking.InMemoryLockMapImpl" does not implement the
>>> interface org.apache.ojb.odmg.locking.LockM
>>> ap, which is a requirement for the key "LockMapClass". Using default
>>> class
>>> org.apache.ojb.odmg.locking.PersistentLockMapImpl
>>> [BOOT] ERROR: The specified class
>>> "org.apache.ojb.broker.util.logging.Log4jLoggerImpl" does not
>>> implement the
>>> interface org.apache.ojb.broker.util.log
>>> ging.Logger, which is a requirement for the key "LoggerClass". Using
>>> default
>>> class org.apache.ojb.broker.util.logging.PoorMansLoggerImpl
>>> [BOOT] ERROR: The specified class
>>> "org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDirectAccessImpl"
>>>
>>> does not implement the interface org.ap
>>> ache.ojb.broker.metadata.fieldaccess.PersistentField, which is a
>>> requirement
>>> for the key "PersistentFieldClass". Using default class
>>> org.apache.ojb.br
>>> oker.metadata.fieldaccess.PersistentFieldPrivilegedImpl
>>> [BOOT] ERROR: The specified class
>>> "org.apache.ojb.broker.core.PersistenceBrokerImpl" does not implement
>>> the
>>> interface org.apache.ojb.broker.Persistenc
>>> eBroker, which is a requirement for the key "PersistenceBrokerClass".
>>> Using
>>> default class org.apache.ojb.broker.core.PersistenceBrokerImpl
>>> [BOOT] ERROR: The specified class
>>> "org.apache.ojb.odmg.collections.DListImpl" does not implement the
>>> interface
>>> org.apache.ojb.broker.ManageableCollect
>>> ion, which is a requirement for the key "OqlCollectionClass". Using
>>> default
>>> class org.apache.ojb.odmg.collections.DListImpl
>>> [BOOT] ERROR: Error in instantiation of PersistenceBrokerFactory
>>> class class
>>> org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl, try
>>> to us
>>> e default PersistenceBrokerFactory implementation
>>> null
>>> java.lang.ClassCastException
>>> at
>>> org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(PersistenceB
>>>
>>> rokerFactoryFactory.java:94)
>>> at
>>> org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.<clinit>(Persiste
>>>
>>> nceBrokerFactoryFactory.java:71)
>>> at
>>> org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Pers
>>>
>>> istenceBrokerFactory.java:103)
>>> at
>>> com.infocomp.composer.data.bankaccount.helpers.BankAccountHelper.LoadBankAcc
>>>
>>> ountByBsb(BankAccountHelper.java:159)
>>> at
>>> com.infocomp.composer.data.bankaccount.helpers.TestBankAccountHelper.testLoa
>>>
>>> dBankAccountByBsb(TestBankAccountHelper.java:36)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>> Source)
>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>> at junit.framework.TestCase.runTest(TestCase.java:154)
>>> at junit.framework.TestCase.runBare(TestCase.java:127)
>>> at junit.framework.TestResult$1.protect(TestResult.java:106)
>>> at junit.framework.TestResult.runProtected(TestResult.java:124)
>>> at junit.framework.TestResult.run(TestResult.java:109)
>>> at junit.framework.TestCase.run(TestCase.java:118)
>>> at junit.framework.TestSuite.runTest(TestSuite.java:208)
>>> at junit.framework.TestSuite.run(TestSuite.java:203)
>>> at junit.swingui.TestRunner$16.run(TestRunner.java:623)
>>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
Re: ClassCastException with rc4
Posted by jean-pierre lerbscher <jl...@club-internet.fr>.
Hi,
Could you make sure that you do not have several times the same jar file
in your classpath.
A few times ago I had a similar problem where an exception stated to me
wrongly that a class did not implement an interface. It was a problem
with multiple class loaders.
Clay Mitchell wrote:
> I get this also, after I reload my webapp in Orion.
>
> -Clay
>
> Stuart Heriot wrote:
>
>> Hi,
>> Since installing rc4 I've been unable to run some jUnit tests I
>> previously
>> had working with 0.9.8. Error log is below. I am running the Junit
>> TestRunner gui from the command line. Running through Netbeans causes
>> other
>> problems with Log4j and multiple class loaders.
>>
>> Any assistance would be much appreciated. I've been battling with
>> this for
>> the past week and getting nowhere...
>> Thanks
>> Stuart
>>
>> [BOOT] ERROR: The specified class
>> "org.apache.ojb.broker.cache.ObjectCacheDefaultImpl" does not
>> implement the
>> interface org.apache.ojb.broker.cache.Ob
>> jectCache, which is a requirement for the key "ObjectCacheClass". Using
>> default class org.apache.ojb.broker.cache.ObjectCacheDefaultImpl
>> [BOOT] ERROR: The specified class
>> "org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl" does not
>> implement the interface org.apache.ojb.brok
>> er.accesslayer.ConnectionFactory, which is a requirement for the key
>> "ConnectionFactoryClass". Using default class
>> org.apache.ojb.broker.accesslayer.C
>> onnectionFactoryPooledImpl
>> [BOOT] ERROR: The specified class
>> "org.apache.ojb.odmg.locking.LockManagerDefaultImpl" does not
>> implement the
>> interface org.apache.ojb.odmg.locking.Lo
>> ckManager, which is a requirement for the key "LockManagerClass". Using
>> default class org.apache.ojb.odmg.locking.LockManagerDefaultImpl
>> [BOOT] ERROR: The specified class
>> "org.apache.ojb.odmg.locking.InMemoryLockMapImpl" does not implement the
>> interface org.apache.ojb.odmg.locking.LockM
>> ap, which is a requirement for the key "LockMapClass". Using default
>> class
>> org.apache.ojb.odmg.locking.PersistentLockMapImpl
>> [BOOT] ERROR: The specified class
>> "org.apache.ojb.broker.util.logging.Log4jLoggerImpl" does not
>> implement the
>> interface org.apache.ojb.broker.util.log
>> ging.Logger, which is a requirement for the key "LoggerClass". Using
>> default
>> class org.apache.ojb.broker.util.logging.PoorMansLoggerImpl
>> [BOOT] ERROR: The specified class
>> "org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDirectAccessImpl"
>>
>> does not implement the interface org.ap
>> ache.ojb.broker.metadata.fieldaccess.PersistentField, which is a
>> requirement
>> for the key "PersistentFieldClass". Using default class
>> org.apache.ojb.br
>> oker.metadata.fieldaccess.PersistentFieldPrivilegedImpl
>> [BOOT] ERROR: The specified class
>> "org.apache.ojb.broker.core.PersistenceBrokerImpl" does not implement
>> the
>> interface org.apache.ojb.broker.Persistenc
>> eBroker, which is a requirement for the key "PersistenceBrokerClass".
>> Using
>> default class org.apache.ojb.broker.core.PersistenceBrokerImpl
>> [BOOT] ERROR: The specified class
>> "org.apache.ojb.odmg.collections.DListImpl" does not implement the
>> interface
>> org.apache.ojb.broker.ManageableCollect
>> ion, which is a requirement for the key "OqlCollectionClass". Using
>> default
>> class org.apache.ojb.odmg.collections.DListImpl
>> [BOOT] ERROR: Error in instantiation of PersistenceBrokerFactory
>> class class
>> org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl, try
>> to us
>> e default PersistenceBrokerFactory implementation
>> null
>> java.lang.ClassCastException
>> at
>> org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(PersistenceB
>>
>> rokerFactoryFactory.java:94)
>> at
>> org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.<clinit>(Persiste
>>
>> nceBrokerFactoryFactory.java:71)
>> at
>> org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Pers
>>
>> istenceBrokerFactory.java:103)
>> at
>> com.infocomp.composer.data.bankaccount.helpers.BankAccountHelper.LoadBankAcc
>>
>> ountByBsb(BankAccountHelper.java:159)
>> at
>> com.infocomp.composer.data.bankaccount.helpers.TestBankAccountHelper.testLoa
>>
>> dBankAccountByBsb(TestBankAccountHelper.java:36)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at junit.framework.TestCase.runTest(TestCase.java:154)
>> at junit.framework.TestCase.runBare(TestCase.java:127)
>> at junit.framework.TestResult$1.protect(TestResult.java:106)
>> at junit.framework.TestResult.runProtected(TestResult.java:124)
>> at junit.framework.TestResult.run(TestResult.java:109)
>> at junit.framework.TestCase.run(TestCase.java:118)
>> at junit.framework.TestSuite.runTest(TestSuite.java:208)
>> at junit.framework.TestSuite.run(TestSuite.java:203)
>> at junit.swingui.TestRunner$16.run(TestRunner.java:623)
>>
>
>
>
>
> ---------------------------------------------------------------------
> 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
Re: ClassCastException with rc4
Posted by Clay Mitchell <cl...@pfd.net>.
I get this also, after I reload my webapp in Orion.
-Clay
Stuart Heriot wrote:
> Hi,
>
> Since installing rc4 I've been unable to run some jUnit tests I previously
> had working with 0.9.8. Error log is below. I am running the Junit
> TestRunner gui from the command line. Running through Netbeans causes other
> problems with Log4j and multiple class loaders.
>
> Any assistance would be much appreciated. I've been battling with this for
> the past week and getting nowhere...
> Thanks
> Stuart
>
> [BOOT] ERROR: The specified class
> "org.apache.ojb.broker.cache.ObjectCacheDefaultImpl" does not implement the
> interface org.apache.ojb.broker.cache.Ob
> jectCache, which is a requirement for the key "ObjectCacheClass". Using
> default class org.apache.ojb.broker.cache.ObjectCacheDefaultImpl
> [BOOT] ERROR: The specified class
> "org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl" does not
> implement the interface org.apache.ojb.brok
> er.accesslayer.ConnectionFactory, which is a requirement for the key
> "ConnectionFactoryClass". Using default class
> org.apache.ojb.broker.accesslayer.C
> onnectionFactoryPooledImpl
> [BOOT] ERROR: The specified class
> "org.apache.ojb.odmg.locking.LockManagerDefaultImpl" does not implement the
> interface org.apache.ojb.odmg.locking.Lo
> ckManager, which is a requirement for the key "LockManagerClass". Using
> default class org.apache.ojb.odmg.locking.LockManagerDefaultImpl
> [BOOT] ERROR: The specified class
> "org.apache.ojb.odmg.locking.InMemoryLockMapImpl" does not implement the
> interface org.apache.ojb.odmg.locking.LockM
> ap, which is a requirement for the key "LockMapClass". Using default class
> org.apache.ojb.odmg.locking.PersistentLockMapImpl
> [BOOT] ERROR: The specified class
> "org.apache.ojb.broker.util.logging.Log4jLoggerImpl" does not implement the
> interface org.apache.ojb.broker.util.log
> ging.Logger, which is a requirement for the key "LoggerClass". Using default
> class org.apache.ojb.broker.util.logging.PoorMansLoggerImpl
> [BOOT] ERROR: The specified class
> "org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDirectAccessImpl"
> does not implement the interface org.ap
> ache.ojb.broker.metadata.fieldaccess.PersistentField, which is a requirement
> for the key "PersistentFieldClass". Using default class org.apache.ojb.br
> oker.metadata.fieldaccess.PersistentFieldPrivilegedImpl
> [BOOT] ERROR: The specified class
> "org.apache.ojb.broker.core.PersistenceBrokerImpl" does not implement the
> interface org.apache.ojb.broker.Persistenc
> eBroker, which is a requirement for the key "PersistenceBrokerClass". Using
> default class org.apache.ojb.broker.core.PersistenceBrokerImpl
> [BOOT] ERROR: The specified class
> "org.apache.ojb.odmg.collections.DListImpl" does not implement the interface
> org.apache.ojb.broker.ManageableCollect
> ion, which is a requirement for the key "OqlCollectionClass". Using default
> class org.apache.ojb.odmg.collections.DListImpl
> [BOOT] ERROR: Error in instantiation of PersistenceBrokerFactory class class
> org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl, try to us
> e default PersistenceBrokerFactory implementation
> null
> java.lang.ClassCastException
> at
> org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(PersistenceB
> rokerFactoryFactory.java:94)
> at
> org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.<clinit>(Persiste
> nceBrokerFactoryFactory.java:71)
> at
> org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Pers
> istenceBrokerFactory.java:103)
> at
> com.infocomp.composer.data.bankaccount.helpers.BankAccountHelper.LoadBankAcc
> ountByBsb(BankAccountHelper.java:159)
> at
> com.infocomp.composer.data.bankaccount.helpers.TestBankAccountHelper.testLoa
> dBankAccountByBsb(TestBankAccountHelper.java:36)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at junit.swingui.TestRunner$16.run(TestRunner.java:623)
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org