Bugs item #424059, was updated on 2001-05-14 15:32 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=424059&group_id=22866 Category: JBossCMP Group: v2.2.1 (stable) Status: Open Resolution: None Priority: 5 Submitted By: Matthew Cooper (matthewcooper) Assigned to: Nobody/Anonymous (nobody) Summary: CMP Field of type Object Fails Initial Comment: I have a CMP managed entity with some cmp fields, one of which is java.lang.Object. After persisting a value in this field (it happens to be a String) and bouncing jboss to make it re-load from the db, I get back an instance of java.rmi.MarshalledObject. I've looked at the code in org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand and this is what I think is happening... The method: setParameter(PreparedStatement stmt, int idx, int jdbcType, Object value) determines this is a binary type and wraps it in a MashalledObject and serializes it to a byte arry before writign that to the db. The method: getResultObject(ResultSet rs, int idx, Class destination) Finds no special methods for retriving the destination type (which is java.lang.Object in my case) and so calls rs.getObject(idx). The code... if(destination.isAssignableFrom(result.getClass())) return result; then says is the result an instanec of my destination type (java.lang.Object) which is always true in this case. hence it doesn't do any unwrapping, etc. danch suggested I raise this as a bug - and that I try a patch - I may do that later this week... ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=424059&group_id=22866 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
