[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-525) Application hangs, main thread returns but some other thread spawned keeps application from ending

ddbattlefield2142 (JIRA) noreply at atlassian.com
Thu May 6 18:52:49 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36964#action_36964 ] 

ddbattlefield2142 commented on HSEARCH-525:
-------------------------------------------

Not closing the SessionFactory doesn't stop application from exiting if you remove the FullTextSession.index(object) call. Hence, that could not be the problem. I wrote numerous code examples for Hibernate (core, not search) and I never closed SessionFactory but I never ran into that problem before. As I said, just remove the FullTextSession.index(object) call, don't close SessionFactory and you won't see that problem. Hence, there is some other reason behind this behavior. 

> Application hangs, main thread returns but some other thread spawned keeps application from ending
> --------------------------------------------------------------------------------------------------
>
>                 Key: HSEARCH-525
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-525
>             Project: Hibernate Search
>          Issue Type: Bug
>    Affects Versions: 3.1.1.GA, 3.2.0.CR1
>         Environment: Ubuntu 9.10, java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu3)
> OpenJDK Server VM (build 14.0-b16, mixed mode),
> mysql  Ver 14.14 Distrib 5.1.37, for debian-linux-gnu (i486) using  EditLine wrapper
>            Reporter: ddbattlefield2142
>         Attachments: HibernateSearchBugReport.tgz
>
>
> Write a class with one main method. Call a method which loads one entity (preexisting data) and tries to index it. The code runs fine and the main thread returns but the application hangs. Some thread spawned by hibernate is keeping the application from exiting. You would need to press control + C to exit the application. 
> Please refer to README in the attachment for a list of dependencies I am using and the running instructions. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list