Hi developers,
I do testing JBoss beta 04 and i have simple questions:
If is is possible in the BMP entity bean ejbCreate exception throw user defined
exception where user defined exception :
public class DialogException extends Exception
I do trying :
public VirtualCallCenterPK ejbCreate( String inVCCName,
String inNotes
)
throws RemoteException,
CreateException,
DialogException
{
log("VCCBean::ejbCreate(...)",theLogLevel );
String error = "VCCBean::ejbCreate: Exception test";
throw new DialogException (error);
}
AND I GET:
[VCC] TRANSACTION ROLLBACK EXCEPTION:id may not be null; nested exception is:
java.lang.Error: id may not be null
[VCC] java.lang.Error: id may not be null
[VCC] at org.jboss.ejb.CacheKey.<init>(CacheKey.java:51)
[VCC] at org.jboss.ejb.plugins.EntityInstanceCache.createCacheKey(EntityInstan
ceCache.java:45)
[VCC] at org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPersisten
ceManager.java:151)
[VCC] at org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:433)
[VCC] at java.lang.reflect.Method.invoke(Native Method)
[VCC] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityC
ontainer.java:591)
[VCC] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(Ent
itySynchronizationInterceptor.java:160)
[VCC] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInst
anceInterceptor.java:86)
[VCC] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.ja
va:135)
[VCC] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
torCMT.java:263)
[VCC] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.ja
va:86)
[VCC] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercep
tor.java:126)
[VCC] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1
06)
[VCC] at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:315)
[VCC] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRM
PContainerInvoker.java:143)
[VCC] at java.lang.reflect.Method.invoke(Native Method)
[VCC] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
[VCC] at sun.rmi.transport.Transport$1.run(Unknown Source)
[VCC] at java.security.AccessController.doPrivileged(Native Method)
[VCC] at sun.rmi.transport.Transport.serviceCall(Unknown Source)
[VCC] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
[VCC] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour
ce)
[VCC] at java.lang.Thread.run(Unknown Source)
Best regards,
Darius Davidavicius