9 Replies Latest reply on Dec 3, 2013 10:39 PM by Sreedhar UKD

    Unable to call business method in stateful bean class

    Sreedhar UKD Newbie

      Hi,

      I want to migrate my project from Jboss 3.2.8 SPI to  Jboss 7.1.1,  All the changes are done and I am able to lookup my remote interface

      and I am able to get the Object , but I am unable to call business methods what I have implemented in my bean class

       

      At the time when I call the methods I am getting an exception like this

       

       

       

       

       

      12:14:50,271 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2) java.lang.RuntimeException: ClassNotFoundException marshaling EJB parameters

      12:14:50,271 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:229)

      12:14:50,271 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:216)

      12:14:50,271 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver

      .java:188)

      12:14:50,271 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocat

      ionContext.java:179)

      12:14:50,271 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInte

      rceptor.java:43)

      12:14:50,271 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocat

      ionContext.java:181)

      12:14:50,271 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverIntercepto

      r.java:128)

      12:14:50,271 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocat

      ionContext.java:181)

      12:14:50,271 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java

      :136)

      12:14:50,271 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java

      :121)

      12:14:50,271 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:1

      04)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at com.sun.proxy.$Proxy110.getStateMachine(Unknown Source)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at com.mysedan.application.limonet.control.web.ModelManager.setSiteId(ModelMana

      ger.java:1218)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at com.mysedan.application.limonet.control.web.MainServlet.doProcess(MainServle

      t.java:842)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at com.mysedan.application.limonet.control.web.MainServlet.doGet(MainServlet.ja

      va:55)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

      FilterChain.java:329)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

      ain.java:248)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja

      va:275)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja

      va:161)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityCon

      textAssociationValve.java:153)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155

      )

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102

      )

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java

      :109)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http

      11Protocol.java:671)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at java.lang.Thread.run(Thread.java:724)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2) Caused by: java.lang.ClassNotFoundException: org.jboss.as.naming.ValueManagedRefere

      nceFactory$ValueManagedReference from [Module "deployment.savoya.ear.savoya.jar:main" from Service Module Loader]

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(Concurrent

      ClassLoader.java:468)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentCl

      assLoader.java:456)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoad

      er.java:398)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java

      :120)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at java.lang.Class.forName0(Native Method)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at java.lang.Class.forName(Class.java:270)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.ClassLoaderClassCloner.clone(ClassLoaderClassCl

      oner.java:46)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

      158)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

      135)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

      187)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

      135)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner

      .java:348)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(Seriali

      zingCloner.java:309)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

      254)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

      231)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

      135)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner

      .java:348)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(Seriali

      zingCloner.java:309)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(Seriali

      zingCloner.java:286)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

      254)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

      135)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner

      .java:348)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(Seriali

      zingCloner.java:309)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

      254)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

      135)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner

      .java:348)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(Seriali

      zingCloner.java:309)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

      254)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

      135)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:225)

      12:14:50,287 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2)     ... 29 more

       

       

       

       

      Bean Class

      ==============================

       

      package com.mysedan.application.limonet.control.ejb;

       

       

      import java.util.Collection;

      import java.util.HashMap;

      import java.rmi.RemoteException;

      import javax.ejb.CreateException;

      import javax.ejb.EJBException;

      import javax.ejb.RemoveException;

      import javax.ejb.SessionBean;

      import javax.ejb.SessionContext;

      import com.mysedan.application.limonet.control.exception.MySedanAppException;

      import com.mysedan.application.limonet.control.exception.MySedanEventException;

       

       

       

       

      public class EJBControllerBean implements SessionBean, java.io.Serializable {

       

       

        private StateMachine sm;

        private SessionContext sc;

       

       

        public EJBControllerBean() {}

       

       

        public void ejbCreate() {

        System.out.println("\n EJBCreate in JBOSS7 & $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");

       

       

       

        sm = new StateMachine(this);

       

       

       

        }

       

       

       

       

       

        public Collection handleEvent(BizEvent ese)

        throws MySedanEventException {

         return (sm.handleEvent(ese));

        }

       

       

        public StateMachine getStateMachine() {

        return sm;

        }

       

       

        public void setAttribute(String key, Object value) {

        sm.attributeMap.put(key, value);

        }

       

       

        public void setSessionContext(SessionContext sc) {

        this.sc = sc;

        }

       

       

        public void ejbRemove() {

        sm = null;

        }

       

       

        public void ejbActivate() {

        System.out.println("\n\n");

        System.out.println("************** I AM GETTING ACTIVATED NOW WATCH ME **************");

        System.out.println("\n\n");

        }

       

       

        public void ejbPassivate() {

        System.out.println("\n\n");

        System.out.println("************** I AM GETTING PASSIVATED NOW WATCH ME **************");

        System.out.println("\n\n");

        }

      }

       

       

       

       

       

      This is my Stateful bean class

       

       

       

      does any one aware of this exception and reason for this kind of exception, Please help me

        • 1. Re: Unable to call business method in stateful bean class
          Wolf-Dieter Fink Master

          Could you invoke the bean and the return failed? How your invocation code look like?

          • 2. Re: Unable to call business method in stateful bean class
            Sreedhar UKD Newbie

            Thank you for the reply

             

             

            Jboss.xml

            ==============

            <session>

              <ejb-name>ControllerEJB</ejb-name>

              <jndi-name>com.mysedan.application.limonet.control.ejb.EJBControllerHome?stateful</jndi-name>

              <resource-ref>

              <res-ref-name>mysedanDS</res-ref-name>

              <resource-name>mysedanDS</resource-name>

              </resource-ref>

              </session>

             

            ejb-jar.xml

            ===================

            <session>

              <display-name>EJBController Service</display-name>

              <ejb-name>ControllerEJB</ejb-name>

              <home>com.mysedan.application.limonet.control.ejb.EJBControllerHome</home>

              <remote>com.mysedan.application.limonet.control.ejb.EJBController</remote>

              <ejb-class>com.mysedan.application.limonet.control.ejb.EJBControllerBean</ejb-class>

              <session-type>Stateful</session-type>

              <transaction-type>Container</transaction-type>

              <resource-ref>

              <description>The mysedan DS</description>

              <res-ref-name>mysedanDS</res-ref-name>

              <res-type>javax.sql.DataSource</res-type>

              <res-auth>Container</res-auth>

              </resource-ref>

              </session>

             

             

             

            look up

            ============================

             

            Hashtable env = new Hashtable();

              try {

            env.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");

            }

              catch (Exception e) {

             

              String initialContextFactory = "org.jboss.naming.remote.client.InitialContextFactory";

              String providerURL = "remote://localhost:4447";

              env.put(Context.INITIAL_CONTEXT_FACTORY, initialContextFactory);

              env.put(Context.PROVIDER_URL, providerURL);

              System.out.println("EJBUtil::Server configuration loaded with default values.");

              }

             

            initialContext = new InitialContext(env);

             

             

            EJBControllerHome ejbControllerHome=(EJBControllerHome) initialContext.lookup("ejb:savoya/savoya.jar/ControllerEJB!com.mysedan.application.limonet.control.ejb.EJBControllerHome?stateful");

             

            EJBController  ejbController = ejbControllerHome.create();

             

            System.out.println("EJBController ================================>"+ejbController);

             

            StateMachine sm=ejbController.getStateMachine(); // here I am getting Exception

             

             

            Output

            ===============

            If I display the  returned bean it is showing the exact bean

             

             

            12:12:42,647 INFO  [stdout] (http-127.0.0.1-127.0.0.1-80-2) EJBController ================================>Proxy for remote EJB StatefulEJBLoca

            tor{appName='savoya', moduleName='savoya.jar', distinctName='', beanName='ControllerEJB', view='interface com.mysedan.application.limonet.contr

            ol.ejb.EJBController', sessionId='{[-40, 125, 37, -71, 24, 90, 79, -85, -70, 18, 25, 19, -7, 85, 87, 89]}'}

            12:12:42,647 INFO  [stdout] (http-127.0.0.1-127.0.0.1-80-2)

             

             

             

             

            I am able to look up the bean the problem is to call the ejb  business methods......

            • 3. Re: Unable to call business method in stateful bean class
              Wolf-Dieter Fink Master

              Do you see that the ejbCreate of your SFSB is called? This shoudl be done during the .create() to create the SLSB.

              If you add some youtput to the business method, do you see that this method is called on server side?

              Is the module name really 'savoya.jar'?, in this case the JAR file in your ear should be savoya.jar.jar

              1 of 1 people found this helpful
              • 4. Re: Unable to call business method in stateful bean class
                Sreedhar UKD Newbie

                you are right

                business methods are calling in the server side and I am able to see the output, but when I try to load the StateMachine( sm) object in below business method then I am getting error

                public StateMachine getStateMachine() {

                  return sm;

                  }

                 

                 

                Myproject contains ear file named savoya.ear and it  contains (savoya.war and savoya.jar(ejbclasses))

                 

                 

                I don't know the representation of  xxxxx.jar.jar (Let me try like that)

                 

                Thank you very much

                • 5. Re: Unable to call business method in stateful bean class
                  Sreedhar UKD Newbie

                  I tried by replacing my savoya.jar file to savoya.jar.jar eventhough I am getting same exception .

                  when I try to load other objects from my bean class, I am getting this Exception

                   

                  12:14:50,271 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-2) java.lang.RuntimeException: ClassNotFoundException marshaling EJB parameters

                   

                  com.sun.proxy.$Proxy110.getStateMachine(Unknown Source)

                   

                   

                  is there any other reason for this kind of exception?

                  • 6. Re: Unable to call business method in stateful bean class
                    Wolf-Dieter Fink Master

                    Sounds like the StateMachine or it's subclasses have issues.

                     

                    You need to figure out whether you can invoke the SFSB with no issues, you might add debug to see whether you reach the b-method and return a simple string to see it works so far.

                    If that works we are sure that the invocation and the SFSB works and you can look for the classloading issue.

                    • 7. Re: Unable to call business method in stateful bean class
                      Sreedhar UKD Newbie

                      thank you for your cooperation

                      As you said I took an Example class and I am trying to load it from my SFSB

                      Here  I am creating object of Example class in Create() method of SFSB ,

                      If I create object with empty constructor then every thing works fine 

                      If I create object with parameterized constructor of current bean then I am getting the above exception

                       

                      EJBControllerBean

                      ==================================

                      public class EJBControllerBean implements SessionBean, java.io.Serializable {

                         private SessionContext sc;

                            private Example ex;

                         

                         

                        public EJBControllerBean() {}

                       

                       

                        public void ejbCreate() {

                        System.out.println("\n EJBCreate in JBOSS7 & $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");

                                 

                              ex =new Example(this); 

                           //ex = new Example();

                        }

                       

                        public Example  getExample()

                        {

                        return ex;

                        }

                         

                       

                       

                        public void setSessionContext(SessionContext sc) {

                        this.sc = sc;

                        }

                       

                       

                        public void ejbRemove() {

                       

                        }

                       

                       

                        public void ejbActivate() {

                        System.out.println("\n\n");

                        System.out.println("************** I AM GETTING ACTIVATED NOW WATCH ME **************");

                        System.out.println("\n\n");

                        }

                       

                       

                        public void ejbPassivate() {

                        System.out.println("\n\n");

                        System.out.println("************** I AM GETTING PASSIVATED NOW WATCH ME **************");

                        System.out.println("\n\n");

                        }

                      }

                       

                       

                      Example

                      ============================

                      package com.mysedan.application.limonet.control.ejb;

                       

                       

                      public class Example implements java.io.Serializable{

                        EJBControllerBean ejbControllerBean;

                        public Example()

                        {

                        System.out.println("Empty Constructor in Example Class");

                        }

                        public Example(EJBControllerBean ejbControllerBean)

                        {

                        this.ejbControllerBean=ejbControllerBean;

                        }

                        public void show()

                        {

                        System.out.println("I am from Example Class =========================");

                        }

                       

                       

                      }

                       

                       

                      Stack Trace

                      =============================

                      14:57:22,545 INFO  [stdout] (http-127.0.0.1-127.0.0.1-80-6) Empty Constructor in Example Class

                      14:57:22,545 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6) java.lang.RuntimeException: ClassNotFoundException marshaling EJB parameters

                      14:57:22,545 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:229)

                      14:57:22,545 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:216)

                      14:57:22,545 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver

                      .java:188)

                      14:57:22,545 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocat

                      ionContext.java:179)

                      14:57:22,545 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInte

                      rceptor.java:43)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocat

                      ionContext.java:181)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverIntercepto

                      r.java:128)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocat

                      ionContext.java:181)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java

                      :136)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java

                      :121)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:1

                      04)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at com.sun.proxy.$Proxy315.getExample(Unknown Source)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at com.mysedan.application.limonet.control.web.MainServlet.doProcess(MainServle

                      t.java:771)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at com.mysedan.application.limonet.control.web.MainServlet.doGet(MainServlet.ja

                      va:56)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

                      FilterChain.java:329)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

                      ain.java:248)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja

                      va:275)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja

                      va:161)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityCon

                      textAssociationValve.java:153)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155

                      )

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102

                      )

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java

                      :109)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http

                      11Protocol.java:671)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at java.lang.Thread.run(Thread.java:724)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6) Caused by: java.lang.ClassNotFoundException: org.jboss.as.naming.ValueManagedRefere

                      nceFactory$ValueManagedReference from [Module "deployment.savoya.ear.savoya.jar:main" from Service Module Loader]

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(Concurrent

                      ClassLoader.java:468)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentCl

                      assLoader.java:456)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoad

                      er.java:398)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java

                      :120)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at java.lang.Class.forName0(Native Method)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at java.lang.Class.forName(Class.java:270)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.ClassLoaderClassCloner.clone(ClassLoaderClassCl

                      oner.java:46)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

                      158)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

                      135)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

                      187)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

                      135)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner

                      .java:348)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(Seriali

                      zingCloner.java:309)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

                      254)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

                      231)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

                      135)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner

                      .java:348)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(Seriali

                      zingCloner.java:309)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(Seriali

                      zingCloner.java:286)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

                      254)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

                      135)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner

                      .java:348)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(Seriali

                      zingCloner.java:309)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

                      254)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

                      135)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner

                      .java:348)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(Seriali

                      zingCloner.java:309)

                      14:57:22,561 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

                      254)

                      14:57:22,576 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:

                      135)

                      14:57:22,576 ERROR [stderr] (http-127.0.0.1-127.0.0.1-80-6)     at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:225)

                       

                       

                      is there any issue with this parameterized constructor in Jboss 7.1.1 ?

                      • 8. Re: Unable to call business method in stateful bean class
                        Wolf-Dieter Fink Master

                        Did you return a reference to the SFSB?

                        This is not recommended/allowed by EJB spec and you might have issues.

                        What is the use-case for that?

                        • 9. Re: Unable to call business method in stateful bean class
                          Sreedhar UKD Newbie

                          Thank you for your cooperation ,

                          I got the answer it is due to pass by value is enabled by default in Jboss 7.1.1 , for that we need to make it false

                          then it will pass only by reference

                          <in-vm-remote-interface-invocation pass-by-value="false"/>

                           

                          once again thanks