custom finder EJB 1.1 jboss 2.2.2 x 3.2.1
ricardotemporal Jun 3, 2003 5:30 PMHello,
I am upgrading from jboss 2.2.2 to jboss 3.2.1 and the application was written in EJB 1.1 specification.
A custom finder method in a CMP EntityBean is throwing an exception, and ejbFindCustom never get called.
IMPORTANT: custom finder method in CMP, not BMP.
I think this is standard, acording to paragraph 9.2.5 of EJB 1.1 specification, although appendix B.4 says there is no way to specify a criteria.
I don't want to re-write in EJB 2.0, because the application is in production and I don't have time for that, not now.
I have the documentation, if someone can help me or indicate where can I find it in the docs...
Thanks.
---------------------------
java.lang.IllegalStateException
at org.jboss.ejb.EntityContainer.find(EntityContainer.java:654)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:998) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:188)
at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:91)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74)
at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:477)
at org.jboss.ejb.Container.invoke(Container.java:694)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java(Compiled Code))
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:83)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
at $Proxy327.findCodInstrumento_DtTime(Unknown Source)