On Thursday, April 26, 2007, 8:46:08 PM, Igor [EMAIL PROTECTED] wrote:
and this is a problem only for things that are deployed into a SHARED
classpath.
no body (at least i hope not) is sharing wicket.jar between
multiple web applications. so there is no problem.
Well, I did have a look at
11:57 AM Please respond to
wicket-user@lists.sourceforge.net
To
wicket-user@lists.sourceforge.net cc
Subject
Re: [Wicket-user] SLF4J and wicket
btw, im using 1.3.0-incubating-SNAPSHOT
On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote:
Sure
Subject
Re: [Wicket-user] SLF4J and wicket
btw, im using 1.3.0-incubating-SNAPSHOT
On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote:
Sure!
ERROR org.apache.wicket.util.lang.Objects
Error serializing object class test.page.SignInPage[object
.
- Justin
*Bjön Limell [EMAIL PROTECTED]*
Sent by: [EMAIL PROTECTED]
04/25/2007 11:57 AM Please respond to
wicket-user@lists.sourceforge.net
To
wicket-user@lists.sourceforge.net cc
Subject
Re: [Wicket-user] SLF4J and wicket
.
- Justin
*Bjön Limell [EMAIL PROTECTED]*
Sent by: [EMAIL PROTECTED]
04/25/2007 11:57 AM Please respond to
wicket-user@lists.sourceforge.net
To
wicket-user@lists.sourceforge.net cc
Subject
Re: [Wicket-user
*Bjön Limell [EMAIL PROTECTED]*
Sent by: [EMAIL PROTECTED]
04/25/2007 11:57 AM Please respond to
wicket-user@lists.sourceforge.net
To
wicket-user@lists.sourceforge.net cc
Subject
Re: [Wicket-user
Please respond to
wicket-user@lists.sourceforge.net
To
wicket-user@lists.sourceforge.net cc
Subject
Re: [Wicket-user] SLF4J and wicket
btw, im using 1.3.0-incubating-SNAPSHOT
On 4/26/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
why not just make them static?
http://wiki.apache.org/jakarta-commons/Logging/StaticLog
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE
yeah yeah yeah.
and this is a problem only for things that are deployed into a SHARED
classpath.
no body (at least i hope not) is sharing wicket.jar between multiple web
applications. so there is no problem.
-igor
On 4/26/07, Johan Compagner [EMAIL PROTECTED] wrote:
On 4/26/07, Igor
why not just make them static?
Earlier this thread:
(me) I would prefer to either have log fields as static in components...
We were just discussing what people could do if they didn't want those
loggers as static variables. Personally, I have no problem with them being
static.
Eelco
what they would do is simple
they would do the lazylookup you showed, but instead of using a field they
would use the metadata store.
that way you get a non-static logger, and do not incur a memory footprint
hit.
-igor
On 4/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
why not just make
what they would do is simple
they would do the lazylookup you showed, but instead of using a field they
would use the metadata store.
that way you get a non-static logger, and do not incur a memory footprint
hit.
The memory foot print would still be there if you use the Component's meta
not really. you would remove the logger in ondetach. it isnt a permanent
footprint - that is it doesnt take up a slot in all subclasses.
-igor
On 4/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
what they would do is simple
they would do the lazylookup you showed, but instead of using a
on which class is it then bound?
we use private static loggers now so they are really bind to the class.
But if you are storing them in the meta data then they are not really bind
to the class but more the the resulting class/instance
so never Component itself. Don't know if that really matters
like i said in my previous response, ditto. for wicket private static is
fine.
-igor
On 4/26/07, Johan Compagner [EMAIL PROTECTED] wrote:
on which class is it then bound?
we use private static loggers now so they are really bind to the class.
But if you are storing them in the meta data then
@lists.sourceforge.net
To
wicket-user@lists.sourceforge.net
cc
Subject
Re: [Wicket-user] SLF4J and wicket
btw, im using 1.3.0-incubating-SNAPSHOT
On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote:
Sure!
ERROR org.apache.wicket.util.lang.Objects
Error serializing object class test.page.SignInPage
great, a neat way to make logging even cheaper...
instantiate all the time for each and every message :-)
It doesn't get instantiated every time. For instance Log4jLoggerFactory
creates one instance lazily and then does a map lookup. Of course, it is
still more expensive then just referring
Unless I am missing something, why not do it like this:
private transient Logger logger;
private Logger getLogger()
{
if (logger == null) {
logger = LoggerFactory.getLogger(Foo.class);
}
}
public void myMethod()
{
...
getLogger().debug(Something here);
}
On Thu,
because if we put that into Component for example, all components will have
a logger take up a memory slot
-igor
On 4/26/07, Philip A. Chapman [EMAIL PROTECTED] wrote:
Unless I am missing something, why not do it like this:
private transient Logger logger;
private Logger getLogger()
{
Hi.
Anyone had success with slf4j and wicket pages?
Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar:
org.apache.wicket.util.io.WicketSerializeableException: No
Serializable constructor found for class
org.apache.commons.logging.impl.SLF4JLocationAwareLog
At the moment I
It might be a bug in our custom serialization. Could you please paste
the full stack trace please?
Eelco
On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote:
Hi.
Anyone had success with slf4j and wicket pages?
Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar:
Sure!
ERROR org.apache.wicket.util.lang.Objects
Error serializing object class test.page.SignInPage [object=[Page
class = test.page.SignInPage, id = 1, version = 0]]
org.apache.wicket.util.io.WicketSerializeableException: No
Serializable constructor found for class
btw, im using 1.3.0-incubating-SNAPSHOT
On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote:
Sure!
ERROR org.apache.wicket.util.lang.Objects
Error serializing object class test.page.SignInPage [object=[Page
class = test.page.SignInPage, id = 1, version = 0]]
Could you try to suggestion in the error message to put:
Objects.setObjectStreamFactory(new
IObjectStreamFactory.DefaultObjectStreamFactory())
in your Application's init method and see if all works ok then?
Meanwhile, I hope Johan notes this error and takes a look.
Eelco
On 4/25/07, Bjön
Why would you want to serializable a log?!
-Matej
On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote:
Hi.
Anyone had success with slf4j and wicket pages?
Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar:
org.apache.wicket.util.io.WicketSerializeableException: No
On 4/25/07, Matej Knopp [EMAIL PROTECTED] wrote:
Why would you want to serializable a log?!
Isn't the recommendation of one of the logging guru's to not make the
loggers static, but just members or local vars? If you make them
non-static members, they'll get serialized.
Martijn
--
Learn Wicket
Yeah, I would prefer to either have log fields as static in components
or get them just in time rather than keeping references to them.
Keeping references in instances kind of combines the worst of both.
Eelco
On 4/25/07, Peter Ertl [EMAIL PROTECTED] wrote:
looks like the logging guru is wrong
Thats what i have heard too. At least JCL isnt thread-safe. Dont
really know about slf4j
On 4/25/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
On 4/25/07, Matej Knopp [EMAIL PROTECTED] wrote:
Why would you want to serializable a log?!
Isn't the recommendation of one of the logging guru's to
by: [EMAIL PROTECTED]
04/25/2007 11:57 AM
Please respond to
wicket-user@lists.sourceforge.net
To
wicket-user@lists.sourceforge.net
cc
Subject
Re: [Wicket-user] SLF4J and wicket
btw, im using 1.3.0-incubating-SNAPSHOT
On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote:
Sure!
ERROR
.
- Justin
*Bjön Limell [EMAIL PROTECTED]*
Sent by: [EMAIL PROTECTED]
04/25/2007 11:57 AM Please respond to
wicket-user@lists.sourceforge.net
To
wicket-user@lists.sourceforge.net cc
Subject
Re: [Wicket-user] SLF4J and wicket
btw, im using 1.3.0-incubating-SNAPSHOT
On 4/25/07, Bjön
is the Log4J (v1.2) logging system. So far I
really like slf4j, BTW.
- Justin
*Bjön Limell [EMAIL PROTECTED]*
Sent by: [EMAIL PROTECTED]
04/25/2007 11:57 AM Please respond to
wicket-user@lists.sourceforge.net
To
wicket-user@lists.sourceforge.net cc
Subject
Re: [Wicket-user] SLF4J
To
wicket-user@lists.sourceforge.net cc
Subject
Re: [Wicket-user] SLF4J and wicket
btw, im using 1.3.0-incubating-SNAPSHOT
On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote:
Sure!
ERROR org.apache.wicket.util.lang.Objects
Error serializing object class
respond to
wicket-user@lists.sourceforge.net
To
wicket-user@lists.sourceforge.net cc
Subject
Re: [Wicket-user] SLF4J and wicket
btw, im using 1.3.0-incubating-SNAPSHOT
On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote:
Sure!
ERROR
cc
Subject
Re: [Wicket-user] SLF4J and wicket
btw, im using 1.3.0-incubating-SNAPSHOT
On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote:
Sure!
ERROR org.apache.wicket.util.lang.Objects
Error serializing object class test.page.SignInPage [object=[Page
class
@lists.sourceforge.net
To
wicket-user@lists.sourceforge.net cc
Subject
Re: [Wicket-user] SLF4J and wicket
btw, im using 1.3.0-incubating-SNAPSHOT
On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote:
Sure!
ERROR
35 matches
Mail list logo