You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/02/22 09:11:44 UTC

[jira] [Commented] (ARIES-1693) ClassloaderObjectInputStream can not load InputStreamProxy class

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

ASF subversion and git services commented on ARIES-1693:
--------------------------------------------------------

Commit 60b09c81af1d0131036693a8405165c8e5539646 in aries-rsa's branch refs/heads/master from [~chris@die-schneider.net]
[ https://git-wip-us.apache.org/repos/asf?p=aries-rsa.git;h=60b09c8 ]

[ARIES-1693] Use fastbin bundle classloader as fallback


> ClassloaderObjectInputStream can not load InputStreamProxy class
> ----------------------------------------------------------------
>
>                 Key: ARIES-1693
>                 URL: https://issues.apache.org/jira/browse/ARIES-1693
>             Project: Aries
>          Issue Type: Bug
>          Components: Remote Service Admin
>    Affects Versions: rsa-1.10.0
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>
> This was reported by Nick Baker over E-Mail.
> The problem seems to be that the ClassLoaderObjectInputStream only looks into the user bundle classloader. This will fail when loading the InputStreamProxy.
> This code should make sure the class can be loaded:
> https://github.com/apache/aries-rsa/commit/09771c940422a3f83d3779d6d8b482959605f95a
> but apparently it uses the wrong classloader.
> This should work:
> return Class.forName(className, false, getClass().getClassLoader());



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