Thanks . I had the same issue and this solved the problem.

But it would be nice if OpenJPA can handle this and throw exception rather
than setting value to null.. 4000 chars is also seems like quite a small
value for field like BLOB CLOB.. 



Jon Solanu wrote:
> 
> 
> Pinaki Poddar wrote:
>> 
>> You are annotating getter/setter, but their names do not match
>> bean-style.
>> public com.MyData getMyData() {...}
>> public void setMetadataList(com.MyData myData) {...}
>> 
> 
> 

Miss typed it when posting.  The problem ended up being that the object I
was trying to insert was larger than 4000 characters.  Adding the following
to the persistence.xml fixed it.  Its fairly odd that no errors were thrown
when the data was flushed to the database, it just set the values to null
and continued.

<property name="openjpa.jdbc.DBDictionary"
value="oracle(maxEmbeddedBlobSize=-1,maxEmbeddedClobSize=-1)"/>


-- 
View this message in context: 
http://n2.nabble.com/ClassNotFoundException-on-persisting-serialized-class-tp2433282p4270817.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to