You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2012/08/01 10:34:33 UTC

[jira] [Created] (OPENEJB-1882) this can't be use in localbeans

Romain Manni-Bucau created OPENEJB-1882:
-------------------------------------------

             Summary: this can't be use in localbeans
                 Key: OPENEJB-1882
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1882
             Project: OpenEJB
          Issue Type: Bug
            Reporter: Romain Manni-Bucau
             Fix For: 4.1.0




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (OPENEJB-1882) this can't be use in localbeans constructor

Posted by "Jean-Louis MONTEIRO (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Louis MONTEIRO closed OPENEJB-1882.
----------------------------------------

    Resolution: Fixed
    
> this can't be use in localbeans constructor
> -------------------------------------------
>
>                 Key: OPENEJB-1882
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1882
>             Project: OpenEJB
>          Issue Type: Bug
>    Affects Versions: 3.1, 4.0.0
>            Reporter: Romain Manni-Bucau
>             Fix For: 4.5.0
>
>
> Doing so is fine for the bean itself, but causes issues when the @LocalBean proxy is created.  If the parent class uses methods overridden in the child class a null pointer will happen because the proxy handlers fields in the child class haven't yet been set.  After constructors are called, no issues occur.
> Constructors should not be called for the @LocalBean proxy which will avoid the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENEJB-1882) this can't be use in localbeans constructor

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Blevins updated OPENEJB-1882:
-----------------------------------

    Summary: this can't be use in localbeans constructor  (was: this can't be use in localbeans)
    
> this can't be use in localbeans constructor
> -------------------------------------------
>
>                 Key: OPENEJB-1882
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1882
>             Project: OpenEJB
>          Issue Type: Bug
>            Reporter: Romain Manni-Bucau
>             Fix For: 4.1.0
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OPENEJB-1882) this can't be use in localbeans

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428964#comment-13428964 ] 

David Blevins commented on OPENEJB-1882:
----------------------------------------

Reverted original fix as equals() and hashCode() have specific meaning in EJB even for @LocalBean views and are tested in the TCK, so ignoring them doesn't work.

Alternative approach is to not create the proxy instance with the constructor and to use Unsafe like is done in object deserialization.
                
> this can't be use in localbeans
> -------------------------------
>
>                 Key: OPENEJB-1882
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1882
>             Project: OpenEJB
>          Issue Type: Bug
>            Reporter: Romain Manni-Bucau
>             Fix For: 4.1.0
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (OPENEJB-1882) this can't be use in localbeans

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Blevins reopened OPENEJB-1882:
------------------------------------

    
> this can't be use in localbeans
> -------------------------------
>
>                 Key: OPENEJB-1882
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1882
>             Project: OpenEJB
>          Issue Type: Bug
>            Reporter: Romain Manni-Bucau
>             Fix For: 4.1.0
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (OPENEJB-1882) this can't be use in localbeans constructor

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Blevins updated OPENEJB-1882:
-----------------------------------

          Description: 
Doing so is fine for the bean itself, but causes issues when the @LocalBean proxy is created.  If the parent class uses methods overridden in the child class a null pointer will happen because the proxy handlers fields in the child class haven't yet been set.  After constructors are called, no issues occur.

Constructors should not be called for the @LocalBean proxy which will avoid the issue.

    Affects Version/s: 3.1
                       4.0.0
    
> this can't be use in localbeans constructor
> -------------------------------------------
>
>                 Key: OPENEJB-1882
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1882
>             Project: OpenEJB
>          Issue Type: Bug
>    Affects Versions: 3.1, 4.0.0
>            Reporter: Romain Manni-Bucau
>             Fix For: 4.1.0
>
>
> Doing so is fine for the bean itself, but causes issues when the @LocalBean proxy is created.  If the parent class uses methods overridden in the child class a null pointer will happen because the proxy handlers fields in the child class haven't yet been set.  After constructors are called, no issues occur.
> Constructors should not be called for the @LocalBean proxy which will avoid the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (OPENEJB-1882) this can't be use in localbeans

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau closed OPENEJB-1882.
---------------------------------------

    Resolution: Fixed
    
> this can't be use in localbeans
> -------------------------------
>
>                 Key: OPENEJB-1882
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1882
>             Project: OpenEJB
>          Issue Type: Bug
>            Reporter: Romain Manni-Bucau
>             Fix For: 4.1.0
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira