Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
- Logger object nulled after passivation

- Logger object nulled after passivation

2007-08-11       - By pdpantages

 Back
Hello forum:

Seam 1.2.1.GA,
Jboss 4.0.5

I have a problem with my Logger disappearing on me.

This seems to happen if I don't touch its containing component ( a SFSB ) for >
5 mins. The bean is passivated. When it is re-activated, the logger is null.

My scenario is this:

I have a long running conversation continaing two components, say bean1, bean2.

Both components are SFSB, Conversational, scope CONVERSATION.

The operator can move between two pages, within the same long runnig
conversation, to interact with one component or the other.

I have an ajax poll that touches the page's backing bean when the operator is
on the page.

The poll keeps the page up to date and keeps the conversation from timing out
if the operator doesn't touch it, as long as the browser or tab is not closed.

Each page polls its own bean but not the other pages's bean.

So, when the operator hangs around the second page for >5 minutes, bean1 is
passivated.

Thank when he returns to the fist page, bean1 is re-activated, and the first
ajax poll throws an NPE when it tries to print a log message.

This happens cases where I have a single conversation or use nested
conversations for the two pages involved.

I saw the commentary in
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=110879
which says that injected objects are not passivated as they are cleared after
invocation. Is hte @(protected) Log treated differently? It is non-null before
passivation (see below) but is cleared after.

My logger is injected with the usual:

 | @(protected)
 | private Log log;
 |

Some debug statements in bean1:

 | @(protected)
 | public void prePasivate()
 | {
 |     System.out.println("PDP prePasivate()");
 |     System.out.println("PDP log is " + log );
 | }
 |
 | @(protected)
 | public void postActive()
 | {
 |     System.out.println("PDP postActive()");
 |     System.out.println("PDP log is " + log );
 | }
 |

The output:
anonymous wrote :
 | PDP prePasivate()
 | PDP log is org.jboss.seam.log.LogImpl@(protected)
 | PDP postActive()
 | PDP log is null
 |

Any ideas would be appreciaed...

Thanks, PdP


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4073314#4073314

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4073314
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.