[Wicket-user] wicket.response.StringResponse not serializable (Wicket 2)

2006-10-05 Thread Jan Vermeulen
I changed the sessionStore of my application (using Wicket 2) to be 
'wicket.protocol.http.HttpSessionStore' i.s.o. 
'wicket.protocol.http.SecondLevelCacheSessionStore'  (because I use 
methods in the AccessStackPageMap that are not supported in the pageMap 
of SecondLevelCacheSessionStore).

When saving my first page in the HTTPSession, HttpSessionStore tries to 
serialize it and throws the following exception:

Caused by: java.io.NotSerializableException: wicket.response.StringResponse
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeArray(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at 
wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:60)
... 26 more

Is this a bug in Wicket ? Should StringResponse implement Serializable ?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket.response.StringResponse not serializable (Wicket 2)

2006-10-05 Thread Johan Compagner
i fixed this The test code first detaches the page nowAnd i made that variable transient in the htmlheader container.johanOn 10/4/06, Jan Vermeulen
 [EMAIL PROTECTED] wrote:
I changed the sessionStore of my application (using Wicket 2) to be'wicket.protocol.http.HttpSessionStore' i.s.o.'wicket.protocol.http.SecondLevelCacheSessionStore'(because I usemethods in the AccessStackPageMap that are not supported in the pageMap
of SecondLevelCacheSessionStore).When saving my first page in the HTTPSession, HttpSessionStore tries toserialize it and throws the following exception:Caused by: java.io.NotSerializableException: 
wicket.response.StringResponseat java.io.ObjectOutputStream.writeObject0(Unknown Source)at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)at java.io.ObjectOutputStream.writeSerialData
(Unknown Source)at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)at java.io.ObjectOutputStream.writeObject0(Unknown Source)at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)at java.io.ObjectOutputStream.writeObject0(Unknown Source)at java.io.ObjectOutputStream.writeArray
(Unknown Source)at java.io.ObjectOutputStream.writeObject0(Unknown Source)at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)at java.io.ObjectOutputStream.writeObject0(Unknown Source)at java.io.ObjectOutputStream.writeObject(Unknown Source)atwicket.protocol.http.HttpSessionStore.setAttribute
(HttpSessionStore.java:60)... 26 moreIs this a bug in Wicket ? Should StringResponse implement Serializable ?-Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user