Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 37853 invoked from network); 6 Mar 2009 17:05:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2009 17:05:03 -0000 Received: (qmail 22367 invoked by uid 500); 6 Mar 2009 17:05:03 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 22139 invoked by uid 500); 6 Mar 2009 17:05:03 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 22125 invoked by uid 99); 6 Mar 2009 17:05:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Mar 2009 09:05:03 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists+1214986160035-208411@n2.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Mar 2009 17:04:54 +0000 Received: from tervel.nabble.com ([192.168.236.150]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LfdTN-0005se-FV for users@openjpa.apache.org; Fri, 06 Mar 2009 09:04:33 -0800 Message-ID: <1236359073474-2436888.post@n2.nabble.com> Date: Fri, 6 Mar 2009 09:04:33 -0800 (PST) From: Pinaki Poddar To: users@openjpa.apache.org Subject: Re: ClassNotFoundException on persisting serialized class In-Reply-To: <1236354427197-2436442.post@n2.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ppoddar@apache.org References: <6e479eb30903051632v3c98eb9ek694c2f0b2bb76bea@mail.gmail.com> <1236354427197-2436442.post@n2.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org You are annotating getter/setter, but their names do not match bean-style. public com.MyData getMyData() {...} public void setMetadataList(com.MyData myData) {...} Jon Solanu wrote: > > The errors went away when I added an explicit em.flush to the method > inserting the serialized object. However a null is still being inserted > into the databse for that field. I attempted to change the attribute > value to specify that it was a blob field but that had no affect. > > > > @Lob() > @Basic(fetch=FetchType.EAGER) > @Column(name="MYDATA_LIST") > public com.MyData getMyData() { > return this.myData; > } > public void setMetadataList(com.MyData myData) { > this.myData= myData; > } > > -- View this message in context: http://n2.nabble.com/ClassNotFoundException-on-persisting-serialized-class-tp2433282p2436888.html Sent from the OpenJPA Users mailing list archive at Nabble.com.