Bugs item #491039, was opened at 2001-12-09 22:31
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=491039&group_id=22866

Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Toby Hede (ubik42)
Assigned to: Nobody/Anonymous (nobody)
Summary: Null Exception in abstract accessors

Initial Comment:
When using CMP2.0 defined accessors a Null Exception 
is returned:

java.rmi.ServerException: RemoteException occurred in 
server thread; nested exception is:
javax.transaction.TransactionRolledBackException: null
Embedded Exception
null; nested exception is:
javax.ejb.EJBException: null
Embedded Exception
null

Code sample: 
public abstract class ThingBean implements 
javax.ejb.EntityBean
{
   . . .
   
   public abstract String getName();
   public abstract void setName(String name);   

   . . . 

}


public interface ThingHome extends javax.ejb.EJBHome
{

   public ThingRemote create(java.lang.Integer id)
      throws 
java.rmi.RemoteException,javax.ejb.CreateException;

   public ThingRemote findByPrimaryKey
(java.lang.Integer pk)
      throws 
java.rmi.RemoteException,javax.ejb.FinderException;
      

}



Workaround:
Transaction must be expicilty set to 'Required' in the 
<container-transaction> of the ejb-jar.xml deployment 
descriptor. I cannot find if this the Transation= 
Required attribute is a requirement of the EJB2.0 
specification...if it is arequirement of the 
specification, this is not a bug, but the workaround 
should perhaps be mentioned explicitly in the CMP 
documentation. 




----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=491039&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to