You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2008/04/14 23:35:04 UTC
[jira] Resolved: (AXIS2-3728) Context class loader not restored
correctly
[ https://issues.apache.org/jira/browse/AXIS2-3728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas resolved AXIS2-3728.
-------------------------------------
Resolution: Fixed
Fixed in svn revision 648010.
> Context class loader not restored correctly
> -------------------------------------------
>
> Key: AXIS2-3728
> URL: https://issues.apache.org/jira/browse/AXIS2-3728
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Reporter: Jarek Gawor
> Fix For: 1.4, nightly
>
>
> has the following code:
> AsyncResponse.java does not restore the context classloader correctly. For example:
> protected void onError(Throwable flt, MessageContext mc, ClassLoader cl) {
> setThreadClassLoader(cl);
> onError(flt, mc);
> ClassLoader origClassLoader = (ClassLoader)AccessController.doPrivileged(new PrivilegedAction() {
> public Object run() {
> return Thread.currentThread().getContextClassLoader();
> }
> });
> setThreadClassLoader(origClassLoader);
> }
> The origClassLoader is retrieved after new class loader is already set on the thread so really origClassLoader == cl. The origClassLoader should be obtained before the first setThreadClassLoader(cl) call. Same problem applies to onCompleted() call.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org