commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Germuska (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CHAIN-12) [chain] ContextBase throws NotSerializable exception for PropertyDescriptor
Date Thu, 25 May 2006 13:16:30 GMT
    [ http://issues.apache.org/jira/browse/CHAIN-12?page=comments#action_12413249 ] 

Joe Germuska commented on CHAIN-12:
-----------------------------------

I agree that it just moves the problem along, but it seems to me that moving it along is the
appropriate response.  You can't remove "Serializable" (especially not as long as ContextBase
extends HashMap) so you need to leave the responsibility for the wrinkles to users of the
library.

What else could be done?



> [chain] ContextBase throws NotSerializable exception for PropertyDescriptor
> ---------------------------------------------------------------------------
>
>          Key: CHAIN-12
>          URL: http://issues.apache.org/jira/browse/CHAIN-12
>      Project: Commons Chain
>         Type: Bug

>     Versions: 1.0 Final
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Jeff Ramsdale

>
> It seems ContextBase is intended to be serializable (
> http://jakarta.apache.org/commons/chain/apidocs/serialized-form.html &
> http://marc.10east.com/?l=jakarta-commons-user&m=111323289317819&w=2 ), but an
> attempt to serialize a simple subclass throws the following:
> java.io.NotSerializableException: java.beans.PropertyDescriptor
> 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
> 	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
> 	at java.util.HashMap.writeObject(HashMap.java:978)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)
> 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
> 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
> 	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
> 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
> 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
> 	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
> 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
> 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
> 	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
> 	at
> net.sourceforge.cruisecontrol.ProjectTest.testDeserialization(ProjectTest.java:371)
> <snip />

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message