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
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
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
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
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
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)
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
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 (
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
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
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
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)
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
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
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
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
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
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
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
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
-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
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
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
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
, 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
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
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
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
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
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
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
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
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
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
(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é
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
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
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
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
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
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
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
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
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.
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
element-class-ref="com.hours28.domain.entity.EmployeeServiceDetail"
collection-class="com.hours28.domain.entity.EmployeeServiceDetailCollection"
auto-retreive="true"
auto-update="true">
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
It has something to
Armin Waibel wrote:
Hi Raymond,
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
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
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
>
>
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
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
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
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
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
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
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]
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
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
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
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]
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
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
|
|cc:
|
|Subject: dynamci
[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
|
|cc:
|
|Subject: dynamci
B Users List <[EMAIL PROTECTED]>
|
|cc:
|
| Subject: Proxy: Class
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
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
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
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
.
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
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
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
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
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
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
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
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
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
/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
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
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
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
(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
. 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
87 matches
Mail list logo