[JBoss JIRA] Closed: (NETTY-53) ClassNotFoundException when an ObjectDecoder with no ClassLoader specified tries to decode an object.

Trustin Lee (JIRA) jira-events at lists.jboss.org
Wed Oct 1 07:07:21 EDT 2008


     [ https://jira.jboss.org/jira/browse/NETTY-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trustin Lee closed NETTY-53.
----------------------------

    Resolution: Done


Fixed.  Thread.currentThread().getContextClassLoader() is always called before calling Class.forName() if a user specified no or null ClassLoader.

> ClassNotFoundException when an ObjectDecoder with no ClassLoader specified tries to decode an object.
> -----------------------------------------------------------------------------------------------------
>
>                 Key: NETTY-53
>                 URL: https://jira.jboss.org/jira/browse/NETTY-53
>             Project: Netty
>          Issue Type: Bug
>          Components: Handler
>    Affects Versions: 3.0.0.CR4
>            Reporter: Trustin Lee
>            Assignee: Trustin Lee
>             Fix For: 3.0.0.CR5
>
>
> When no or null ClassLoader is specified for ObjectDecoder, the ObjectDecoder should use the current thread's ClassLoader to load a class.  The current implementation blindly passes null to Class.forName(), which raises ClassNotFoundException.
> Detailed bug report is found here:
> http://n2.nabble.com/Problem-with-ObjectEncoder-in-trunk-tp1125700p1125700.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the netty-dev mailing list