tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Gumbrecht (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OPENEJB-2100) Context Classloader not restored in org.apache.openejb.client.EJBObjectHandler.createEJBObjectProxy
Date Wed, 10 Sep 2014 21:04:34 GMT

     [ https://issues.apache.org/jira/browse/OPENEJB-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andy Gumbrecht resolved OPENEJB-2100.
-------------------------------------
    Resolution: Fixed

Thanks for the patch Thorsten Meinl.

> Context Classloader not restored in org.apache.openejb.client.EJBObjectHandler.createEJBObjectProxy
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-2100
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-2100
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 4.6.0.2
>            Reporter: Thorsten Meinl
>            Assignee: Romain Manni-Bucau
>             Fix For: 4.7.1, 5.0.0
>
>         Attachments: EJBObjectHandler.java.patch
>
>
> When accessing a bean via the InitialContext, the context classloader of the calling
thread is changed. This causes problems in application that rely on certain context classloaders,
e.g. Eclipse. The bug is quite obvious: before creating the proxy instance in line 209 of
org.apache.openejb.client.EJBObjectHandler, the context classloader is changed. However, after
the call is should be restored but is again set to the other classloader. The argument should
be "oldCl" instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message