Hi all,
I'm new to SEAM and so far it's realy impressive. JSF & Hibernate without the
difficulties about lazy loading that made me crazy!
Anyway, I'm having a hard time to learn SEAM and I could need some help. The app
I'm working on is relatively simple; a login mask, some crud combined with ajax.
The whole thing runs on Tomcat 6.0.10 in combination with Hibernate and a mySQL database.
I have three questions regarding this setup and SEAM and I would appreciate every answer
very much:
1) When a session timeout occurs and the user activates an action containing an "@In
User user" attribute, the following Exception is thrown:
org.jboss.seam.RequiredException: In attribute requires non-null value: someAction.user
The page requires a login but SEAM does not throw an authorization exception. The problem
has already be reported as a bug by someone else:
http://jira.jboss.com/jira/browse/JBSEAM-1041?page=com.atlassian.jira.plu...
How can I solve this problem? Right now the app catches every
org.jboss.seam.RequiredException and does a redirect to /login.xhtml but this is probabely
an unclean solution.
2) IdleRemover sometimes throws NullPointerExceptions and I have absolutely no idea why:
Exception in thread "IdleRemover" java.lang.NullPointerException
| at org.jboss.resource.connectionmanager.IdleRemover$1.run(IdleRemover.java:93)
| at java.lang.Thread.run(Thread.java:619)
I've googled around and did not find anything similar. Is this a bug or a known
problem? This is not a major problem for me but since Eclipse opens the Debug perspective
and the class file of IdleRemover automaticaly, its very, very annoying.
3) Finaly, TestNG is a mystery for me :( Why and how do I have to inject the
org.hibernate.Session object to test my app? The example application tests work without
this (?) And why do I get
javax.el.PropertyNotFoundException: ELResolver cannot handle a null base Object with
identifier 'user'
on a class that tests the login process? The test class is identical with
"RegisterTest.java" from the register example but I could post the code if you
need it.
Thank you very much for the help!
Simon
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044212#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...