1 Reply Latest reply on Apr 2, 2009 3:12 AM by Ron Sigal

    RMI from JBoss 4.3 to JBoss 4.2

    asddsa dsasd Newbie

      I'm trying to invoke in JBoss 4.3 eap hand compiled, remote method on my bean that is deployed on JBoss 4.2 as, but I get following error:

      2009-03-25 14:46:54,309 ERROR [org.apache.catalina.core.ContainerBase]
      Servlet.service() for servlet FileServlet threw exception
      java.lang.ClassCastException:
      org.jboss.serial.io.MarshalledObjectForLocalCalls cannot be cast to
      java.lang.Integer
      at $Proxy208.addFile(Unknown Source)
      at
      test.FileServlet.saveFile(FileServlet.java:204)
      at
      test.FileServlet.service(FileServlet.java:117)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
      at
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      at
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at
      org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      at
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)

      Any ideas as to why it does not work? What can I do about it?