0 Replies Latest reply on Mar 12, 2002 8:52 AM by Ganesh Babu Monda

    Problem using SessionAdapter

    Ganesh Babu Monda Newbie

      Hello,
      We are having problem using a SessionAdapter, which provides default impl of all ejbXXX methods. This is an abstract class.
      Then the actual bean impl extends this class. Deploying the bean is OK

      abstract public class SessionAdapter implements SessionBean
      {
      }

      public class KeySvcBean extends SessionAdapter
      {
      }
      I have a default constructor for both. When I invoke a method on the bean I get the following error,

      [2002-03-12 14:42:13,737,LogInterceptor,ERROR] TransactionRolledbackException, causedBy:
      java.lang.NoSuchMethodError
      at net.infosim.stablenet.svc.impl.SessionAdapter.(Unknown Source)
      at net.infosim.stablenet.svc.impl.core.key.KeySvcBean.(Unknown Source)
      at java.lang.Class.newInstance0(Native Method)
      at java.lang.Class.newInstance(Class.java:237)
      at org.jboss.ejb.Container.createBeanClassInstance(Container.java:363)
      at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:153)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:59)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:156)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:65)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:131)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:280)
      at org.jboss.ejb.Container.invoke(Container.java:528)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:411)
      at java.lang.reflect.Method.invoke(Native Method)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      at sun.rmi.transport.Transport$1.run(Transport.java:152)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
      at java.lang.Thread.run(Thread.java:484)
      [2002-03-12 14:42:13,737,StatelessSessionContainer,ERROR] invoke returned an exception
      javax.transaction.TransactionRolledbackException: null; nested exception is:
      java.lang.NoSuchMethodError
      java.lang.NoSuchMethodError
      at net.infosim.stablenet.svc.impl.SessionAdapter.(Unknown Source)
      at net.infosim.stablenet.svc.impl.core.key.KeySvcBean.(Unknown Source)
      at java.lang.Class.newInstance0(Native Method)
      at java.lang.Class.newInstance(Class.java:237)
      at org.jboss.ejb.Container.createBeanClassInstance(Container.java:363)
      at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:153)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:59)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:156)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:65)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:131)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:280)
      at org.jboss.ejb.Container.invoke(Container.java:528)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:411)
      at java.lang.reflect.Method.invoke(Native Method)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      at sun.rmi.transport.Transport$1.run(Transport.java:152)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
      at java.lang.Thread.run(Thread.java:484)
      [2002-03-12 14:45:52,715,EnterpriseContextCachePolicy,DEBUG] Resized cache for bean KeyEntityBean: old capacity = 1000, new capacity = 50

      Any help greatly appreciated.

      Ganesh