[JBoss Seam] - ui:repeat shows only one item with high conversation state n
by Basel
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@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
19 years, 7 months
[Clustering/JBoss] - ejb proxies only contain nodes at deploy time
by bugumala
Hi all!
We're using JBoss-4.0.4.GA on two machines in a cluster. The ejb proxies and proxyfactory seems to contain only the nodes available to the machine at deploy time. An example:
I let Server1 start completely, then I start Server2. Starting the client (Java WS) from Server2 works perfect. When I start the client from Server1 the ejb's proxies only know of Server1's ejbs.
The simple solution is to always use Server2 to start the client but here comes the real problem. When Server1 dies the proxies are not updated with the cluster config and the client keeps calling the dead server. Only after a timeout the call is sent further to Server2 which makes the client extremely slow. Not even a client restart solves the problem.
Our solution now is to automatically redeploy Server2, then the client gets the new cluster config even without restarting the clients during the deploy.
What is missing?
/Jon Lennersten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969389#3969389
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969389
19 years, 7 months
[JBoss Eclipse IDE (users)] - jbpm 3.1.1 deploying problem
by sentinellid
Hi to everyone,
I'm new to java, web application and workflow (i've passed my last 10 years with ANSI C) and I wanted to (they asked me to...) create a simple demo with JBPM.
I've downloaded the starter kit and jboss ide 1.6.
I've created a simple workflow and deployed it : everything ok.
I created MyActionHandler class and linked it to a node (configuration type field)
The class was created in com.example package.
When I try to deploy it :
10:18:39,796 ERROR [[UploadServlet]] Servlet.service() for servlet UploadServlet threw exception
org.jbpm.jpdl.JpdlException:
[ERROR] line 29: cvc-complex-type.2.4.a: Invalid content was found starting with element 'action'. One of '{"urn:jbpm.org:jpdl-3.1":event, "urn:jbpm.org:jpdl-3.1":exception-handler,g:jpdl-3.1":transition}' is expected.]
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream org.jbpm.webapp.servlet.UploadServlet.doDeployment
...
the processdefinition.xml says :
<action class="com.sample.MyActionHandler"></action>
| with the tag <action> with underscore font.
I think it's a "path/classpath/wheretoput/wheretotake" problem, isn't it?
Thanx in advance.
Dan.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969388#3969388
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969388
19 years, 7 months
[JBoss Seam] - Re: Invitation to try new Seam authentication features
by msteiner
"sbryzak2" wrote :
| The security API doesn't do anything specifically with transactions. Is this problem happening in your AuthenticationProvider?
|
No.
I think I know where is the problem. It may be connected with my problems with seam security when debug is turned on.
One of security components throws:
org.jboss.seam.security.AuthenticationException: No Authentication could be created, make sure the Component exists in session scope
Later this exception is swallowed but first is catched by RollbackInterceptor
catch (Exception e)
| {
| //Any exception that propagates out of a JavaBean component
| //causes a transaction rollback
| if ( component.getType()==ComponentType.JAVA_BEAN )
| {
| try
| {
| Transactions.setUserTransactionRollbackOnly();
| }
| catch (Exception te) {} //swallow
| }
| throw e;
| }
| }
So transtaction is marked to rollback this makes SeamPhaseListener to create message: Transaction failed
here is code from SeamPhaseListener
else if ( event.getPhaseId() == INVOKE_APPLICATION )
| {
| try
| {
| if ( Transactions.isTransactionAvailableAndMarkedRollback() )
| {
| FacesMessages.instance().addFromResourceBundle(
| FacesMessage.SEVERITY_WARN,
| "org.jboss.seam.TransactionFailed",
| "Transaction failed"
| );
| }
| }
| catch (Exception e) {} //swallow silently, not important
| }
|
Set breakpoint in RollbackInterceptor at line 63
Transactions.setUserTransactionRollbackOnly();
And open page http://localhost:8080/seam-security/home.seam
During one request RollbackInterceptor is called two times: one with AuthenticationException and one with NullPointerException. Is this ok ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969386#3969386
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969386
19 years, 7 months