3 Replies Latest reply on Sep 30, 2015 4:29 AM by vsrikant2003

    Failed to marshal EJB parameters

    vsrikant2003

      I am using Jboss-eap-6.1 and ejb2.0 and in our application when we try to upload the attachment then we are getting the below error,the error is coming in ejb class when it is returning the value

       

      and below is the sample code

       

      please help me out in this area as i am struck with this , The code is working fine in jboss 5 and other Appservers

       

      sample code:

       

      public com.epiphany.shr.cm.bio.CMSHandle getContentHandle(EpnyUserContext uc, com.epiphany.shr.data.bio.BioRef a1) throws RemoteException, EpiSecurityException, com.epiphany.shr.cm.exception.CMSException {

      getServiceManager().checkUserAuthentication(uc);

      getServiceManager().setUserContext(uc);

      try {

      getServiceManager().setIsEJBContainer(true);

      com.epiphany.shr.cm.bio.CMSHandle r = service_proxy.getContentHandle(a1);

      getServiceManager().setIsEJBContainer(false);

      return r;

      } finally {

      getServiceManager().setIsEJBContainer(false);

      }

      }

       

       

      error message:

       

      [Server:server-four] 06:04:41,267 INFO  [stdout] (ajp-/10.39.169.1:8359-1) 06:04:41,266 ERROR [ControllerServlet] 0 LOG_FILE_DOWNLOAD_ERROR File download error

      [Server:server-four] 06:04:41,267 INFO  [stdout] (ajp-/10.39.169.1:8359-1) java.lang.RuntimeException: JBAS014154: Failed to marshal EJB parameters

      [Server:server-four]

      [Server:server-four] 06:04:41,267 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:270)

      [Server:server-four]

      [Server:server-four] 06:04:41,267 INFO  [stdout] (ajp-/10.39.169.1:8359-1) at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:259)

      [Server:server-four]

      [Server:server-four] 06:04:41,267 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:231)

      [Server:server-four]

      [Server:server-four] 06:04:41,267 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)

      [Server:server-four]

      [Server:server-four] 06:04:41,267 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.ejb.client.EJBObjectInterceptor.handleInvocation(EJBObjectInterceptor.java:58)

      [Server:server-four]

      [Server:server-four] 06:04:41,268 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

      [Server:server-four]

      [Server:server-four] 06:04:41,268 INFO  [stdout] (ajp-/10.39.169.1:8359-1) at org.jboss.ejb.client.EJBHomeInterceptor.handleInvocation(EJBHomeInterceptor.java:83)

      [Server:server-four]

      [Server:server-four] 06:04:41,268 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

      [Server:server-four]

      [Server:server-four] 06:04:41,268 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:42)

      [Server:server-four]

      [Server:server-four] 06:04:41,268 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

      [Server:server-four]

      [Server:server-four] 06:04:41,268 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125)

      [Server:server-four]

      [Server:server-four] 06:04:41,268 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

      [Server:server-four]

      [Server:server-four] 06:04:41,268 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:253)

      [Server:server-four]

      [Server:server-four] 06:04:41,269 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:198)

      [Server:server-four]

      [Server:server-four] 06:04:41,269 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181)

      [Server:server-four]

      [Server:server-four] 06:04:41,269 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144)

      [Server:server-four]

      [Server:server-four] 06:04:41,269 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at com.sun.proxy.$Proxy178.getContentHandle(Unknown Source)

      [Server:server-four]

      [Server:server-four] 06:04:41,269 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at com.epiphany.shr.cm.service.ejb.CMServiceEJBWrapper.getContentHandle(CMServiceEJBWrapper.java:231)

      [Server:server-four]

      [Server:server-four] 06:04:41,269 INFO  [stdout] (ajp-/10.39.169.1:8359-1) at com.epiphany.shr.ui.controller.ControllerServlet.processFileDownload(ControllerServlet.java:1042)

      [Server:server-four]

      [Server:server-four] 06:04:41,269 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at com.epiphany.shr.ui.controller.EpnyServlet.doPost(EpnyServlet.java:602)

      [Server:server-four]

      [Server:server-four] 06:04:41,269 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at com.epiphany.shr.ui.controller.EpnyServlet.doGet(EpnyServlet.java:443)

      [Server:server-four]

      [Server:server-four] 06:04:41,270 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

      [Server:server-four]

      [Server:server-four] 06:04:41,270 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at com.epiphany.shr.ui.controller.EpnyServlet.service(EpnyServlet.java:527)

      [Server:server-four]

      [Server:server-four] 06:04:41,270 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      [Server:server-four]

      [Server:server-four] 06:04:41,270 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

      [Server:server-four]

      [Server:server-four] 06:04:41,270 INFO  [stdout] (ajp-/10.39.169.1:8359-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

      [Server:server-four]

      [Server:server-four] 06:04:41,270 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

      [Server:server-four]

      [Server:server-four] 06:04:41,270 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

      [Server:server-four]

      [Server:server-four] 06:04:41,270 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(JBossWebContext.java:91)

      [Server:server-four]

      [Server:server-four] 06:04:41,271 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(JBossWebContext.java:72)

      [Server:server-four]

      [Server:server-four] 06:04:41,271 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

      [Server:server-four]

      [Server:server-four] 06:04:41,271 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

      [Server:server-four]

      [Server:server-four] 06:04:41,271 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

      [Server:server-four]

      [Server:server-four] 06:04:41,271 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

      [Server:server-four]

      [Server:server-four] 06:04:41,272 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

      [Server:server-four]

      [Server:server-four] 06:04:41,272 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:488)

      [Server:server-four]

      [Server:server-four] 06:04:41,272 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:420)

      [Server:server-four]

      [Server:server-four] 06:04:41,272 INFO  [stdout] (ajp-/10.39.169.1:8359-1) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

      [Server:server-four]

      [Server:server-four] 06:04:41,272 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at java.lang.Thread.run(Thread.java:745)

      [Server:server-four]

      [Server:server-four] 06:04:41,272 INFO  [stdout] (ajp-/10.39.169.1:8359-1) Caused by: java.io.NotSerializableException: com.epiphany.shr.cm.bio.CMSHandle

      [Server:server-four]

      [Server:server-four] 06:04:41,272 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:255)

      [Server:server-four]

      [Server:server-four] 06:04:41,273 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:134)

      [Server:server-four]

      [Server:server-four] 06:04:41,273 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:268)

      [Server:server-four]

      [Server:server-four] 06:04:41,273 INFO  [stdout] (ajp-/10.39.169.1:8359-1)      ... 38 more

      [Server:server-four]