Re: Always serialize pages for debug purposes

2008-08-11 Thread James Carman
The only problem with having to look at the console is that sometimes
other logging can make that stuff fly by.  And, if you're not watching
it, it's not obvious there's a problem.  Perhaps a better solution
might be to check serializability using a unit test rather than by
exercising the pages manually.

On Mon, Aug 11, 2008 at 6:18 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> well, then check who removed them and ask them why they did that...
>
> personally i dont mind looking into the console, but thats just me...
>
> -igor
>
> On Mon, Aug 11, 2008 at 2:10 PM, James Carman
> <[EMAIL PROTECTED]> wrote:
>> But, it's in a separate thread, right?  So, you'll have to look for
>> error messages in a log file (or console window).  Would a more
>> drastic response (error in the browser) be more appropriate during
>> development?
>>
>> On Mon, Aug 11, 2008 at 11:34 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>>> with the default diskstore pages are always serialized...
>>>
>>> -igor
>>>
>>> On Mon, Aug 11, 2008 at 8:23 AM, Thomas Mäder <[EMAIL PROTECTED]> wrote:
 Ah bugger! That was most convenient! I'd be very much in favor of it's
 making a comeback

 Thomas

 On Mon, Aug 11, 2008 at 4:56 PM, Jonas <[EMAIL PROTECTED]> wrote:

> It seems this feature was removed, but there's some javadoc
> left in org.apache.wicket.settings.IDebugSettings:
> [quote]
> serializeSessionAttributes (defaults to true in development
> mode) - Causes the framework
>  * to serialize any attribute put into session - this helps find Not
> Serializable errors early
> [/quote]
>
> On Mon, Aug 11, 2008 at 3:30 PM, Thomas Mäder <[EMAIL PROTECTED]>
> wrote:
> > Yeah, but wasn't there "official" support for that? And if not, wouldn't
> > this be useful for debug?
> >
> > Thomas
> >
> > 2008/8/11 Uwe Schäfer <[EMAIL PROTECTED]>
> >
> >> Thomas Mäder schrieb:
> >>
> >>
> >>  I seem to remember that there was a way to force Wicket to always
> >>> serialize
> >>> pages on detach in order to make sure every page is serializable 
> >>> during
> >>> development. Can someone please point me to the FM so I can read it?
> >>> Searching Nabble & Google didn't turn up anything.
> >>>
> >>
> >> one guy once posted this one:
> >>
> >>
> >> 
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Always serialize pages for debug purposes

2008-08-11 Thread Igor Vaynberg
well, then check who removed them and ask them why they did that...

personally i dont mind looking into the console, but thats just me...

-igor

On Mon, Aug 11, 2008 at 2:10 PM, James Carman
<[EMAIL PROTECTED]> wrote:
> But, it's in a separate thread, right?  So, you'll have to look for
> error messages in a log file (or console window).  Would a more
> drastic response (error in the browser) be more appropriate during
> development?
>
> On Mon, Aug 11, 2008 at 11:34 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>> with the default diskstore pages are always serialized...
>>
>> -igor
>>
>> On Mon, Aug 11, 2008 at 8:23 AM, Thomas Mäder <[EMAIL PROTECTED]> wrote:
>>> Ah bugger! That was most convenient! I'd be very much in favor of it's
>>> making a comeback
>>>
>>> Thomas
>>>
>>> On Mon, Aug 11, 2008 at 4:56 PM, Jonas <[EMAIL PROTECTED]> wrote:
>>>
 It seems this feature was removed, but there's some javadoc
 left in org.apache.wicket.settings.IDebugSettings:
 [quote]
 serializeSessionAttributes (defaults to true in development
 mode) - Causes the framework
  * to serialize any attribute put into session - this helps find Not
 Serializable errors early
 [/quote]

 On Mon, Aug 11, 2008 at 3:30 PM, Thomas Mäder <[EMAIL PROTECTED]>
 wrote:
 > Yeah, but wasn't there "official" support for that? And if not, wouldn't
 > this be useful for debug?
 >
 > Thomas
 >
 > 2008/8/11 Uwe Schäfer <[EMAIL PROTECTED]>
 >
 >> Thomas Mäder schrieb:
 >>
 >>
 >>  I seem to remember that there was a way to force Wicket to always
 >>> serialize
 >>> pages on detach in order to make sure every page is serializable during
 >>> development. Can someone please point me to the FM so I can read it?
 >>> Searching Nabble & Google didn't turn up anything.
 >>>
 >>
 >> one guy once posted this one:
 >>
 >>
 >> 
 >

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Always serialize pages for debug purposes

2008-08-11 Thread James Carman
But, it's in a separate thread, right?  So, you'll have to look for
error messages in a log file (or console window).  Would a more
drastic response (error in the browser) be more appropriate during
development?

On Mon, Aug 11, 2008 at 11:34 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> with the default diskstore pages are always serialized...
>
> -igor
>
> On Mon, Aug 11, 2008 at 8:23 AM, Thomas Mäder <[EMAIL PROTECTED]> wrote:
>> Ah bugger! That was most convenient! I'd be very much in favor of it's
>> making a comeback
>>
>> Thomas
>>
>> On Mon, Aug 11, 2008 at 4:56 PM, Jonas <[EMAIL PROTECTED]> wrote:
>>
>>> It seems this feature was removed, but there's some javadoc
>>> left in org.apache.wicket.settings.IDebugSettings:
>>> [quote]
>>> serializeSessionAttributes (defaults to true in development
>>> mode) - Causes the framework
>>>  * to serialize any attribute put into session - this helps find Not
>>> Serializable errors early
>>> [/quote]
>>>
>>> On Mon, Aug 11, 2008 at 3:30 PM, Thomas Mäder <[EMAIL PROTECTED]>
>>> wrote:
>>> > Yeah, but wasn't there "official" support for that? And if not, wouldn't
>>> > this be useful for debug?
>>> >
>>> > Thomas
>>> >
>>> > 2008/8/11 Uwe Schäfer <[EMAIL PROTECTED]>
>>> >
>>> >> Thomas Mäder schrieb:
>>> >>
>>> >>
>>> >>  I seem to remember that there was a way to force Wicket to always
>>> >>> serialize
>>> >>> pages on detach in order to make sure every page is serializable during
>>> >>> development. Can someone please point me to the FM so I can read it?
>>> >>> Searching Nabble & Google didn't turn up anything.
>>> >>>
>>> >>
>>> >> one guy once posted this one:
>>> >>
>>> >>
>>> >> 
>>> >
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Always serialize pages for debug purposes

2008-08-11 Thread Igor Vaynberg
with the default diskstore pages are always serialized...

-igor

On Mon, Aug 11, 2008 at 8:23 AM, Thomas Mäder <[EMAIL PROTECTED]> wrote:
> Ah bugger! That was most convenient! I'd be very much in favor of it's
> making a comeback
>
> Thomas
>
> On Mon, Aug 11, 2008 at 4:56 PM, Jonas <[EMAIL PROTECTED]> wrote:
>
>> It seems this feature was removed, but there's some javadoc
>> left in org.apache.wicket.settings.IDebugSettings:
>> [quote]
>> serializeSessionAttributes (defaults to true in development
>> mode) - Causes the framework
>>  * to serialize any attribute put into session - this helps find Not
>> Serializable errors early
>> [/quote]
>>
>> On Mon, Aug 11, 2008 at 3:30 PM, Thomas Mäder <[EMAIL PROTECTED]>
>> wrote:
>> > Yeah, but wasn't there "official" support for that? And if not, wouldn't
>> > this be useful for debug?
>> >
>> > Thomas
>> >
>> > 2008/8/11 Uwe Schäfer <[EMAIL PROTECTED]>
>> >
>> >> Thomas Mäder schrieb:
>> >>
>> >>
>> >>  I seem to remember that there was a way to force Wicket to always
>> >>> serialize
>> >>> pages on detach in order to make sure every page is serializable during
>> >>> development. Can someone please point me to the FM so I can read it?
>> >>> Searching Nabble & Google didn't turn up anything.
>> >>>
>> >>
>> >> one guy once posted this one:
>> >>
>> >>
>> >> 
>> >
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Always serialize pages for debug purposes

2008-08-11 Thread Thomas Mäder
Ah bugger! That was most convenient! I'd be very much in favor of it's
making a comeback

Thomas

On Mon, Aug 11, 2008 at 4:56 PM, Jonas <[EMAIL PROTECTED]> wrote:

> It seems this feature was removed, but there's some javadoc
> left in org.apache.wicket.settings.IDebugSettings:
> [quote]
> serializeSessionAttributes (defaults to true in development
> mode) - Causes the framework
>  * to serialize any attribute put into session - this helps find Not
> Serializable errors early
> [/quote]
>
> On Mon, Aug 11, 2008 at 3:30 PM, Thomas Mäder <[EMAIL PROTECTED]>
> wrote:
> > Yeah, but wasn't there "official" support for that? And if not, wouldn't
> > this be useful for debug?
> >
> > Thomas
> >
> > 2008/8/11 Uwe Schäfer <[EMAIL PROTECTED]>
> >
> >> Thomas Mäder schrieb:
> >>
> >>
> >>  I seem to remember that there was a way to force Wicket to always
> >>> serialize
> >>> pages on detach in order to make sure every page is serializable during
> >>> development. Can someone please point me to the FM so I can read it?
> >>> Searching Nabble & Google didn't turn up anything.
> >>>
> >>
> >> one guy once posted this one:
> >>
> >>
> >> 
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Always serialize pages for debug purposes

2008-08-11 Thread Jonas
It seems this feature was removed, but there's some javadoc
left in org.apache.wicket.settings.IDebugSettings:
[quote]
serializeSessionAttributes (defaults to true in development
mode) - Causes the framework
 * to serialize any attribute put into session - this helps find Not
Serializable errors early
[/quote]

On Mon, Aug 11, 2008 at 3:30 PM, Thomas Mäder <[EMAIL PROTECTED]> wrote:
> Yeah, but wasn't there "official" support for that? And if not, wouldn't
> this be useful for debug?
>
> Thomas
>
> 2008/8/11 Uwe Schäfer <[EMAIL PROTECTED]>
>
>> Thomas Mäder schrieb:
>>
>>
>>  I seem to remember that there was a way to force Wicket to always
>>> serialize
>>> pages on detach in order to make sure every page is serializable during
>>> development. Can someone please point me to the FM so I can read it?
>>> Searching Nabble & Google didn't turn up anything.
>>>
>>
>> one guy once posted this one:
>>
>>
>> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Always serialize pages for debug purposes

2008-08-11 Thread Thomas Mäder
Yeah, but wasn't there "official" support for that? And if not, wouldn't
this be useful for debug?

Thomas

2008/8/11 Uwe Schäfer <[EMAIL PROTECTED]>

> Thomas Mäder schrieb:
>
>
>  I seem to remember that there was a way to force Wicket to always
>> serialize
>> pages on detach in order to make sure every page is serializable during
>> development. Can someone please point me to the FM so I can read it?
>> Searching Nabble & Google didn't turn up anything.
>>
>
> one guy once posted this one:
>
>
> 


Re: Always serialize pages for debug purposes

2008-08-11 Thread Uwe Schäfer

Thomas Mäder schrieb:


I seem to remember that there was a way to force Wicket to always serialize
pages on detach in order to make sure every page is serializable during
development. Can someone please point me to the FM so I can read it?
Searching Nabble & Google didn't turn up anything.


one guy once posted this one:

class PickyHttpSessionStore extends HttpSessionStore
{
/**
 * @param application
 */
public PickyHttpSessionStore(final Application application)
{
super(application);
}

@Override
public void setAttribute(final Request request, final String 
name, final Object value)

{
try
{
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutputStream stream = new ObjectOutputStream(baos);
stream.writeObject(value);
stream.close();

super.setAttribute(request, name, value);
}
catch (Throwable exception)
{
String s = "Unable to serialize value: " + 
value.toString();

System.err.println(s);
System.err.println(exception);
throw new RuntimeException(s, exception);
}

}
}

--

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://morningnews.thomas-daily.de für die 
kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages 
morgens um 9:00 in Ihrer Mailbox.


Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 
8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 
16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer 
Redaktion lautet [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Always serialize pages for debug purposes

2008-08-11 Thread Thomas Mäder
Hi Guys,

I seem to remember that there was a way to force Wicket to always serialize
pages on detach in order to make sure every page is serializable during
development. Can someone please point me to the FM so I can read it?
Searching Nabble & Google didn't turn up anything.

this is 1.3.3

Thomas