You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Humeniuk (JIRA)" <ji...@apache.org> on 2011/08/02 23:14:27 UTC

[jira] [Created] (FELIX-3064) BundleEvent is not serializable even though it extends EventObject which implements Serializable

BundleEvent is not serializable even though it extends EventObject which implements Serializable
------------------------------------------------------------------------------------------------

                 Key: FELIX-3064
                 URL: https://issues.apache.org/jira/browse/FELIX-3064
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: framework-3.2.2
         Environment: Don't believe this is relavent but running on Linux (CentOS), Sun JVM 1.6.0.14
            Reporter: David Humeniuk


When attempting to serialize BundleEvent, it trips up on serializing BundleImpl which would figure to be a member of BundleEvent.  BundleImpl would either need to be serialiable or BundleEvent shouldn't try to serialize that actual member.

This causes a problem for me since I'm using the EventAdmin service to post events through RMI.  I would rather not have to put some ugly code that strips out things that say that are serialiable but really aren't.

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

        

[jira] [Closed] (FELIX-3064) BundleEvent is not serializable even though it extends EventObject which implements Serializable

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall closed FELIX-3064.
----------------------------------

    Resolution: Won't Fix

Closing this for now. Reopen if new information presents itself.

> BundleEvent is not serializable even though it extends EventObject which implements Serializable
> ------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3064
>                 URL: https://issues.apache.org/jira/browse/FELIX-3064
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.2.2
>         Environment: Don't believe this is relavent but running on Linux (CentOS), Sun JVM 1.6.0.14
>            Reporter: David Humeniuk
>
> When attempting to serialize BundleEvent, it trips up on serializing BundleImpl which would figure to be a member of BundleEvent.  BundleImpl would either need to be serialiable or BundleEvent shouldn't try to serialize that actual member.
> This causes a problem for me since I'm using the EventAdmin service to post events through RMI.  I would rather not have to put some ugly code that strips out things that say that are serialiable but really aren't.

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

        

[jira] [Commented] (FELIX-3064) BundleEvent is not serializable even though it extends EventObject which implements Serializable

Posted by "David Humeniuk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078712#comment-13078712 ] 

David Humeniuk commented on FELIX-3064:
---------------------------------------

That should do it.

Thanks.

> BundleEvent is not serializable even though it extends EventObject which implements Serializable
> ------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3064
>                 URL: https://issues.apache.org/jira/browse/FELIX-3064
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.2.2
>         Environment: Don't believe this is relavent but running on Linux (CentOS), Sun JVM 1.6.0.14
>            Reporter: David Humeniuk
>
> When attempting to serialize BundleEvent, it trips up on serializing BundleImpl which would figure to be a member of BundleEvent.  BundleImpl would either need to be serialiable or BundleEvent shouldn't try to serialize that actual member.
> This causes a problem for me since I'm using the EventAdmin service to post events through RMI.  I would rather not have to put some ugly code that strips out things that say that are serialiable but really aren't.

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

        

[jira] [Commented] (FELIX-3064) BundleEvent is not serializable even though it extends EventObject which implements Serializable

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078450#comment-13078450 ] 

Richard S. Hall commented on FELIX-3064:
----------------------------------------

I don't think BundleImpl should be serializable, since that doesn't really make much sense, but I'm willing to mark it as transient if BundleEvent if that will help. Sound good?

> BundleEvent is not serializable even though it extends EventObject which implements Serializable
> ------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3064
>                 URL: https://issues.apache.org/jira/browse/FELIX-3064
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.2.2
>         Environment: Don't believe this is relavent but running on Linux (CentOS), Sun JVM 1.6.0.14
>            Reporter: David Humeniuk
>
> When attempting to serialize BundleEvent, it trips up on serializing BundleImpl which would figure to be a member of BundleEvent.  BundleImpl would either need to be serialiable or BundleEvent shouldn't try to serialize that actual member.
> This causes a problem for me since I'm using the EventAdmin service to post events through RMI.  I would rather not have to put some ugly code that strips out things that say that are serialiable but really aren't.

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

        

[jira] [Commented] (FELIX-3064) BundleEvent is not serializable even though it extends EventObject which implements Serializable

Posted by "David Humeniuk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079325#comment-13079325 ] 

David Humeniuk commented on FELIX-3064:
---------------------------------------

If BundleEvent is not intended to be serializable then why does it extend EventObject which implements the Serializable interface?  By inherently implementing the Serializable interface it is in fact saying it is intended to be serializable (at least by the contract of that interface).  This contract should force all implementers to make sure the realized class is serializable.

> BundleEvent is not serializable even though it extends EventObject which implements Serializable
> ------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3064
>                 URL: https://issues.apache.org/jira/browse/FELIX-3064
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.2.2
>         Environment: Don't believe this is relavent but running on Linux (CentOS), Sun JVM 1.6.0.14
>            Reporter: David Humeniuk
>
> When attempting to serialize BundleEvent, it trips up on serializing BundleImpl which would figure to be a member of BundleEvent.  BundleImpl would either need to be serialiable or BundleEvent shouldn't try to serialize that actual member.
> This causes a problem for me since I'm using the EventAdmin service to post events through RMI.  I would rather not have to put some ugly code that strips out things that say that are serialiable but really aren't.

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

        

[jira] [Commented] (FELIX-3064) BundleEvent is not serializable even though it extends EventObject which implements Serializable

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078982#comment-13078982 ] 

Richard S. Hall commented on FELIX-3064:
----------------------------------------

Perhaps I spoke too soon. I guess I wasn't thinking, because BundeEvent is a concrete type that comes from the OSGi Alliance companion code. So, technically, I could modify the standard code and mark it as transient (in R4.3 there are actually two bundle objects referenced by the event now), but I'm not sure I want to do this. Talking it over with BJ Hargrave (OSGi CTO), he says that BundleEvent is not intended to be serializable and neither are any of the other events. Which means that you likely just have to live with it. Even if I decided to modify the standard BundleEvent class, other frameworks don't, so you'd end up being tied to the Felix framework implementation. In the end, it's probably better for you to deal with reality in this case, rather than try to avoid it. Given that, i'd be inclined to close this issue as "WON'T FIX".

> BundleEvent is not serializable even though it extends EventObject which implements Serializable
> ------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3064
>                 URL: https://issues.apache.org/jira/browse/FELIX-3064
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.2.2
>         Environment: Don't believe this is relavent but running on Linux (CentOS), Sun JVM 1.6.0.14
>            Reporter: David Humeniuk
>
> When attempting to serialize BundleEvent, it trips up on serializing BundleImpl which would figure to be a member of BundleEvent.  BundleImpl would either need to be serialiable or BundleEvent shouldn't try to serialize that actual member.
> This causes a problem for me since I'm using the EventAdmin service to post events through RMI.  I would rather not have to put some ugly code that strips out things that say that are serialiable but really aren't.

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

        

[jira] [Commented] (FELIX-3064) BundleEvent is not serializable even though it extends EventObject which implements Serializable

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079380#comment-13079380 ] 

Richard S. Hall commented on FELIX-3064:
----------------------------------------

Apparently it is a historical mistake, it shouldn't have inherited from EventObject. If you really want to complain about it, I'd suggest you do so on the osgi-dev mailing list, since that is where people are supposed to raise spec issues.

> BundleEvent is not serializable even though it extends EventObject which implements Serializable
> ------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3064
>                 URL: https://issues.apache.org/jira/browse/FELIX-3064
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.2.2
>         Environment: Don't believe this is relavent but running on Linux (CentOS), Sun JVM 1.6.0.14
>            Reporter: David Humeniuk
>
> When attempting to serialize BundleEvent, it trips up on serializing BundleImpl which would figure to be a member of BundleEvent.  BundleImpl would either need to be serialiable or BundleEvent shouldn't try to serialize that actual member.
> This causes a problem for me since I'm using the EventAdmin service to post events through RMI.  I would rather not have to put some ugly code that strips out things that say that are serialiable but really aren't.

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

        

[jira] [Commented] (FELIX-3064) BundleEvent is not serializable even though it extends EventObject which implements Serializable

Posted by "David Humeniuk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079414#comment-13079414 ] 

David Humeniuk commented on FELIX-3064:
---------------------------------------

I figured it was getting out of scope, I've sent something to the osgi-dev mailing list as you suggested.

> BundleEvent is not serializable even though it extends EventObject which implements Serializable
> ------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3064
>                 URL: https://issues.apache.org/jira/browse/FELIX-3064
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.2.2
>         Environment: Don't believe this is relavent but running on Linux (CentOS), Sun JVM 1.6.0.14
>            Reporter: David Humeniuk
>
> When attempting to serialize BundleEvent, it trips up on serializing BundleImpl which would figure to be a member of BundleEvent.  BundleImpl would either need to be serialiable or BundleEvent shouldn't try to serialize that actual member.
> This causes a problem for me since I'm using the EventAdmin service to post events through RMI.  I would rather not have to put some ugly code that strips out things that say that are serialiable but really aren't.

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