0 Replies Latest reply on Dec 8, 2006 2:22 PM by sumit.malik

    Session bean problem :)

    sumit.malik

      Hi Everyone,

      I m running the sample's which are provided for Jboss EJB3Trail Demo application..

      I have these configuration

      Linux Fedora Core 4

      Jboss 4.0.4 CA

      Well, whenever i have deployed Session bean then try to get stub locally i get this exception after

      
      00:32:05,174 ERROR [[/test]] Session attribute event listener threw exception
      java.lang.RuntimeException: Could not resolve beanClass method from proxy call: public abstract void javax.ejb.EJBLocalObject.remove() throws javax.ejb.RemoveException,javax.ejb.EJBException
       at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:169)
       at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
       at $Proxy98.remove(Unknown Source)
       at net.java.dev.strutsejb.web.SessionRemover.attributeRemoved(SessionRemover.java:39)
       at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1623)
       at org.apache.catalina.session.StandardSession.expire(StandardSession.java:732)
       at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:572)
       at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:678)
       at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:663)
       at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1284)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
       at java.lang.Thread.run(Thread.java:595)
      
      



      Here my session bean is working fine and i think ejb session time out is not working in smooth way. I have googled this problem and find few solution but none of them helped me out yet like i have changed and increased session bean passivate time but no result

      <max-bean-life>300<max-bean-life> to <max-bean-life>300<max-bean-life>
      


      and even i have changed
      <domain name="Stateful Bean" extends="Base Stateful Bean" inheritBindings="true">
      ...
       <annotation expr="!class(@org.jboss.annotation.ejb.cache.simple.CacheConfig) AND !class(@org.jboss.annotation.ejb.Clus
      tered)">
       @org.jboss.annotation.ejb.cache.simple.CacheConfig (maxSize=100000, idleTimeoutSeconds=3600
      )
       </annotation>
      ...
       </domain>
      [/code ]
      but not yet i have gain any result and problem is still there....
      So here i m just getting blocked
      
      Looking forward for the help !!!