Bug 1122138

Summary: JTA - HibernateException: Unable to locate current JTA transaction
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: vramik
Component: PortalAssignee: mposolda
Status: VERIFIED --- QA Contact: vramik
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bdawidow, epp-bugs, ppalaga, tkyjovsk
Target Milestone: ER05   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description vramik 2014-07-22 15:48:03 UTC
Description of problem:
When portal is configured to use JTA transactions (https://docs.jboss.org/author/display/GTNPORTAL38/JTA+integration) there is exception in logs (with INFO severity). It seems portal works fine, only stacktrace is shown. It is shown when user is logged in for the first time into the portal (or if the session is started again). The user is added into portal by our tool (it adds users directly by editting ${gatein.home}/gatein/gatein.ear/portal.war/WEB-INF/conf/organization/organization-configuration.xml). With user added using UI the exceprion isn't present. But e.g. if you try to sign in with blank username and password exception occurs.

Steps to Reproduce:
1. set portal using JTA and start it
2. click Sign In
3. leave blank input fields and click Sign In button 

or use config-tool to add demo users and try to log in as john (mary, demo).

There is link to job where the config tool is used to add demo users:
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EPP/view/EPP/view/6.2/view/UI%20Database%20Support/job/epp6_ui_selenium_tests_db_mysql55/116/

in the log of the build you can see the exceptions.

Comment 2 mposolda 2014-07-28 14:17:32 UTC
Doesn't require release notes as issue is in FilterDisabledLoginModule, which is new stuff in JPP 6.2 .

Comment 3 Peter Palaga 2014-08-12 11:34:28 UTC
https://github.com/gatein/gatein-portal/pull/892 was merged in upstream.

Comment 4 vramik 2014-09-02 11:25:23 UTC
Verified in ER05.