🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: serialVersionUID

#336
From: Kevin Dean [TeamB]
Date: Thu, 01 Dec 2005 17:54
27 lines
1973 bytes
Petar Popara wrote:

>
>Does it have to be set to 42L value as demonstrated here:
>
>http://java.sun.com/j2se/1.5.0/docs/api/java/io/Serializable.html
>
>I got an java.lang.ClassCastException: demoapp.jb.OsebaJB exception when 
>returning array of JavaBeans from my session EJB.

The value is entirely up to you.  The class cast exception you're seeing 
likely has nothing to do with serialization and more to do with EJB object 
management.  We'd have to see the stack trace to fully understand the 
problem.

-- 
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <xn0eah3oidcik6001-kdean@www.teamb.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.97.78.MISMATCH!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <438f26a4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,a3c7481c744b517a
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com>
Subject: Re: serialVersionUID
Newsgroups: borland.public.jbuilder.java.language
References:  <438f26a4$1@newsgroups.borland.com>
Organization: Dolphin Data Development Ltd.
User-Agent: XanaNews/1.17.6.6
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobrp]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
Message-ID: <xn0eah3oidcik6001-kdean@www.teamb.com>
X-Ref: newsgroups.borland.com ~XNS:000003CE
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
NNTP-Posting-Host: 199.243.78.163
Date: 1 Dec 2005 10:54:19 -0700
X-Trace: newsgroups.borland.com 1133463259 199.243.78.163 (1 Dec 2005 10:54:19 -0700)
Lines: 27
X-Authenticated-User: kdean
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.97.78.MISMATCH!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail