tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TOMEE-2029) OpenEJB #finalize might kill a foreign container
Date Wed, 05 Apr 2017 20:32:41 GMT

    [ https://issues.apache.org/jira/browse/TOMEE-2029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15957596#comment-15957596
] 

Mark Struberg commented on TOMEE-2029:
--------------------------------------

To be more precise the following line in the code is the problem why we must not use the finalizer
for killing the server:
 
{code}
SystemInstance.get().getComponent(Assembler.class);
{code}

This kills whatever is currently registered, even if the server got restarted 3 times for
this very ClassLoader...

> OpenEJB #finalize might kill a foreign container
> ------------------------------------------------
>
>                 Key: TOMEE-2029
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2029
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 1.7.4
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 1.7.5
>
>
> While tracking down a seemingly random TomEE bug in the DeltaSpike test suite I finally
figured what the cause is. In 1.7.3 a 'cleanup logic' got introduced to ContextWrapper#finalize.
> Sadly this often kills the wrong instance!



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message