[JBoss JIRA] Resolved: (NETTY-371) OSGi Manifest requires Bundle-BuddyPolicy for object deserialization

Trustin Lee (JIRA) jira-events at lists.jboss.org
Wed Jan 12 04:34:49 EST 2011


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

Trustin Lee resolved NETTY-371.
-------------------------------

    Fix Version/s: 3.2.4.Final
       Resolution: Done


Thanks for clarification.  I've just added the two properties to the manifest.

> OSGi Manifest requires Bundle-BuddyPolicy for object deserialization
> --------------------------------------------------------------------
>
>                 Key: NETTY-371
>                 URL: https://issues.jboss.org/browse/NETTY-371
>             Project: Netty
>          Issue Type: Bug
>          Components: Core API
>    Affects Versions: 3.2.3.Final
>            Reporter: Brett Wooldridge
>            Assignee: Trustin Lee
>             Fix For: 3.2.4.Final
>
>
> In order for object deserialization (by the ObjectDecoder) to work in an OSGi environment
> Netty's OSGi MANIFEST.MF needs to include a header like:
> DynamicImport-Package: *
> Without this header, when the ObjectDecoder attempts to load the class for a serialized
> object, it will be unable to find the bundle that exports that package.  The result is a
> ClassNotFoundException.
> With this header in the manifest, the OSGi container will search for any bundle that
> exports the package containing the requested class, and will use that bundle's classloader
> to load the class.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the netty-dev mailing list