"ManneF" wrote : Hi Sesques, | | Thanks for looking into this. | | The originalLanguage and targetLanguage fields (properties) are in fact references to other entity beans, not Strings or anything like that. Is there a problem with that? | | As I said, I'm new to JBoss CMP beans and wouldn't consider myself an expert on entity beans generally, so bear with me if I'm being silly. | | However, my code works fine in Orion AS, so I think this is either a bug in JBoss, or Orion provides functionality over the EJB spec. Imho JBoss should at least trap any error I may have made and produce a meaningful error message rather than stopping with a NullPointerException. | | Regards, | Manne
I don't know Orion AS but I'm sure that each application server has its own fashion to handle CMR fields. The problem is not in your code, but in the descriptors. Nomally, the relationships must be declared in ejb-jar.xml (names, roles, multiplicity and cmr fields) in a section tag, this is the EJB spec. And additionnaly, the mapping between CMR fields and the database are described in the jbosscmp-jdbc.xml descriptor. I agree 100% with you about the meaningful error message you get. You should have a look to your relationships definitions. I don't know how do you gererate the descriptors, but have a look to the XDoclet documentation. If you are in a dead end, post theses files on the forum. Pascal View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831381#3831381 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831381 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user