Bug 807347

Summary: dvdstore example throws "org.hibernate.SessionException: Session is closed!"
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Ron Šmeral <rsmeral>
Component: SeamAssignee: Marek Novotny <mnovotny>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 2.0.0.GACC: amelicha, maschmid, rnewton
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: Seam2.2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
This issue can be worked around by changing the Persistence Context Type to Extended in FullTextSearchAction.java, as in: https://gist.github.com/2114440 .
Story Points: ---
Clone Of: Environment:
Fedora 16 64-bit, Mozilla Firefox 3.6.25, Oracle JDK 1.6.0_30, Seam 2.2.5.EAP5 (included in EAP 5.1.2.GA)
Last Closed: 2012-05-11 12:34:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Server log none

Description Ron Šmeral 2012-03-27 15:02:10 UTC
Created attachment 573090 [details]
Server log

Note:
Seam version: 2.2.5.EAP5 (included in EAP 5.1.2.GA)
The tasks example from Seam 2.2 was migrated to EAP6 according to the migration guide on Documentation-Stage (http://documentation-stage.bne.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/6/html/Beta_Documentation/Migrate_Seam_22_Archives_to_JBoss_Enterprise_Application_Platform_6.html)
and the bug was verified to occur with EAP 6.0.0.ER3.

There is a patch available: https://gist.github.com/2114440

Current behaviour:
The search sometimes fails and throws an exception.

Steps to reproduce:
1. Search for something that won't give any result, e.g. "asdf", wait for page to load
2. Search for something that will give a result, e.g "harry"
3. A debug page is returned instead of the search results page

Relevant part of server log attached.

Comment 1 Ron Šmeral 2012-03-27 15:06:07 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
This issue can be worked around by changing the Persistence Context Type to Extended in FullTextSearchAction.java, as in: https://gist.github.com/2114440 .

Comment 2 Marek Schmidt 2012-05-11 12:34:44 UTC
Closing, as this issue cannot be reproduced anymore on EAP6.0.0 ER6.