[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - JBoss serialization error when retrieving from database
justinmiller
do-not-reply at jboss.com
Tue Oct 9 09:10:59 EDT 2007
All,
We have a table in which we're storing a serialized object as a blob (amongst other things). When retrieve a record from that table from the database, we get an IllegalAccessException (wrapped in an org.jboss.serial.exception.SerializationException) saying:
Class org.jboss.serial.classmetamodel.ClassMetaData can not access a member of class my.package.name.MyClass with modifiers "public"
In this case, the class it's referring to, MyClass, is Externalizable and package private. Is that not allowed by the java serialization spec and/or jboss serialization? From reading the requirements for Externalizable, it doesn't seem like having an Externalizable class with package private access is prohibited.
Since there is no users forum for jboss serialization, this seemed like the next best place since we get this error during deserialization of a blob from the DB.
We're JBoss v4.0.4
Thanks,
Justin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093010#4093010
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093010
More information about the jboss-user
mailing list