Exception in business method: No remote interface defined.
l.g. Aug 28, 2002 1:31 AMInv: jboss-3.0.1/RedHat7.3/sun jdk1.4
I have business method in Entity Bean (with local interface):
=====================================
1.public util.Record loadRecord(String loadGroup){
2. log.debug("loadRecord::context: " + context);
3. InvestmentCompanyLocal investmentCompanyLocal = (InvestmentCompanyLocal) context.getEJBObject();
4. log.debug("loadRecord::investmentCompanyLocal: " + investmentCompanyLocal);
...
}
=====================================
On the line 3 I get exception:
=====================================
...
2002-08-27 23:50:23,418 DEBUG [com.rteasset.model.InvestmentCompanyEJB$Proxy] loadRecord::context: org.jboss.ejb.EntityEnterpriseContext$EntityContextImpl@83268e
2002-08-27 23:50:23,425 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy:
java.lang.IllegalStateException: No remote interface defined.
at org.jboss.ejb.EntityEnterpriseContext$EntityContextImpl.getEJBObject(EntityEnterpriseContext.java:184)
at com.rteasset.model.InvestmentCompanyEJB.loadRecord(InvestmentCompanyEJB.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1191)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:95)
at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:308)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:152)
at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107)
at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
at $Proxy34.loadRecord(Unknown Source)
...
=================================================
I have no problem to call another methods on this EJB - wich means the remote interface is there.
Is there something I'm doing wrong?
TIA.