Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-9406

Bean class local view SFSB fails to replicate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0.Final
    • Fix Version/s: None
    • Component/s: EJB
    • Labels:
      None
    • Affects:
      Release Notes

      Description

      The attached application contains a simple @SessionScoped SFSB:

      @SessionScoped
      @Stateful
      @Named
      public class Foo implements Serializable {

      private String text;

      public String getText()

      { return text; }

      public void setText(String text)

      { this.text = text; }

      public void submit()
      {

      }

      @Remove
      public void remove() {

      }
      }

      When an action is invoked on the bean, I can see replication failing in the server log. See the attached logs for details. In the first one, the Foo bean does not implement serializable (as it is not required to do so). The second log was captured after the bean has been changed to implement the Serializable interface.

      To reproduce:
      1) Create two JBoss AS 6 instances as described at https://github.com/weld/core/blob/master/examples/README.md
      2) Deploy the attached war file
      3) Open http://localhost:8080/foo/foo.xhtml
      4) Enter any text and click submit
      This is where the replication fails and errors appear in the log
      5) Verify text appears at http://localhost:8180/foo/foo.xhtml - you'll need to copy session id parameter as well, e.g. http://localhost:8180/foo/foo.xhtml;jsessionid=PX5Q-ORdeUJLifFqqrOkQA__

      Note that the replication succeeds if I use an explicit @Local interface for the Foo bean.

        Attachments

        1. foo.war
          4 kB
        2. non-serializable.log
          43 kB
        3. serializable.log
          44 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jharting Jozef Hartinger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: