[jboss-jira] [JBoss JIRA] Updated: (JBAS-9406) Bean class local SFSB fails to replicate

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Wed Jun 15 10:31:29 EDT 2011


     [ https://issues.jboss.org/browse/JBAS-9406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jozef Hartinger updated JBAS-9406:
----------------------------------

    Attachment: non-serializable.log
                serializable.log
                foo.war


> Bean class local SFSB fails to replicate
> ----------------------------------------
>
>                 Key: JBAS-9406
>                 URL: https://issues.jboss.org/browse/JBAS-9406
>             Project: Legacy JBoss Application Server 6 
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: EJB
>    Affects Versions: 6.0.0.Final
>            Reporter: Jozef Hartinger
>            Assignee: Carlo de Wolf
>            Priority: Critical
>         Attachments: foo.war, non-serializable.log, serializable.log
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list