[jboss-user] [JBoss Seam] - ui:repeat shows only one item with high conversation state n
Basel
do-not-reply at jboss.com
Tue Sep 5 05:18:35 EDT 2006
Hello,
I have a ui:repeat tag in items.jsf that gets an ArrayList from a stateless session bean after performing a search based on a pattern entered by the user. This works just fine, however, when the conversation id goes up items.jsf shows only one item even though the database returns more than one item.
if you search for bindNamedParameters in the log below you will notice that the database returned 6 items. Also if you search for items.jsf_results_size you will find that the ArrayList that is returned to items.jsf has the 6 items.
server log (200 lines)
| [root at suikonix log]# clear && cat server.log | tail -n 200
| 2006-09-04 23:32:02,225 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
| 2006-09-04 23:32:02,226 DEBUG [org.jboss.seam.Component] instantiating Seam component: localeSelector
| 2006-09-04 23:32:02,226 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,226 DEBUG [org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener] committing transaction after phase: RESTORE_VIEW(1)
| 2006-09-04 23:32:02,226 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,227 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-09-04 23:32:02,227 DEBUG [org.jboss.seam.core.Manager] Found conversation id in request parameter: 4749
| 2006-09-04 23:32:02,227 DEBUG [org.jboss.seam.core.Manager] No stored conversation
| 2006-09-04 23:32:02,227 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: org.jboss.seam.core.init
| 2006-09-04 23:32:02,227 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.pageflow
| 2006-09-04 23:32:02,228 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] After restoring conversation context: ConversationContext(4760)
| 2006-09-04 23:32:02,228 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,228 DEBUG [org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener] beginning transaction prior to phase: RENDER_RESPONSE(6)
| 2006-09-04 23:32:02,228 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,229 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: itemService
| 2006-09-04 23:32:02,229 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.process
| 2006-09-04 23:32:02,229 DEBUG [org.jboss.seam.Component] instantiating Seam component: itemService
| 2006-09-04 23:32:02,229 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,229 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,230 DEBUG [org.jboss.seam.Component] instantiating Seam component: entityManager
| 2006-09-04 23:32:02,230 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,231 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4740836238258176
| 2006-09-04 23:32:02,231 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered
| 2006-09-04 23:32:02,231 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join
| 2006-09-04 23:32:02,231 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization
| 2006-09-04 23:32:02,231 DEBUG [org.jboss.seam.core.ManagedPersistenceContext] created seam managed persistence context for persistence unit: java:/categoryEntityManagerFactory
| 2006-09-04 23:32:02,231 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,231 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join
| 2006-09-04 23:32:02,231 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Transaction already joined
| 2006-09-04 23:32:02,232 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
| 2006-09-04 23:32:02,232 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection
| 2006-09-04 23:32:02,232 DEBUG [org.hibernate.SQL] select paperdetai0_.title as col_0_0_, paperdetai0_.paper_name as col_1_0_ from gs_paper_details paperdetai0_ where paperdetai0_.title like ? or paperdetai0_.tags like ? order by paperdetai0_.post_date desc limit ?
| 2006-09-04 23:32:02,233 DEBUG [org.hibernate.loader.hql.QueryLoader] bindNamedParameters() %nanami% -> pattern [1]
| 2006-09-04 23:32:02,233 DEBUG [org.hibernate.loader.hql.QueryLoader] bindNamedParameters() %nanami% -> pattern [2]
| 2006-09-04 23:32:02,235 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open ResultSet (open ResultSets: 0, globally: 0)
| 2006-09-04 23:32:02,235 DEBUG [org.hibernate.loader.Loader] result row:
| 2006-09-04 23:32:02,235 DEBUG [org.hibernate.loader.Loader] result row:
| 2006-09-04 23:32:02,235 DEBUG [org.hibernate.loader.Loader] result row:
| 2006-09-04 23:32:02,235 DEBUG [org.hibernate.loader.Loader] result row:
| 2006-09-04 23:32:02,235 DEBUG [org.hibernate.loader.Loader] result row:
| 2006-09-04 23:32:02,235 DEBUG [org.hibernate.loader.Loader] result row:
| 2006-09-04 23:32:02,235 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1)
| 2006-09-04 23:32:02,235 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
| 2006-09-04 23:32:02,236 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
| 2006-09-04 23:32:02,236 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
| 2006-09-04 23:32:02,236 DEBUG [org.hibernate.engine.StatefulPersistenceContext] initializing non-lazy collections
| 2006-09-04 23:32:02,236 DEBUG [org.jboss.seam.Component] instantiating Seam component: interpolator
| 2006-09-04 23:32:02,236 INFO [com.suikonix.action.ItemServiceBean] items.jsf_items_size[6]-page_size[8]-pattern[%nanami%]
| 2006-09-04 23:32:02,236 DEBUG [org.jboss.seam.Component] instantiating Seam component: interpolator
| 2006-09-04 23:32:02,237 INFO [com.suikonix.action.ItemServiceBean] items.jsf_results_size[6]-pattern[%nanami%]
| 2006-09-04 23:32:02,237 DEBUG [org.jboss.seam.interceptors.ConversationInterceptor] Beginning long-running conversation
| 2006-09-04 23:32:02,237 DEBUG [org.jboss.seam.Component] instantiating Seam component: conversation
| 2006-09-04 23:32:02,237 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,237 DEBUG [org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener] committing transaction after phase: INVOKE_APPLICATION(5)
| 2006-09-04 23:32:02,238 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,238 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered
| 2006-09-04 23:32:02,238 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,239 DEBUG [org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener] beginning transaction prior to phase: INVOKE_APPLICATION(5)
| 2006-09-04 23:32:02,239 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,239 DEBUG [org.jboss.seam.Component] instantiating Seam component: facesMessages
| 2006-09-04 23:32:02,242 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: param
| 2006-09-04 23:32:02,243 DEBUG [org.jboss.seam.Component] seam component not found: param
| 2006-09-04 23:32:02,243 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
| 2006-09-04 23:32:02,243 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: searchAction
| 2006-09-04 23:32:02,243 DEBUG [org.jboss.seam.Component] instantiating Seam component: searchAction
| 2006-09-04 23:32:02,243 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,261 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: searchAction
| 2006-09-04 23:32:02,262 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: searchAction
| 2006-09-04 23:32:02,262 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,275 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: searchAction
| 2006-09-04 23:32:02,275 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: searchAction
| 2006-09-04 23:32:02,275 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,303 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: currentUser
| 2006-09-04 23:32:02,304 DEBUG [org.jboss.seam.Component] instantiating Seam component: currentUser
| 2006-09-04 23:32:02,304 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,304 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: currentUser
| 2006-09-04 23:32:02,304 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: currentUser
| 2006-09-04 23:32:02,304 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,304 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: currentUser
| 2006-09-04 23:32:02,304 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: currentUser
| 2006-09-04 23:32:02,304 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,305 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: currentUser
| 2006-09-04 23:32:02,305 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: currentUser
| 2006-09-04 23:32:02,305 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,305 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: currentUser
| 2006-09-04 23:32:02,305 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: currentUser
| 2006-09-04 23:32:02,305 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,305 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: currentUser
| 2006-09-04 23:32:02,306 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: currentUser
| 2006-09-04 23:32:02,306 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,306 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: currentUser
| 2006-09-04 23:32:02,306 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: currentUser
| 2006-09-04 23:32:02,306 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,306 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: currentUser
| 2006-09-04 23:32:02,306 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: currentUser
| 2006-09-04 23:32:02,306 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,307 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: currentUser
| 2006-09-04 23:32:02,307 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: currentUser
| 2006-09-04 23:32:02,307 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,307 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: currentUser
| 2006-09-04 23:32:02,307 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: currentUser
| 2006-09-04 23:32:02,307 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,307 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: currentUser
| 2006-09-04 23:32:02,307 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: currentUser
| 2006-09-04 23:32:02,307 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,308 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: artworkList
| 2006-09-04 23:32:02,308 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: artworkList
| 2006-09-04 23:32:02,308 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,308 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: item
| 2006-09-04 23:32:02,308 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: item
| 2006-09-04 23:32:02,308 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,309 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: item
| 2006-09-04 23:32:02,309 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: item
| 2006-09-04 23:32:02,309 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,309 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: item
| 2006-09-04 23:32:02,309 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: item
| 2006-09-04 23:32:02,309 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,310 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: firstPage
| 2006-09-04 23:32:02,310 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: firstPage
| 2006-09-04 23:32:02,310 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,310 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: lastPage
| 2006-09-04 23:32:02,310 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: lastPage
| 2006-09-04 23:32:02,310 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,311 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: category
| 2006-09-04 23:32:02,312 DEBUG [org.jboss.seam.Component] instantiating Seam component: category
| 2006-09-04 23:32:02,312 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: entityManager
| 2006-09-04 23:32:02,312 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,313 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered
| 2006-09-04 23:32:02,313 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join
| 2006-09-04 23:32:02,313 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization
| 2006-09-04 23:32:02,313 DEBUG [org.hibernate.cache.StandardQueryCache] checking cached query results in region: org.hibernate.cache.StandardQueryCache
| 2006-09-04 23:32:02,313 DEBUG [org.hibernate.cache.StandardQueryCache] Checking query spaces for up-to-dateness: [gs_entry, gs_category]
| 2006-09-04 23:32:02,313 DEBUG [org.hibernate.cache.UpdateTimestampsCache] [gs_entry] last update timestamp: 4740207089582081, result set timestamp: 4740207155679232
| 2006-09-04 23:32:02,313 DEBUG [org.hibernate.cache.StandardQueryCache] returning cached query results
| 2006-09-04 23:32:02,313 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: com.suikonix.model.Category#1
| 2006-09-04 23:32:02,313 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache hit
| 2006-09-04 23:32:02,314 DEBUG [org.hibernate.engine.StatefulPersistenceContext] initializing non-lazy collections
| 2006-09-04 23:32:02,314 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
| 2006-09-04 23:32:02,316 DEBUG [org.jboss.seam.core.Manager] Storing conversation state: 4760
| 2006-09-04 23:32:02,316 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing page context
| 2006-09-04 23:32:02,326 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,327 DEBUG [org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener] committing transaction after phase: RENDER_RESPONSE(6)
| 2006-09-04 23:32:02,327 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:02,327 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] processing flush-time cascades
| 2006-09-04 23:32:02,328 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] dirty checking collections
| 2006-09-04 23:32:02,328 DEBUG [org.hibernate.engine.Collections] Collection found: [com.suikonix.model.Category.entries#1], was: [com.suikonix.model.Category.entries#1] (uninitialized)
| 2006-09-04 23:32:02,328 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
| 2006-09-04 23:32:02,328 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 (re)creations, 0 updates, 0 removals to 1 collections
| 2006-09-04 23:32:02,328 DEBUG [org.hibernate.pretty.Printer] listing entities:
| 2006-09-04 23:32:02,328 DEBUG [org.hibernate.pretty.Printer] com.suikonix.model.Category{locale=en_US, timezone=PST, description=Unique Collection of Suikoden Artworks, entries=<uninitialized>, name=Suikonix, id=1}
| 2006-09-04 23:32:02,328 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
| 2006-09-04 23:32:02,329 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Lifecycle] After render response, destroying contexts
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Contexts] destroying: lastPage
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Contexts] destroying: class org.apache.myfaces.shared_tomahawk.renderkit.html.util.JavascriptUtils.OLD_VIEW_ID
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Contexts] destroying: sp
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.apache.myfaces.application.jsp.JspStateManagerImpl.SERIALIZED_VIEW
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Contexts] destroying: searchAction
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.apache.myfaces.AddResourceFactory.CACHE_MAP_KEY
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Contexts] destroying: artworkList
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Contexts] destroying: pn
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Contexts] destroying: hasMore
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.apache.myfaces.component.html.util.ExtensionFilter.doFilterCalled
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Contexts] destroying: firstPage
| 2006-09-04 23:32:02,329 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.sun.facelets.legacy.ELCONTEXT
| 2006-09-04 23:32:02,330 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-09-04 23:32:02,330 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
| 2006-09-04 23:32:02,337 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-09-04 23:32:09,452 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin call
| 2006-09-04 23:32:09,452 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-09-04 23:32:09,453 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-09-04 23:32:09,453 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation context
| 2006-09-04 23:32:09,453 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-09-04 23:32:09,453 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End call
| 2006-09-04 23:32:09,453 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin call
| 2006-09-04 23:32:09,453 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-09-04 23:32:09,453 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-09-04 23:32:09,453 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation context
| 2006-09-04 23:32:09,453 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-09-04 23:32:09,453 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End call
| 2006-09-04 23:32:09,454 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin call
| 2006-09-04 23:32:09,454 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-09-04 23:32:09,454 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-09-04 23:32:09,454 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation context
| 2006-09-04 23:32:09,454 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-09-04 23:32:09,454 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End call
| 2006-09-04 23:32:09,454 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin call
| 2006-09-04 23:32:09,454 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-09-04 23:32:09,454 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-09-04 23:32:09,454 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation context
| 2006-09-04 23:32:09,454 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-09-04 23:32:09,454 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End call
| 2006-09-04 23:32:09,454 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin call
| 2006-09-04 23:32:09,455 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-09-04 23:32:09,455 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-09-04 23:32:09,455 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation context
| 2006-09-04 23:32:09,455 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-09-04 23:32:09,455 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End call
|
Here is the ui:repeate tag in items.jsf:
| <ui:repeat value="#{artworkList}" var="item">
| <h:outputLink value="paper.jsf" id="thumbLink">
| <h:graphicImage id="thumbImage"
| url="/thumbs/#{item.artwork}" alt="#{item.title}"/>
| <f:param name="id" value="#{item.artwork}"/>
| </h:outputLink>
| </ui:repeat>
|
Here is a trimmed version of the stateless session bean:
| @Name("itemService")
| @Stateless
| public class ItemServiceBean implements ItemService {
|
| @In(create=true, value="entityManager")
| private EntityManager em;
|
| @RequestParameter("sp")
| @Out(value="sp", required=false)
| private String searchPattern;
|
| @Out("artworkList")
| private List<ArtworkBean> results;
|
| @Logger
| private Log log;
|
| @Begin(join=true)
| public void setArtworks() {
|
| String selectQuery ="SELECT pd.title, pd.paperFileName " +
| "FROM gs_paper_details pd " +
| "WHERE pd.title like :pattern OR " +
| "pd.tags like :pattern " +
| "order by pd.postDate desc";
| List items = em.createQuery(selectQuery)
| .setParameter( "pattern", this.getSqlSearchPattern() )
| .setMaxResults(pageSize+1)
| .setFirstResult(pageSize * pageNumber)
| .getResultList();
|
| if(items.size() <= 0){
| FacesMessages.instance().add("No gallery items were" +
| " found.");
| results = new ArrayList<ArtworkBean>();
| return;
| }
| log.info("items.jsf_items_size[#0]-page_size[#1]-pattern[#2]",
| items.size(), pageSize, this.getSqlSearchPattern());
| results = new ArrayList<ArtworkBean>();
|
| if(items.size() > pageSize){
| Iterator it = items.subList(0, pageSize).iterator();
| while(it.hasNext()){
| Object[] item = (Object[])it.next();
| results.add(new ArtworkBean(item[0].toString(),
| item[1].toString()));
| }
| }else{
| Iterator it = items.iterator();
| while(it.hasNext()){
| Object[] item = (Object[])it.next();
| results.add(new ArtworkBean(item[0].toString(),
| item[1].toString()));
| }
| }
| log.info("items.jsf_results_size[#0]-pattern[#1]", results.size(),
| this.getSqlSearchPattern());
| }
|
| private String getSqlSearchPattern(){
| return searchPattern == null ? "" : '%' + searchPattern
| .toLowerCase()
| .replace('*', '%')
| .replace('?', '_') + '%';
| }
| }
|
I forgot to mention one important thing, this is all independent of time. It happens after two or three days and even on the same day. I recall redeploying the ear file in the morning and later in the afternoon the problem showed up again. Also, when I redeploy the ear without restarting JBoss everything goes back to normal.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969391#3969391
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969391
More information about the jboss-user
mailing list