My sincere apologies, as I forgot to post the logs.

NOTE: most boilerplate exception lines skipped for brevity:

  | 2006-01-29 15:55:01,307 DEBUG 
[com.decorativeconcepts.techdesk.ejb.UserBean] getting User from username: 
[EMAIL PROTECTED]
  | 2006-01-29 15:55:01,307 DEBUG 
[org.jboss.ejb3.entity.ManagedEntityManagerFactory] GETTING NEW EntityManager
  | 2006-01-29 15:55:01,307 DEBUG 
[org.jboss.ejb3.entity.ManagedEntityManagerFactory] logLivedSession.get() was 
NULL
  | 2006-01-29 15:55:01,308 DEBUG 
[org.jboss.ejb3.entity.ManagedEntityManagerFactory] LONG LIVED NOT FOUND
  | 2006-01-29 15:55:01,310 DEBUG [org.hibernate.impl.SessionImpl] opened 
session at timestamp: 4663574942965760
  | 2006-01-29 15:55:01,311 DEBUG [org.hibernate.impl.SessionImpl] find: from 
User u where u.username=:upn
  | ............................
  | ............................
  | 2006-01-29 15:55:01,456 DEBUG [org.hibernate.loader.Loader] 
bindNamedParameters() [EMAIL PROTECTED] -> upn [1]
  | 2006-01-29 15:55:01,461 DEBUG [org.hibernate.type.StringType] binding 
'[EMAIL PROTECTED]' to parameter: 1
  | 2006-01-29 15:55:01,464 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
open ResultSet (open ResultSets: 0, globally: 0)
  | 2006-01-29 15:55:01,476 DEBUG [org.hibernate.loader.Loader] processing 
result set
  | 2006-01-29 15:55:01,476 DEBUG [org.hibernate.loader.Loader] done processing 
result set (0 rows)
  | .............................
  | .............................
  | 2006-01-29 15:55:01,490 DEBUG [org.hibernate.impl.SessionImpl] closing 
session
  | 2006-01-29 15:55:01,490 DEBUG [org.hibernate.jdbc.ConnectionManager] 
connection already null in cleanup : no action
  | 2006-01-29 15:55:01,491 DEBUG 
[org.hibernate.transaction.CacheSynchronization] transaction after completion 
callback, status: 4
  | 2006-01-29 15:55:01,491 DEBUG [org.hibernate.jdbc.JDBCContext] after 
transaction completion
  | 2006-01-29 15:55:01,491 DEBUG [org.hibernate.impl.SessionImpl] after 
transaction completion
  | 2006-01-29 15:55:01,506 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/TechDesk].[jsp]]
 Servlet.service() for servlet jsp threw exception
  | javax.faces.el.EvaluationException: Cannot get value for expression 
'#{currentUser.user.username}'
  | .............................
  | .............................
  | Caused by: javax.ejb.EJBException: null; CausedByException is:
  |         No entity found for query
  |         at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:46)
  |         at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:70)
  |         at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:134)
  | 

As you can see, not even my other log messages get called.  Does the 
EntityManager have a special method to use to check for null values?

Again, thank you all!
Aaron

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920287


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to