JBoss EAP 4.3 CP02, Seam 2.0.2-FP app using the following version of Hibernate EntityManager:
hibernate-entitymanager.jar
Implementation-Title: Hibernate EntityManager
Implementation-Version: 3.3.2.GA
hibernate3.jar
Specification-Version: 4.3.0.GA_CP02
Hibernate-Version: 3.2.4.sp1.cp04
Implementation-Version: 3.2.4.sp1.cp04
In the following method, the first JPQL query executes ok and returns a resultset via getResultList() method. The 2nd one is the problem.
Code:
private void getSiteId()
{
//testing
List<ApplicationUser> applicationUserList = entityManager.createQuery("select au "+
"from ApplicationUser au "+
"where au.userName = '" + domainAndUsername +"'")
.getResultList();
log.info("applicationUserList.size() + applicationUserList.size()");
//end testing
List userViewList = entityManager.createQuery("select uv from UserView uv where uv.id.networkId = :networkId")
.setParameter("networkId", domainAndUsername)
.getResultList();
if (userViewList != null && userViewList.size() > 0)
{
UserView uv = (UserView)userViewList.get(0);
UserViewId id = uv.getId();
Long siteId = id.getSiteId();
Short siteIdShort = siteId.shortValue();
}
}
In the 2nd query, UserView is a view defined as follows in MSSQL 2005:
Code:
Create VIEW [dbo].[UserView]
AS
Select
U.UserID, U.BillingID, U.EmployeeID, U.EmployeeID_Char, U.SharepointID, U.NetworkID,
U.PhoneSwitchID, U.NetworkLogin, U.FirstName, U.Middle, U.LastName, U.Title, U.DepartmentID,
U.LocationID, U.SiteID, U.ReportToID, U.Phone, U.Mobile, U.Email, U.SalesID, U.BillingLogin,
U.PhoneLogin, U.SubmittedDate, U.IsActive, U.IsManual, U.EffDate, U.Status, U.HierarchyPath,
U.HierarchyLevel, U.FLSAStatus, U.ReviewDate, U.HireDate, U.ServiceDate, U.DEPTID, U.DESCR
From corg0dv01.CoxIM.dbo.u_tbUser_v21 U
The Hibernate native sql that is generated for the UserView query executes fine in query analyzer with the param and returns one row as expected.
The one thing I noticed in the stack trace that's different b/n the two queries is the following:
1st query:
Code:
2009-04-03 14:02:37,528 DEBUG [org.hibernate.loader.Loader] result row: EntityKey[com.cox.bets.entity.ApplicationUser#1]
2nd query:
Code:
2009-04-03 14:03:31,778 DEBUG [org.hibernate.loader.Loader] result row: null
Plz explain why I am getting a NPE b/c userViewList is null. Why is userViewList null? When I run the native query with the same param, I get a result in MSSQL.This is very confusing as there is no Hibernate or SQLServer exception in the stack trace in the server.log. thx.
Code:
2009-04-03 14:02:37,528 INFO [com.cox.bets.utils.ProfilingInterceptor] *** Entering method: searchSerialNumber
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.query.QueryPlanCache] located HQL query plan in cache (select au from ApplicationUser au where au.userName = 'CORP\asookazi')
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.query.QueryPlanCache] located HQL query plan in cache (select au from ApplicationUser au where au.userName = 'CORP\asookazi')
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.query.HQLQueryPlan] find: select au from ApplicationUser au where au.userName = 'CORP\asookazi'
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.QueryParameters] named parameters: {}
2009-04-03 14:02:37,528 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
2009-04-03 14:02:37,528 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection
2009-04-03 14:02:37,528 DEBUG [org.hibernate.SQL]
select
applicatio0_.UserID as UserID117_,
applicatio0_.AddedDate as AddedDate117_,
applicatio0_.AddedByUserID as AddedByU7_117_,
applicatio0_.UpdatedByUserID as UpdatedB8_117_,
applicatio0_.IsActive as IsActive117_,
applicatio0_.RemoteIMKeyID as RemoteIM4_117_,
applicatio0_.UpdatedDate as UpdatedD5_117_,
applicatio0_.UserName as UserName117_
from
boBETS.dbo.ApplicationUser applicatio0_
where
applicatio0_.UserName='CORP\asookazi'
2009-04-03 14:02:37,528 INFO [STDOUT] Hibernate:
select
applicatio0_.UserID as UserID117_,
applicatio0_.AddedDate as AddedDate117_,
applicatio0_.AddedByUserID as AddedByU7_117_,
applicatio0_.UpdatedByUserID as UpdatedB8_117_,
applicatio0_.IsActive as IsActive117_,
applicatio0_.RemoteIMKeyID as RemoteIM4_117_,
applicatio0_.UpdatedDate as UpdatedD5_117_,
applicatio0_.UserName as UserName117_
from
boBETS.dbo.ApplicationUser applicatio0_
where
applicatio0_.UserName='CORP\asookazi'
2009-04-03 14:02:37,528 TRACE [org.hibernate.jdbc.AbstractBatcher] preparing statement
2009-04-03 14:02:37,528 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open ResultSet (open ResultSets: 0, globally: 0)
2009-04-03 14:02:37,528 TRACE [org.hibernate.loader.Loader] processing result set
2009-04-03 14:02:37,528 DEBUG [org.hibernate.loader.Loader] result set row: 0
2009-04-03 14:02:37,528 TRACE [org.hibernate.type.IntegerType] returning '1' as column: UserID117_
2009-04-03 14:02:37,528 DEBUG [org.hibernate.loader.Loader] result row: EntityKey[com.cox.bets.entity.ApplicationUser#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.loader.Loader] Initializing object from ResultSet: [com.cox.bets.entity.ApplicationUser#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.persister.entity.AbstractEntityPersister] Hydrating entity: [com.cox.bets.entity.ApplicationUser#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.type.TimestampType] returning '2008-11-06 13:29:38' as column: AddedDate117_
2009-04-03 14:02:37,528 TRACE [org.hibernate.type.IntegerType] returning '1' as column: AddedByU7_117_
2009-04-03 14:02:37,528 TRACE [org.hibernate.type.IntegerType] returning '1' as column: UpdatedB8_117_
2009-04-03 14:02:37,528 TRACE [org.hibernate.type.BooleanType] returning 'true' as column: IsActive117_
2009-04-03 14:02:37,528 TRACE [org.hibernate.type.IntegerType] returning '1' as column: RemoteIM4_117_
2009-04-03 14:02:37,528 TRACE [org.hibernate.type.TimestampType] returning '2008-11-06 13:29:38' as column: UpdatedD5_117_
2009-04-03 14:02:37,528 TRACE [org.hibernate.type.StringType] returning 'corp\asookazi' as column: UserName117_
2009-04-03 14:02:37,528 TRACE [org.hibernate.loader.Loader] done processing result set (1 rows)
2009-04-03 14:02:37,528 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1)
2009-04-03 14:02:37,528 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
2009-04-03 14:02:37,528 TRACE [org.hibernate.jdbc.AbstractBatcher] closing statement
2009-04-03 14:02:37,528 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
2009-04-03 14:02:37,528 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
2009-04-03 14:02:37,528 TRACE [org.hibernate.loader.Loader] total objects hydrated: 1
2009-04-03 14:02:37,528 DEBUG [org.hibernate.engine.TwoPhaseLoad] resolving associations for [com.cox.bets.entity.ApplicationUser#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationRolesForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationRolesForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSettingChangeLogsForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSettingChangeLogsForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSettingValuesForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSettingValuesForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSettingsForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSettingsForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSiteUserRolesForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSiteUserRolesForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSiteUserRolesForUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSiteUsersForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSiteUsersForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSiteUsersForUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSitesForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationSitesForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.event.def.DefaultLoadEventListener] loading entity: [com.cox.bets.entity.ApplicationUser#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.event.def.DefaultLoadEventListener] entity found in session cache
2009-04-03 14:02:37,528 TRACE [org.hibernate.event.def.DefaultLoadEventListener] loading entity: [com.cox.bets.entity.ApplicationUser#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.event.def.DefaultLoadEventListener] entity found in session cache
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationUsersForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.applicationUsersForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.dropDownParamMetaDatasForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.dropDownParamMetaDatasForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.dropDownValueHierarchiesForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.dropDownValueHierarchiesForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.dropDownValueParamsForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.dropDownValueParamsForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.dropDownValuesForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.dropDownValuesForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.dropDownsForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.dropDownsForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.equipmentRepairCostsForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.equipmentRepairCostsForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.equipmentRepairFindingCodesForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.equipmentRepairFindingCodesForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.equipmentRepairProblemCodesForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.equipmentRepairProblemCodesForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.equipmentRepairsForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.equipmentRepairsForUpdatedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.equipmentsForAddedByUserId#1]
2009-04-03 14:02:37,528 TRACE [org.hibernate.engine.loading.LoadContexts] creating collection wrapper:[com.cox.bets.entity.ApplicationUser.equipmentsForUpdatedByUserId#1]
2009-04-03 14:02:37,528 DEBUG [org.hibernate.engine.TwoPhaseLoad] done materializing entity [com.cox.bets.entity.ApplicationUser#1]
2009-04-03 14:02:37,528 DEBUG [org.hibernate.engine.StatefulPersistenceContext] initializing non-lazy collections
2009-04-03 14:02:37,528 TRACE [org.hibernate.jdbc.JDBCContext] after autocommit
2009-04-03 14:02:37,528 TRACE [org.hibernate.impl.SessionImpl] after transaction completion
2009-04-03 14:03:04,388 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.interpolator
2009-04-03 14:03:04,388 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.interpolator
2009-04-03 14:03:04,388 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.interpolator
2009-04-03 14:03:04,388 INFO [com.cox.bets.session.ManageEquipmentAction] applicationUserList.size() + applicationUserList.size()
2009-04-03 14:03:09,934 TRACE [org.hibernate.engine.query.QueryPlanCache] unable to locate HQL query plan in cache; generating (select uv from UserView uv where uv.id.networkId = :networkId)
2009-04-03 14:03:09,966 DEBUG [org.hibernate.hql.ast.QueryTranslatorImpl] parse() - HQL: select uv from com.cox.bets.entity.UserView uv where uv.id.networkId = :networkId
2009-04-03 14:03:10,028 DEBUG [org.hibernate.hql.ast.AST] --- HQL AST ---
\-[QUERY] 'query'
+-[SELECT_FROM] 'SELECT_FROM'
| +-[FROM] 'from'
| | \-[RANGE] 'RANGE'
| | +-[DOT] '.'
| | | +-[DOT] '.'
| | | | +-[DOT] '.'
| | | | | +-[DOT] '.'
| | | | | | +-[IDENT] 'com'
| | | | | | \-[IDENT] 'cox'
| | | | | \-[IDENT] 'bets'
| | | | \-[IDENT] 'entity'
| | | \-[IDENT] 'UserView'
| | \-[ALIAS] 'uv'
| \-[SELECT] 'select'
| \-[IDENT] 'uv'
\-[WHERE] 'where'
\-[EQ] '='
+-[DOT] '.'
| +-[DOT] '.'
| | +-[IDENT] 'uv'
| | \-[IDENT] 'id'
| \-[IDENT] 'networkId'
\-[COLON] ':'
\-[IDENT] 'networkId'
2009-04-03 14:03:10,028 DEBUG [org.hibernate.hql.ast.ErrorCounter] throwQueryException() : no errors
2009-04-03 14:03:10,028 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] select << begin [level=1, statement=select]
2009-04-03 14:03:10,044 DEBUG [org.hibernate.hql.ast.tree.FromElement] FromClause{level=1} : com.cox.bets.entity.UserView (uv) -> userview0_
2009-04-03 14:03:10,044 DEBUG [org.hibernate.hql.ast.tree.FromReferenceNode] Resolved : uv -> (userview0_.BillingID, userview0_.BillingLogin, userview0_.DepartmentID, userview0_.DEPTID, userview0_.DESCR, userview0_.EffDate, userview0_.Email, userview0_.EmployeeID, userview0_.EmployeeID_Char, userview0_.FirstName, userview0_.FLSAStatus, userview0_.HierarchyLevel, userview0_.HierarchyPath, userview0_.HireDate, userview0_.IsActive, userview0_.IsManual, userview0_.LastName, userview0_.LocationID, userview0_.Middle, userview0_.Mobile, userview0_.NetworkID, userview0_.NetworkLogin, userview0_.Phone, userview0_.PhoneLogin, userview0_.PhoneSwitchID, userview0_.ReportToID, userview0_.ReviewDate, userview0_.SalesID, userview0_.ServiceDate, userview0_.SharepointID, userview0_.SiteID, userview0_.Status, userview0_.SubmittedDate, userview0_.Title, userview0_.UserID)
2009-04-03 14:03:10,044 DEBUG [org.hibernate.hql.ast.tree.FromReferenceNode] Resolved : uv -> (userview0_.BillingID, userview0_.BillingLogin, userview0_.DepartmentID, userview0_.DEPTID, userview0_.DESCR, userview0_.EffDate, userview0_.Email, userview0_.EmployeeID, userview0_.EmployeeID_Char, userview0_.FirstName, userview0_.FLSAStatus, userview0_.HierarchyLevel, userview0_.HierarchyPath, userview0_.HireDate, userview0_.IsActive, userview0_.IsManual, userview0_.LastName, userview0_.LocationID, userview0_.Middle, userview0_.Mobile, userview0_.NetworkID, userview0_.NetworkLogin, userview0_.Phone, userview0_.PhoneLogin, userview0_.PhoneSwitchID, userview0_.ReportToID, userview0_.ReviewDate, userview0_.SalesID, userview0_.ServiceDate, userview0_.SharepointID, userview0_.SiteID, userview0_.Status, userview0_.SubmittedDate, userview0_.Title, userview0_.UserID)
2009-04-03 14:03:10,044 TRACE [org.hibernate.hql.ast.tree.FromElement] handling property dereference [com.cox.bets.entity.UserView (uv) -> id (class)]
2009-04-03 14:03:10,044 DEBUG [org.hibernate.hql.ast.tree.DotNode] getDataType() : id -> org.hibernate.type.ComponentType@8064a9
2009-04-03 14:03:10,044 DEBUG [org.hibernate.hql.ast.tree.DotNode] Unresolved property path is now 'id.networkId'
2009-04-03 14:03:10,044 DEBUG [org.hibernate.hql.ast.tree.FromReferenceNode] Resolved : uv.id -> userview0_.NetworkID
2009-04-03 14:03:10,044 DEBUG [org.hibernate.hql.ast.tree.DotNode] getDataType() : id.networkId -> org.hibernate.type.StringType@167e86a
2009-04-03 14:03:10,044 DEBUG [org.hibernate.hql.ast.tree.FromReferenceNode] Resolved : uv.id.networkId -> userview0_.NetworkID
2009-04-03 14:03:10,044 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] select : finishing up [level=1, statement=select]
2009-04-03 14:03:10,059 DEBUG [org.hibernate.hql.ast.HqlSqlWalker] processQuery() : ( SELECT ( {select clause} (userview0_.BillingID, userview0_.BillingLogin, userview0_.DepartmentID, userview0_.DEPTID, userview0_.DESCR, userview0_.EffDate, userview0_.Email, userview0_.EmployeeID, userview0_.EmployeeID_Char, userview0_.FirstName, userview0_.FLSAStatus, userview0_.HierarchyLevel, userview0_.HierarchyPath, userview0_.HireDate, userview0_.IsActive, userview0_.IsManual, userview0_.LastName, userview0_.LocationID, userview0_.Middle, userview0_.Mobile, userview0_.NetworkID, userview0_.NetworkLogin, userview0_.Phone, userview0_.PhoneLogin, userview0_.PhoneSwitchID, userview0_.ReportToID, userview0_.ReviewDate, userview0_.SalesID, userview0_.ServiceDate, userview0_.SharepointID, userview0_.SiteID, userview0_.Status, userview0_.SubmittedDate, userview0_.Title, userview0_.UserID) ) ( FromClause{level=1} boBETS.dbo.UserView userview0_ ) ( where ( = ( userview0_.NetworkID ( userview0_.NetworkID (userview0_.BillingID, userview0_.BillingLogin, userview0_.DepartmentID, userview0_.DEPTID, userview0_.DESCR, userview0_.EffDate, userview0_.Email, userview0_.EmployeeID, userview0_.EmployeeID_Char, userview0_.FirstName, userview0_.FLSAStatus, userview0_.HierarchyLevel, userview0_.HierarchyPath, userview0_.HireDate, userview0_.IsActive, userview0_.IsManual, userview0_.LastName, userview0_.LocationID, userview0_.Middle, userview0_.Mobile, userview0_.NetworkID, userview0_.NetworkLogin, userview0_.Phone, userview0_.PhoneLogin, userview0_.PhoneSwitchID, userview0_.ReportToID, userview0_.ReviewDate, userview0_.SalesID, userview0_.ServiceDate, userview0_.SharepointID, userview0_.SiteID, userview0_.Status, userview0_.SubmittedDate, userview0_.Title, userview0_.UserID) id ) networkId ) ? ) ) )
2009-04-03 14:03:10,059 DEBUG [org.hibernate.hql.ast.util.JoinProcessor] Using FROM fragment [boBETS.dbo.UserView userview0_]
2009-04-03 14:03:10,059 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] select >> end [level=1, statement=select]
2009-04-03 14:03:10,106 DEBUG [org.hibernate.hql.ast.AST] --- SQL AST ---
\-[SELECT] QueryNode: 'SELECT' querySpaces (boBETS.dbo.UserView)
+-[SELECT_CLAUSE] SelectClause: '{select clause}'
| \-[ALIAS_REF] IdentNode: 'userview0_.BillingID as BillingID121_, userview0_.BillingLogin as BillingL2_121_, userview0_.DepartmentID as Departme3_121_, userview0_.DEPTID as DEPTID121_, userview0_.DESCR as DESCR121_, userview0_.EffDate as EffDate121_, userview0_.Email as Email121_, userview0_.EmployeeID as EmployeeID121_, userview0_.EmployeeID_Char as EmployeeID9_121_, userview0_.FirstName as FirstName121_, userview0_.FLSAStatus as FLSAStatus121_, userview0_.HierarchyLevel as Hierarc12_121_, userview0_.HierarchyPath as Hierarc13_121_, userview0_.HireDate as HireDate121_, userview0_.IsActive as IsActive121_, userview0_.IsManual as IsManual121_, userview0_.LastName as LastName121_, userview0_.LocationID as LocationID121_, userview0_.Middle as Middle121_, userview0_.Mobile as Mobile121_, userview0_.NetworkID as NetworkID121_, userview0_.NetworkLogin as Network22_121_, userview0_.Phone as Phone121_, userview0_.PhoneLogin as PhoneLogin121_, userview0_.PhoneSwitchID as PhoneSw25_121_, userview0_.ReportToID as ReportToID121_, userview0_.ReviewDate as ReviewDate121_, userview0_.SalesID as SalesID121_, userview0_.ServiceDate as Service29_121_, userview0_.SharepointID as Sharepo30_121_, userview0_.SiteID as SiteID121_, userview0_.Status as Status121_, userview0_.SubmittedDate as Submitt33_121_, userview0_.Title as Title121_, userview0_.UserID as UserID121_' {alias=uv, className=com.cox.bets.entity.UserView, tableAlias=userview0_}
+-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[uv], fromElementByTableAlias=[userview0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
| \-[FROM_FRAGMENT] FromElement: 'boBETS.dbo.UserView userview0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=uv,role=null,tableName=boBETS.dbo.UserView,tableAlias=userview0_,origin=null,colums={,className=com.cox.bets.entity.UserView}}
\-[WHERE] SqlNode: 'where'
\-[EQ] BinaryLogicOperatorNode: '='
+-[DOT] DotNode: 'userview0_.NetworkID' {propertyName=networkId,dereferenceType=4,propertyPath=id.networkId,path=uv.id.networkId,tableAlias=userview0_,className=com.cox.bets.entity.UserView,classAlias=uv}
| +-[DOT] DotNode: 'userview0_.NetworkID' {propertyName=networkId,dereferenceType=2,propertyPath=id.networkId,path=uv.id,tableAlias=userview0_,className=com.cox.bets.entity.UserView,classAlias=uv}
| | +-[ALIAS_REF] IdentNode: '(userview0_.BillingID, userview0_.BillingLogin, userview0_.DepartmentID, userview0_.DEPTID, userview0_.DESCR, userview0_.EffDate, userview0_.Email, userview0_.EmployeeID, userview0_.EmployeeID_Char, userview0_.FirstName, userview0_.FLSAStatus, userview0_.HierarchyLevel, userview0_.HierarchyPath, userview0_.HireDate, userview0_.IsActive, userview0_.IsManual, userview0_.LastName, userview0_.LocationID, userview0_.Middle, userview0_.Mobile, userview0_.NetworkID, userview0_.NetworkLogin, userview0_.Phone, userview0_.PhoneLogin, userview0_.PhoneSwitchID, userview0_.ReportToID, userview0_.ReviewDate, userview0_.SalesID, userview0_.ServiceDate, userview0_.SharepointID, userview0_.SiteID, userview0_.Status, userview0_.SubmittedDate, userview0_.Title, userview0_.UserID)' {alias=uv, className=com.cox.bets.entity.UserView, tableAlias=userview0_}
| | \-[IDENT] IdentNode: 'id' {originalText=id}
| \-[IDENT] IdentNode: 'networkId' {originalText=networkId}
\-[NAMED_PARAM] ParameterNode: '?' {name=networkId, expectedType=org.hibernate.type.StringType@167e86a}
2009-04-03 14:03:10,106 DEBUG [org.hibernate.hql.ast.ErrorCounter] throwQueryException() : no errors
2009-04-03 14:03:10,106 DEBUG [org.hibernate.hql.ast.QueryTranslatorImpl] HQL: select uv from com.cox.bets.entity.UserView uv where uv.id.networkId = :networkId
2009-04-03 14:03:10,106 DEBUG [org.hibernate.hql.ast.QueryTranslatorImpl] SQL: select userview0_.BillingID as BillingID121_, userview0_.BillingLogin as BillingL2_121_, userview0_.DepartmentID as Departme3_121_, userview0_.DEPTID as DEPTID121_, userview0_.DESCR as DESCR121_, userview0_.EffDate as EffDate121_, userview0_.Email as Email121_, userview0_.EmployeeID as EmployeeID121_, userview0_.EmployeeID_Char as EmployeeID9_121_, userview0_.FirstName as FirstName121_, userview0_.FLSAStatus as FLSAStatus121_, userview0_.HierarchyLevel as Hierarc12_121_, userview0_.HierarchyPath as Hierarc13_121_, userview0_.HireDate as HireDate121_, userview0_.IsActive as IsActive121_, userview0_.IsManual as IsManual121_, userview0_.LastName as LastName121_, userview0_.LocationID as LocationID121_, userview0_.Middle as Middle121_, userview0_.Mobile as Mobile121_, userview0_.NetworkID as NetworkID121_, userview0_.NetworkLogin as Network22_121_, userview0_.Phone as Phone121_, userview0_.PhoneLogin as PhoneLogin121_, userview0_.PhoneSwitchID as PhoneSw25_121_, userview0_.ReportToID as ReportToID121_, userview0_.ReviewDate as ReviewDate121_, userview0_.SalesID as SalesID121_, userview0_.ServiceDate as Service29_121_, userview0_.SharepointID as Sharepo30_121_, userview0_.SiteID as SiteID121_, userview0_.Status as Status121_, userview0_.SubmittedDate as Submitt33_121_, userview0_.Title as Title121_, userview0_.UserID as UserID121_ from boBETS.dbo.UserView userview0_ where userview0_.NetworkID=?
2009-04-03 14:03:10,106 DEBUG [org.hibernate.hql.ast.ErrorCounter] throwQueryException() : no errors
2009-04-03 14:03:10,106 TRACE [org.hibernate.engine.query.HQLQueryPlan] HQL param location recognition took 0 mills (select uv from UserView uv where uv.id.networkId = :networkId)
2009-04-03 14:03:13,872 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Fri, 3 Apr 2009 14:03:13>
2009-04-03 14:03:13,872 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
2009-04-03 14:03:13,872 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
2009-04-03 14:03:13,872 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
2009-04-03 14:03:23,872 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Fri, 3 Apr 2009 14:03:23>
2009-04-03 14:03:23,872 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
2009-04-03 14:03:23,872 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
2009-04-03 14:03:23,872 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
2009-04-03 14:03:31,606 TRACE [org.hibernate.engine.query.QueryPlanCache] located HQL query plan in cache (select uv from UserView uv where uv.id.networkId = :networkId)
2009-04-03 14:03:31,606 TRACE [org.hibernate.engine.query.HQLQueryPlan] find: select uv from UserView uv where uv.id.networkId = :networkId
2009-04-03 14:03:31,606 TRACE [org.hibernate.engine.QueryParameters] named parameters: {networkId=CORP\asookazi}
2009-04-03 14:03:31,606 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
2009-04-03 14:03:31,606 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection
2009-04-03 14:03:31,653 DEBUG [org.hibernate.SQL]
select
userview0_.BillingID as BillingID121_,
userview0_.BillingLogin as BillingL2_121_,
userview0_.DepartmentID as Departme3_121_,
userview0_.DEPTID as DEPTID121_,
userview0_.DESCR as DESCR121_,
userview0_.EffDate as EffDate121_,
userview0_.Email as Email121_,
userview0_.EmployeeID as EmployeeID121_,
userview0_.EmployeeID_Char as EmployeeID9_121_,
userview0_.FirstName as FirstName121_,
userview0_.FLSAStatus as FLSAStatus121_,
userview0_.HierarchyLevel as Hierarc12_121_,
userview0_.HierarchyPath as Hierarc13_121_,
userview0_.HireDate as HireDate121_,
userview0_.IsActive as IsActive121_,
userview0_.IsManual as IsManual121_,
userview0_.LastName as LastName121_,
userview0_.LocationID as LocationID121_,
userview0_.Middle as Middle121_,
userview0_.Mobile as Mobile121_,
userview0_.NetworkID as NetworkID121_,
userview0_.NetworkLogin as Network22_121_,
userview0_.Phone as Phone121_,
userview0_.PhoneLogin as PhoneLogin121_,
userview0_.PhoneSwitchID as PhoneSw25_121_,
userview0_.ReportToID as ReportToID121_,
userview0_.ReviewDate as ReviewDate121_,
userview0_.SalesID as SalesID121_,
userview0_.ServiceDate as Service29_121_,
userview0_.SharepointID as Sharepo30_121_,
userview0_.SiteID as SiteID121_,
userview0_.Status as Status121_,
userview0_.SubmittedDate as Submitt33_121_,
userview0_.Title as Title121_,
userview0_.UserID as UserID121_
from
boBETS.dbo.UserView userview0_
where
userview0_.NetworkID=?
2009-04-03 14:03:31,684 INFO [STDOUT] Hibernate:
select
userview0_.BillingID as BillingID121_,
userview0_.BillingLogin as BillingL2_121_,
userview0_.DepartmentID as Departme3_121_,
userview0_.DEPTID as DEPTID121_,
userview0_.DESCR as DESCR121_,
userview0_.EffDate as EffDate121_,
userview0_.Email as Email121_,
userview0_.EmployeeID as EmployeeID121_,
userview0_.EmployeeID_Char as EmployeeID9_121_,
userview0_.FirstName as FirstName121_,
userview0_.FLSAStatus as FLSAStatus121_,
userview0_.HierarchyLevel as Hierarc12_121_,
userview0_.HierarchyPath as Hierarc13_121_,
userview0_.HireDate as HireDate121_,
userview0_.IsActive as IsActive121_,
userview0_.IsManual as IsManual121_,
userview0_.LastName as LastName121_,
userview0_.LocationID as LocationID121_,
userview0_.Middle as Middle121_,
userview0_.Mobile as Mobile121_,
userview0_.NetworkID as NetworkID121_,
userview0_.NetworkLogin as Network22_121_,
userview0_.Phone as Phone121_,
userview0_.PhoneLogin as PhoneLogin121_,
userview0_.PhoneSwitchID as PhoneSw25_121_,
userview0_.ReportToID as ReportToID121_,
userview0_.ReviewDate as ReviewDate121_,
userview0_.SalesID as SalesID121_,
userview0_.ServiceDate as Service29_121_,
userview0_.SharepointID as Sharepo30_121_,
userview0_.SiteID as SiteID121_,
userview0_.Status as Status121_,
userview0_.SubmittedDate as Submitt33_121_,
userview0_.Title as Title121_,
userview0_.UserID as UserID121_
from
boBETS.dbo.UserView userview0_
where
userview0_.NetworkID=?
2009-04-03 14:03:31,700 TRACE [org.hibernate.jdbc.AbstractBatcher] preparing statement
2009-04-03 14:03:31,700 TRACE [org.hibernate.type.StringType] binding 'CORP\asookazi' to parameter: 1
2009-04-03 14:03:31,763 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open ResultSet (open ResultSets: 0, globally: 0)
2009-04-03 14:03:31,763 TRACE [org.hibernate.loader.Loader] processing result set
2009-04-03 14:03:31,763 DEBUG [org.hibernate.loader.Loader] result set row: 0
2009-04-03 14:03:31,763 TRACE [org.hibernate.type.LongType] returning '74055' as column: BillingID121_
2009-04-03 14:03:31,763 TRACE [org.hibernate.type.StringType] returning 'ASOOKAZI' as column: BillingL2_121_
2009-04-03 14:03:31,763 TRACE [org.hibernate.type.LongType] returning '4100055200' as column: Departme3_121_
2009-04-03 14:03:31,763 TRACE [org.hibernate.type.StringType] returning '4100055200' as column: DEPTID121_
2009-04-03 14:03:31,763 TRACE [org.hibernate.type.StringType] returning 'IT' as column: DESCR121_
2009-04-03 14:03:31,763 TRACE [org.hibernate.type.TimestampType] returning '2009-01-05 00:00:00' as column: EffDate121_
2009-04-03 14:03:31,763 TRACE [org.hibernate.type.StringType] returning 'Arbi.Sookazian@cox.com' as column: Email121_
2009-04-03 14:03:31,763 TRACE [org.hibernate.type.LongType] returning '900069053' as column: EmployeeID121_
2009-04-03 14:03:31,763 TRACE [org.hibernate.type.StringType] returning '00900069053' as column: EmployeeID9_121_
2009-04-03 14:03:31,763 TRACE [org.hibernate.type.StringType] returning 'Arbi' as column: FirstName121_
2009-04-03 14:03:31,763 TRACE [org.hibernate.type.CharacterType] returning 'N' as column: FLSAStatus121_
2009-04-03 14:03:31,763 TRACE [org.hibernate.type.LongType] returning '6' as column: Hierarc12_121_
2009-04-03 14:03:31,778 TRACE [org.hibernate.type.StringType] returning '\CKroeger\DLeone\MCody\nalavi\BTkach\' as column: Hierarc13_121_
2009-04-03 14:03:31,778 TRACE [org.hibernate.type.TimestampType] returning '2007-07-23 00:00:00' as column: HireDate121_
2009-04-03 14:03:31,778 TRACE [org.hibernate.type.BooleanType] returning 'true' as column: IsActive121_
2009-04-03 14:03:31,778 TRACE [org.hibernate.type.BooleanType] returning 'false' as column: IsManual121_
2009-04-03 14:03:31,778 TRACE [org.hibernate.type.StringType] returning 'Sookazian' as column: LastName121_
2009-04-03 14:03:31,778 TRACE [org.hibernate.type.LongType] returning '1' as column: LocationID121_
2009-04-03 14:03:31,778 TRACE [org.hibernate.type.StringType] returning ' ' as column: Middle121_
2009-04-03 14:03:31,778 TRACE [org.hibernate.type.StringType] returning null as column: Mobile121_
2009-04-03 14:03:31,778 DEBUG [org.hibernate.loader.Loader] result row: null
2009-04-03 14:03:31,778 TRACE [org.hibernate.loader.Loader] done processing result set (1 rows)
2009-04-03 14:03:31,778 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1)
2009-04-03 14:03:31,778 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
2009-04-03 14:03:31,778 TRACE [org.hibernate.jdbc.AbstractBatcher] closing statement
2009-04-03 14:03:31,778 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
2009-04-03 14:03:31,794 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
2009-04-03 14:03:31,794 TRACE [org.hibernate.loader.Loader] total objects hydrated: 0
2009-04-03 14:03:31,794 DEBUG [org.hibernate.engine.StatefulPersistenceContext] initializing non-lazy collections
2009-04-03 14:03:31,794 TRACE [org.hibernate.jdbc.JDBCContext] after autocommit
2009-04-03 14:03:31,794 TRACE [org.hibernate.impl.SessionImpl] after transaction completion
2009-04-03 14:03:59,825 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.interpolator
2009-04-03 14:03:59,825 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.interpolator
2009-04-03 14:03:59,825 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.interpolator
2009-04-03 14:03:59,825 INFO [com.cox.bets.utils.ProfilingInterceptor] *** Method public void com.cox.bets.session.ManageEquipmentAction.searchSerialNumber() executed in 82297ms ***
2009-04-03 14:03:59,825 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.interpolator
2009-04-03 14:03:59,825 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.interpolator
2009-04-03 14:03:59,825 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.interpolator
2009-04-03 14:03:59,825 INFO [com.cox.bets.session.ManageEquipmentAction] in preDestroy()
2009-04-03 14:03:59,841 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@b7dc78, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1eaee49{ url=null ,addedOrder=0}
2009-04-03 14:03:59,841 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@b7dc78, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@c2122c{ url=null ,addedOrder=0}
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.manageEquipment
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.manageEquipment
2009-04-03 14:03:59,841 DEBUG [org.jboss.seam.ejb.RemoveInterceptor] Stateful component was removed: manageEquipment
2009-04-03 14:03:59,841 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@b7dc78, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@137146d{ url=null ,addedOrder=0}
2009-04-03 14:03:59,841 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@b7dc78, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@11e1e7a{ url=null ,addedOrder=0}
2009-04-03 14:03:59,841 ERROR [javax.enterprise.resource.webcontainer.jsf.application] /ManageEquipment.xhtml @52,68 action="#{manageEquipment.searchSerialNumber}": java.lang.NullPointerException
javax.faces.el.EvaluationException: /ManageEquipment.xhtml @52,68 action="#{manageEquipment.searchSerialNumber}": java.lang.NullPointerException
at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at javax.faces.component.UICommand.broadcast(UICommand.java:387)
at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)
at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:317)
at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:292)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:249)
at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:462)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
getSiteId() is called from public void searchSerialNumber()... The NPE is actually occurring in getSiteId() b/c userViewList.size() > 0 but the UserView instance is null as follows:
Code:
if (userViewList != null && userViewList.size() > 0)
{
UserView uv = (UserView)userViewList.get(0);
UserViewId id = uv.getId(); <!-- NPE here -->
...
}