🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7223

Re: ClassCastException that doesn't make sense

#7223
From: John McGrath TeamB
Date: Tue, 03 Jul 2001 22:58
23 lines
1883 bytes
On Tue, 03 Jul 2001 12:19:28 -0500, Lifeng wrote:

> I still would like to know if this is the problem, what I
> can do to fix it or what is the way around it.

Well, if that is the case, they are *totally* different classes.
The only way you could write code to access an object created
using a class loaded by a sibling ClassLoader would be to use 
Java Reflection.  Obviously, that could make things difficult.

I suspect that the best solution to the problem would be to arrange 
things so that objects are created from classes that are loaded with 
the same ClassLoader.  But I do not know enough about the workings of 
EJB containers to help on that score.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.15ac08ec7bb2a54798a324@forums.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3B414660.789CD256@telocity.com> <3b41572c$1_1@dnews> <u3d8e4hg3.fsf@sds.no> <3b4194be$1_2@dnews> <3B41D922.53A88264@gocentrics.com> <MPG.15abb6d46a9afe9c98a31d@forums.borland.com> <3B41FEA0.E10C9D77@gocentrics.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,9bba90999259f167
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-07-03 16:06:41 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: ClassCastException that doesn't make sense
Date: Tue, 3 Jul 2001 18:58:58 -0400
Message-ID: <MPG.15ac08ec7bb2a54798a324@forums.borland.com>
References: <3B414660.789CD256@telocity.com> <3b41572c$1_1@dnews> <u3d8e4hg3.fsf@sds.no> <3b4194be$1_2@dnews> <3B41D922.53A88264@gocentrics.com> <MPG.15abb6d46a9afe9c98a31d@forums.borland.com> <3B41FEA0.E10C9D77@gocentrics.com>
X-Newsreader: MicroPlanet Gravity v2.30
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 994201138 209.92.40.60 (3 Jul 2001 15:58:58 -0700)
Lines: 23
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews