Re: ClassCastException with getObjectByIdentity()

2005-11-29 Thread Armin Waibel
Chris Worley wrote: In the following code I get a ClassCastException when querying for the PartyGroup or Person. PartyGroup and Person both extend Party. Party.partyTypeId will determine if the party is a person or party group. If the party is one of the two then I want to get the party

Re: ClassCastException with getObjectByIdentity()

2005-11-29 Thread Chris Worley
Armin, Hi Chris, Chris Worley wrote: In the following code I get a ClassCastException when querying for the PartyGroup or Person. PartyGroup and Person both extend Party. Party.partyTypeId will determine if the party is a person or party group. If the party is one of the two then I

Re: ClassCastException with getObjectByIdentity()

2005-11-29 Thread Chris Worley
I have found my problem. I was using the tag for in the descriptor for party referencing PartyGroup and Person. After removing the extent the correct instance is returned. -chris worley In the following code I get a ClassCastException when querying for the PartyGroup or Person

Re: ClassCastException with getObjectByIdentity()

2005-11-29 Thread Armin Waibel
Hi Chris, Chris Worley wrote: In the following code I get a ClassCastException when querying for the PartyGroup or Person. PartyGroup and Person both extend Party. Party.partyTypeId will determine if the party is a person or party group. If the party is one of the two then I want to get

ClassCastException with getObjectByIdentity()

2005-11-29 Thread Chris Worley
In the following code I get a ClassCastException when querying for the PartyGroup or Person. PartyGroup and Person both extend Party. Party.partyTypeId will determine if the party is a person or party group. If the party is one of the two then I want to get the party group or person

ClassCastException in jdoReplaceField method of the enhanced class...

2004-11-23 Thread George Mardale
array (with 4 wheels) to the fetched car, then I get a ClassCastException in Car.jdoReplaceField: Caused by: java.lang.ClassCastException at com.test.Car.jdoReplaceField(Car.java) at com.sun.jdori.common.state.StateManagerImpl.prepareSetField1(Unknown Source)

Re: ClassCastException in QueryReferenceBroker.

2004-10-20 Thread Jakob Braeuchi
n Thanks, Paul -Original Message- From: Jakob Braeuchi [mailto:[EMAIL PROTECTED] Sent: Sunday, October 17, 2004 9:33 AM To: OJB Users List Subject: Re: ClassCastException in QueryReferenceBroker. hi paul, i think this problem should disappear when usinf proxy-prefetching-limit = 0. see Query

Re: ClassCastException in QueryReferenceBroker.

2004-10-18 Thread Armin Waibel
EMAIL PROTECTED] Sent: Sunday, October 17, 2004 9:33 AM To: OJB Users List Subject: Re: ClassCastException in QueryReferenceBroker. hi paul, i think this problem should disappear when usinf proxy-prefetching-limit = 0. see QueryReferenceBroker#retrieveCollection ... if (

Re: ClassCastException in QueryReferenceBroker.

2004-10-18 Thread Jakob Braeuchi
ber 17, 2004 9:33 AM To: OJB Users List Subject: Re: ClassCastException in QueryReferenceBroker. hi paul, i think this problem should disappear when usinf proxy-prefetching-limit = 0. see QueryReferenceBroker#retrieveCollection ... if (prefetchProxies && (m

Re: ClassCastException in QueryReferenceBroker.

2004-10-18 Thread Armin Waibel
tive working on that instance. regards, Armin Thanks, Paul -Original Message- From: Jakob Braeuchi [mailto:[EMAIL PROTECTED] Sent: Sunday, October 17, 2004 9:33 AM To: OJB Users List Subject: Re: ClassCastException in QueryReferenceBroker. hi paul, i think this problem should disappear w

RE: ClassCastException in QueryReferenceBroker.

2004-10-18 Thread Nase, Paul R.
on version RC6. Plus we are wondering how thread safe this area of code is (in RC6)? Thanks, Paul -Original Message- From: Jakob Braeuchi [mailto:[EMAIL PROTECTED] Sent: Sunday, October 17, 2004 9:33 AM To: OJB Users List Subject: Re: ClassCastException in QueryReferenceBroker. hi paul

Re: ClassCastException in QueryReferenceBroker.

2004-10-17 Thread Jakob Braeuchi
edules. During multi-user/load testing, we occasionally see the following ClassCastException occurring: Caused by: java.lang.ClassCastException at org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListener.addThisListenerTo(QueryReferenceBroker.java:835)

ClassCastException in QueryReferenceBroker.

2004-10-15 Thread Nase, Paul R.
We are currently on OJB RC6 and cannot move to OJB 1.0 at this time due to product release schedules. During multi-user/load testing, we occasionally see the following ClassCastException occurring: Caused by: java.lang.ClassCastException at

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-16 Thread Clute, Andrew
issues. Thanks for all the help...and once I have found a working solution, I will post it for all to see. -Andrew -Original Message- From: Clute, Andrew [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 5:29 PM To: OJB Users List Subject: RE: Jboss and ClassCastException

Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clay Mitchell
get a nasty ClassCastException that is only fixable by restarting > Jboss. This happens in the MetadataManager.buildDefaultKey() method. > > The top part of the stack trace is posted below. From what I can tell, > the exception stems from not that it is the wrong class attempting to b

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
Dudziak [mailto:[EMAIL PROTECTED] Sent: Fri 8/13/2004 6:34 PM To: OJB Users List Subject: Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it? Clute, Andrew wrote: > I am wondering if it has something to do with the fact that > S

Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Thomas Dudziak
Clute, Andrew wrote: I am wondering if it has something to do with the fact that SerilizationUtils uses ObjectInputStream to serialize/desearlize the objects, and ObjectInputStream on the deserialization does a Class.forName() to create the new object -- which in the J2EE classloader world can caus

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it? > So, now I need to figure out why this is happening. Something thing > looks weird for the after-serilization version after redploying, since > the url for that class is null. Not sure where it i

Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Armin Waibel
hing thing looks weird for the after-serilization version after redploying, since the url for that class is null. Not sure where it is loading it from, or why it has a stored copy of it. -Andrew -Original Message- From: Clute, Andrew [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
o:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 3:53 PM To: OJB Users List Subject: RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it? Just for giggles, I changed my EAR to use the Application.xml file to denote the dependant jar files, and to

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
-Original Message- From: Clute, Andrew [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 3:22 PM To: OJB Users List Subject: RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it? I don't fill out the application.xml entries, si

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
List Subject: Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it? Clute, Andrew wrote: > Upgrading to the newest versions of the lib files for OJB did not fix > the problem. > > I wish there was someway I could figure out wha

Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Armin Waibel
the entries in application.xml too? Or was this file auto-generated too? Armin -Andrew -Original Message- From: Clute, Andrew [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 2:50 PM To: OJB Users List Subject: RE: Jboss and ClassCastException (MetadataManager and

Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Armin Waibel
best, but now I'm stumped. Good luck in bug-hunting! Armin Thanks! -Andrew -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 2:48 PM To: OJB Users List Subject: Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDesc

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
, Andrew [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 2:50 PM To: OJB Users List Subject: RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it? Ahh, I don't think that is the case, since my Class-Path setting is dynamically generated w

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
es? I wonder if that could be the issue. Thanks! -Andrew -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 2:48 PM To: OJB Users List Subject: Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else ha

Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Armin Waibel
ECTED] Sent: Friday, August 13, 2004 2:34 PM To: OJB Users List Subject: Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it? Clute, Andrew wrote: I am almost certain that is a ClassLoader issue. Yes, my deployment looks almost the exact same a

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
ssage- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 2:34 PM To: OJB Users List Subject: Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it? Clute, Andrew wrote: > I am almost certain that is a ClassLoader is

Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Armin Waibel
riday, August 13, 2004 2:14 PM To: OJB Users List Subject: Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it? Hi Andrew, think this is a ClassLoader problem. Maybe ojb.jar itself or one of the jars OJB depends on is not correctly reloaded. Did you f

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
ginal Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 2:14 PM To: OJB Users List Subject: Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it? Hi Andrew, think this is a ClassLoader problem. Maybe ojb.jar i

Re: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Armin Waibel
am running OJB 1.0 with JBoss 3.2.5. On *occasional* redeployments of my EAR file (with nested Jars and Wars) I will get a nasty ClassCastException that is only fixable by restarting Jboss. This happens in the MetadataManager.buildDefaultKey() method. The top part of the stack trace is posted below

Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
I am running OJB 1.0 with JBoss 3.2.5. On *occasional* redeployments of my EAR file (with nested Jars and Wars) I will get a nasty ClassCastException that is only fixable by restarting Jboss. This happens in the MetadataManager.buildDefaultKey() method. The top part of the stack trace is posted

RE: ClassCastException when storing a Date

2004-05-27 Thread Ribi Roland
ent: Wednesday, May 26, 2004 5:14 PM > To: [EMAIL PROTECTED] > Subject: ClassCastException when storing a Date > > > Hi. > > I'm working under Oracle9 and have a problem when I try to insert a > date. > I have already some data in the DB which was inserted with

Antwort: ClassCastException when storing a Date

2004-05-26 Thread BIRGITTA . MOEHRING
Hello, use java.sql.date! Good luck, Birgitta Marco Josà <[EMAIL PROTECTED]> Marco Josà <[EMAIL PROTECTED]> 26.05.2004 17:13 Bitte antworten an "OJB Users List" An: <[EMAIL PROTECTED]> Kopie: Thema: ClassCastException when storing a Date Hi. I

ClassCastException when storing a Date

2004-05-26 Thread Marco José
(java.util.Date) it uses the pattern: “EEE, MMM dd HH:mm:ss Z ” and therefore the PersistenceBroker throws a ClassCastException when trying to store this object. Can anybody tell me how to resolve this problem? Do I have to edit the repository.xml file? Thank you in advance, Marco José

Re: problem ClassCastException for "addThisListenerTo"

2004-02-26 Thread Reda Benzair
Hi Martin thank you for your answer I will see that solution thank All ! Martin Kalén wrote: Reda Benzair wrote: Hi All I have problem for the classCastException in my repository file I use collections all my collection-descriptor use the proxy=true ! [...] why this error , my

Re: problem ClassCastException for "addThisListenerTo"

2004-02-25 Thread Martin Kalén
Reda Benzair wrote: Hi All I have problem for the classCastException in my repository file I use collections all my collection-descriptor use the proxy=true ! [...] why this error , my repository ? my application ? It's neither - it's actually your OJB version and the proxy-p

random crashes in OJB RC5 ClassCastException for addThisListenerTo

2004-02-13 Thread Reda Benzair
I am experimenting random crashes in OJB RC5 : ClassCastException in QueryReferenceBroker$PBCollectionProxyListener.addThisListenerTo(CollectionProxy ) trying to cast into CollectionProxy: protected void addThisListenerTo(Object listenedObject) { + /*MODIFICATION AWAITING

il faut voir au niveau upgrade to RC5, ClassCastException on getCollectionByQuery

2004-02-06 Thread Reda Benzair
Raymond Barlow wrote: Hi Armin, I found Jacob's fixes and incorporated them into my local source branch, rebuilt jars etc, and now it all works!! Thanks Armin. Thanks Jacob. -Raymond Armin Waibel wrote: Hi Raymond, Jakob has checked in a fix. Will be included in the upcoming 1.0 version. re

dernier réponse :::: upgrade to RC5, ClassCastException on getCollectionByQuery

2004-02-06 Thread Reda Benzair
Armin Waibel wrote: Hi Raymond, Jakob has checked in a fix. Will be included in the upcoming 1.0 version. regards, Armin Armin Waibel wrote: Hi, [EMAIL PROTECTED] wrote: Hi Armin, Ah, right yes, that would make sense. Those 2 classes are not instances of Collection. They descend from java.la

problem ClassCastException for "addThisListenerTo"

2004-02-06 Thread Reda Benzair
Hi All I have problem for the classCastException in my repository file I use collections all my collection-descriptor use the proxy=true ! error is protected void addThisListenerTo(Object listenedObject) { _listenedCollection = (CollectionProxy) listenedObject

Re: upgrade to RC5, ClassCastException on getCollectionByQuery

2004-01-13 Thread Raymond Barlow
Hi Armin, I found Jacob's fixes and incorporated them into my local source branch, rebuilt jars etc, and now it all works!! Thanks Armin. Thanks Jacob. -Raymond Armin Waibel wrote: Hi Raymond, Jakob has checked in a fix. Will be included in the upcoming 1.0 version. regards, Armin Armin Waib

Re: upgrade to RC5, ClassCastException on getCollectionByQuery

2004-01-12 Thread Armin Waibel
Hi Raymond, Jakob has checked in a fix. Will be included in the upcoming 1.0 version. regards, Armin Armin Waibel wrote: Hi, [EMAIL PROTECTED] wrote: Hi Armin, Ah, right yes, that would make sense. Those 2 classes are not instances of Collection. They descend from java.lang.Object (ie. does no

Re: upgrade to RC5, ClassCastException on getCollectionByQuery

2004-01-12 Thread Armin Waibel
Hi, [EMAIL PROTECTED] wrote: Hi Armin, Ah, right yes, that would make sense. Those 2 classes are not instances of Collection. They descend from java.lang.Object (ie. does not extend anything). The implement ManagableCollection. This worked for rc3, I guess there's been changes around that since.

Re: upgrade to RC5, ClassCastException on getCollectionByQuery

2004-01-12 Thread rbarlow
Hi Armin, Ah, right yes, that would make sense. Those 2 classes are not instances of Collection. They descend from java.lang.Object (ie. does not extend anything). The implement ManagableCollection. This worked for rc3, I guess there's been changes around that since. Does this mean that I now nee

Re: upgrade to RC5, ClassCastException on getCollectionByQuery

2004-01-12 Thread Armin Waibel
element-class-ref="com.hours28.domain.entity.EmployeeServiceDetail" collection-class="com.hours28.domain.entity.EmployeeServiceDetailCollection" auto-retreive="true" auto-update="true">

Re: upgrade to RC5, ClassCastException on getCollectionByQuery

2004-01-11 Thread Raymond Barlow
ncluded in stack trace. Could you post the class-descriptor for Employee? I will try to write a test case for your problem. regards, Armin Raymond Barlow wrote: Hi all, I've been chasing this all day, and have gotten no further *sigh*. Why does the following code give me a ClassCastException on the

Re: upgrade to RC5, ClassCastException on getCollectionByQuery

2004-01-11 Thread Raymond Barlow
It has something to Armin Waibel wrote: Hi Raymond,

Re: upgrade to RC5, ClassCastException on getCollectionByQuery

2004-01-11 Thread Armin Waibel
arlow wrote: Hi all, I've been chasing this all day, and have gotten no further *sigh*. Why does the following code give me a ClassCastException on the getCollectionByQuery?? PersistenceBroker broker = null; Criteria criteria = new Criteria(); criteria.addEqua

upgrade to RC5, ClassCastException on getCollectionByQuery

2004-01-11 Thread Raymond Barlow
Hi all, I've been chasing this all day, and have gotten no further *sigh*. Why does the following code give me a ClassCastException on the getCollectionByQuery?? PersistenceBroker broker = null; Criteria criteria = new Criteria(); criteria.addEqualTo("userNa

RE: proxy ClassCastException

2003-11-26 Thread Ken Brewer
IL PROTECTED] > Subject: proxy ClassCastException > Importance: High > > > I am trying to use proxy (my first time) and I am getting a > ClassCastException. > What do I need to do? How do I cast ? > Thanks, > > Glauber > >

RE: proxy ClassCastException

2003-11-26 Thread Charles Anthony
You must cast to InterfaceNotaRecibo not NotaRecibo. > -Original Message- > From: Glauber Andrade [mailto:[EMAIL PROTECTED] > Sent: 26 November 2003 15:28 > To: [EMAIL PROTECTED] > Subject: proxy ClassCastException > Importance: High > > > I am trying to use

proxy ClassCastException

2003-11-26 Thread Glauber Andrade
I am trying to use proxy (my first time) and I am getting a ClassCastException. What do I need to do? How do I cast ? Thanks, Glauber Query q = QueryFactory.newQuery(NotaRecibo.class, crit); Collection c = broker.getCollectionByQuery(q

RE: ClassCastException

2003-11-26 Thread oliver . matz
cified in the javadoc of that method. It should return false rather than throw a ClassCastException. 63: public boolean equals(Object other) { 64:boolean egal=true; 65:egal&=this.getIdtappcli().equals(((AppAppcli)other).getIdtappcli()); 6

ClassCastException

2003-11-26 Thread trist1976
Hi, I get sometimes a ClassCastException when I try to get the children of an object using the lazy-loading mode. I instist that it is a random error. Most of the cases, it works very well on exactly the same job. this is the exception stack trace : java.lang.ClassCastException

ClassCastException when accessing a collection using lazy-loading mode

2003-11-26 Thread tristan LEPORS
Remarque : message transféré en pièce jointe. ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com--- Begin Message --- Hi, I get sometimes a ClassCastException when I try to get

Re: dynamci Proxy: ClassCastException with Interfaces

2003-09-15 Thread Edson Carlos Ericksson Richter
Could you try rc4 CVS HEAD? Just a guess... - Original Message - From: Joerg Lensing To: OJB Users List Sent: Saturday, September 13, 2003 4:51 AM Subject: Re: dynamci Proxy: ClassCastException with Interfaces Edson Carlos Ericksson Richter wrote: >Ok, I've n

Re: dynamci Proxy: ClassCastException with Interfaces

2003-09-13 Thread Joerg Lensing
Edson Carlos Ericksson Richter wrote: Ok, I've not asked yet: what version of OJB are you using? I'm using rc 3 joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: dynamci Proxy: ClassCastException with Interfaces

2003-09-12 Thread Edson Carlos Ericksson Richter
Ok, I've not asked yet: what version of OJB are you using? Edson Richter - Original Message - From: Joerg Lensing To: OJB Users List Sent: Friday, September 12, 2003 12:14 PM Subject: Re: dynamci Proxy: ClassCastException with Interfaces Hi Edson thanks for your reply. I&#x

Re: dynamci Proxy: ClassCastException with Interfaces

2003-09-12 Thread Joerg Lensing
Hi Edson thanks for your reply. I'm still stuck :-( Edson Carlos Ericksson Richter wrote: I've the two situation in my project. I have a documents table table has a fixed structure to all types of documents, and I have different tables for different objects, in another (a payment structure). All t

Re: dynamci Proxy: ClassCastException with Interfaces

2003-09-12 Thread Edson Carlos Ericksson Richter
interfaces must extend the super-interfaces. Oh, in the .xml you must specify the class name, not interface name... I expect to help... Edson Richter - Original Message - From: Joerg Lensing To: OJB Users List Sent: Friday, September 12, 2003 5:22 AM Subject: Re: dynamci Proxy: ClassCas

Re: dynamci Proxy: ClassCastException with Interfaces

2003-09-12 Thread Joerg Lensing
hi carlos, did I say, that PersonPO and OrganisationPO are mapped to the same table? The do! joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: dynamci Proxy: ClassCastException with Interfaces

2003-09-12 Thread Joerg Lensing
Hi Carlos, as you can see below, I nearly did the same you wrote, except that all my classes/interfaces extend java.io.Serializable. joerg Edson Carlos Ericksson Richter wrote: Hi! I'm using dynamic proxy and seen no problems at all (at least for rc3/rc4). Let me show how I'm using. I'll u

Re: dynamci Proxy: ClassCastException with Interfaces

2003-09-11 Thread Edson Carlos Ericksson Richter
Hi! I'm using dynamic proxy and seen no problems at all (at least for rc3/rc4). Let me show how I'm using. I'll use sample you sent as base: public interface AbstractPersistentIF { ... } public interface PartnerIF extends AbstractPersistentIF { ... } public interface OrganisationIF extends Pa

Re: dynamci Proxy: ClassCastException with Interfaces

2003-09-11 Thread Joerg Lensing
| |cc: | |Subject: dynamci

Re: Proxy: ClassCastException with casting interface

2003-09-11 Thread Joerg Lensing
[EMAIL PROTECTED] wrote: I don't mean to be insulting, but you seem to be operating with a very poor understand of Java classes/interfaces/objects/references. You do not cast one class to another. You cast one object to a particular class. thats exactly what i did, but my "code-example" wasn't cl

Re: dynamci Proxy: ClassCastException with Interfaces

2003-09-11 Thread David . Corbin
| |cc: | |Subject: dynamci

Re: Proxy: ClassCastException with casting interface

2003-09-11 Thread David . Corbin
B Users List <[EMAIL PROTECTED]> | |cc: | | Subject: Proxy: Class

dynamci Proxy: ClassCastException with Interfaces

2003-09-11 Thread Joerg Lensing
hi all, I'm using dynamic proxies for these classes look at this Interface/class-hierarchy: AbstractPersistentIF |_PartnerIF |_OrganisationIF |_PersonIF (PO: persistent/mapped objects) AbstractPersistentPO |_PartnerPO |_OrganisationPO |_PersonPO if i query an

Proxy: ClassCastException with casting interface

2003-09-11 Thread Joerg Lensing
Hi all, I have problems with casting interfaces (a $Proxy). The classes are: AbstractPersistentIF |_PartnerIF ...|_OrganisationIF ...|_PersonIF this is OK: (PartnerIF)AbstractPersistentIF this too (PersonIF)AbstractPersistentIF this causes ClassCastException: (OrganisationIF

RE: Antwort: RE: ClassCastException with rc4

2003-09-03 Thread Stuart Heriot
Thanks Gerhard, Turning off "Reload classes on each run" did the trick. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, 3 September 2003 6:19 PM To: OJB Users List Subject: Antwort: RE: ClassCastException with rc4 Did you try turni

Re: ClassCastException with rc4

2003-09-03 Thread Clay Mitchell
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 stat

Antwort: RE: ClassCastException with rc4

2003-09-03 Thread Gerhard . Grosse
. Gerhard Stuart Heriot <[EMAIL PROTECTED]> 03.09.2003 09:53 Bitte antworten an "OJB Users List" An: 'OJB Users List' <[EMAIL PROTECTED]> Kopie: Thema: RE: ClassCastException with rc4 Thanks, I've been over my classpat

RE: ClassCastException with rc4

2003-09-03 Thread Stuart Heriot
al Message- From: jean-pierre lerbscher [mailto:[EMAIL PROTECTED] Sent: Wednesday, 3 September 2003 5:49 PM To: OJB Users List Subject: Re: ClassCastException with rc4 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 pro

Re: ClassCastException with rc4

2003-09-03 Thread jean-pierre lerbscher
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

Re: ClassCastException with rc4

2003-09-02 Thread Clay Mitchell
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

ClassCastException with rc4

2003-09-02 Thread Stuart Heriot
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 mu

[RC3] Works with MySql, Fails with ClassCastException with Oracle

2003-05-30 Thread Brown, Melonie S. - Contractor
I have code that works perfectly fine in MySQL but crashes and dies against an Oracle database. I'm getting a java.lang.ClassCastException at GetCollectionByQuery which doesn't make sense since I'm calling broker.getObjectbyQuery. Also, no SQL statements show in the spy.log file. Suggestions wou

RE: ClassCastException persisting Date field

2003-02-25 Thread Mark Rowell
John You may need to use a FieldConversion on the relevant field(s)/columns(s) e.g Mark -Original Message- From: O'Reilly John [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:38 AM To: 'OJB Users List' Subject: ClassCastException persisting Date

ClassCastException persisting Date field

2003-02-25 Thread O'Reilly John
TH, 8 ); today.set(Calendar.YEAR, 2000); productModel.setIntendedDateOfRelease( today.getTime() ); When I try to persist the productModel object I get a ClassCastException (as shown below). I noticed that when I load an existing object from the db the type of the field is java.sql.Date (subcla

Re: ClassCastException in OJB 0.9.9 with Oracle 9i

2003-02-24 Thread Armin Waibel
Hi Lucy, - Original Message - From: "Lucy Zhao" <[EMAIL PROTECTED]> To: "'OJB Users List'" <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 5:37 PM Subject: RE: ClassCastException in OJB 0.9.9 with Oracle 9i > Armin: > > SequenceMan

RE: ClassCastException in OJB 0.9.9 with Oracle 9i

2003-02-21 Thread Andrew Gilbert
/eyebrowse/ReadMsg?[EMAIL PROTECTED]&msgNo=3696 Andy -Original Message- From: Lucy Zhao [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 11:38 AM To: 'OJB Users List' Subject: RE: ClassCastException in OJB 0.9.9 with Oracle 9i Armin: SequenceManagerHighLowImpl is

RE: ClassCastException in OJB 0.9.9 with Oracle 9i

2003-02-21 Thread Lucy Zhao
much! Lucy -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 11:27 AM To: OJB Users List Subject: Re: ClassCastException in OJB 0.9.9 with Oracle 9i Hi Lucy, there is bug in field conversion when the field is a primay key. Then it seems

Re: ClassCastException in OJB 0.9.9 with Oracle 9i

2003-02-21 Thread Armin Waibel
TED]> Sent: Friday, February 21, 2003 4:42 PM Subject: RE: ClassCastException in OJB 0.9.9 with Oracle 9i > I have three java data types in the object. The mappings are the following: > String - VARCHAR - VARCHAR2 > int - INTEGER - NUMBER > bo

RE: ClassCastException in OJB 0.9.9 with Oracle 9i

2003-02-21 Thread Lucy Zhao
ll correct mappings. But it does seem like a data conversion problem. Could it be a bug? Thanks, Lucy -Original Message- From: Andrew Gilbert [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 10:17 AM To: OJB Users List Subject: RE: ClassCastException in OJB 0.9.9 with Oracle 9i Wha

RE: ClassCastException in OJB 0.9.9 with Oracle 9i

2003-02-21 Thread Andrew Gilbert
(E-mail) Subject: ClassCastException in OJB 0.9.9 with Oracle 9i Would some one please throw some light on this? In the design, a stateless session bean passes a persistence broker instance to an OJB component that does the CRUD functions. EJB was deployed to JBoss successfully, but when

ClassCastException in OJB 0.9.9 with Oracle 9i

2003-02-21 Thread Lucy Zhao
. So I included ojb.jar inside myejb.jar. ClassNotFoundException was fixed and the retrieval of objects works. But when save or store object, a ClassCastException throws. Questions 1) Is it right to include ojb.jar in myejb.jar file? 2) What causes the ClassCastException? OJB