I have a very simple CMP 2.0 Bean.  It has one Field on one table. 

I am using jboss 3.0 beta 2 (from cvs)

I am trying to call the create method on my Bean from a Local Interface 
in a Stateful Session Bean.  

When I call create, I get the following output in my server.log: 


2002-04-01 16:46:39,968 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.AccountMasterEJB] Create: 
pk=dennis 
2002-04-01 16:46:40,144 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.AccountMasterEJB] Executing 
SQL: SELECT COUNT(*) FROM AccountMaster WHERE Username=? 
2002-04-01 16:46:40,242 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.AccountMasterEJB] Executing 
SQL: INSERT INTO AccountMaster (Username) VALUES (?) 
2002-04-01 16:46:40,245 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.AccountMasterEJB] Create: Rows 
affected = 1 


It appears that the CMP worked correctly.  The client Bean however,
catches the following EJBException:



2002-04-01 16:46:40,258 ERROR [STDERR]
java.lang.reflect.UndeclaredThrowableException: 
2002-04-01 16:46:40,258 ERROR [STDERR] java.rmi.ServerException: null 
Embedded Exception 
$Proxy23; nested exception is: 
        javax.ejb.EJBException: null 
Embedded Exception 
$Proxy23 
2002-04-01 16:46:40,258 ERROR [STDERR] javax.ejb.EJBException: null 
Embedded Exception 
$Proxy23 
2002-04-01 16:46:40,259 ERROR [STDERR]  at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1072)
 
2002-04-01 16:46:40,259 ERROR [STDERR]  at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:73) 
2002-04-01 16:46:40,259 ERROR [STDERR]  at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:222)
 
2002-04-01 16:46:40,260 ERROR [STDERR]  at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:176)
 
2002-04-01 16:46:40,260 ERROR [STDERR]  at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:134)
 
2002-04-01 16:46:40,260 ERROR [STDERR]  at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79) 
2002-04-01 16:46:40,261 ERROR [STDERR]  at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98) 
2002-04-01 16:46:40,261 ERROR [STDERR]  at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) 
2002-04-01 16:46:40,261 ERROR [STDERR]  at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52) 
2002-04-01 16:46:40,262 ERROR [STDERR]  at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:102) 
2002-04-01 16:46:40,262 ERROR [STDERR]  at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
2002-04-01 16:46:40,262 ERROR [STDERR]  at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:468) 
2002-04-01 16:46:40,262 ERROR [STDERR]  at
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(BaseLocalContainerInvoker.java:243)
 
2002-04-01 16:46:40,263 ERROR [STDERR]  at
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker$HomeProxy.invoke(BaseLocalContainerInvoker.java:367)
 
2002-04-01 16:46:40,263 ERROR [STDERR]  at $Proxy12.create(Unknown
Source) 
etc, etc.... 


This is my create method in the EJB

public String ejbCreate ( String username ) throws CreateException {
                setUsername ( username );
                // if I add debugging info here, it gets printed just
                // fine
                return null; // standard for CMP
        }



Any suggestions?  Any help appreciated.

-Dennis

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to