Deadlock while creating a Coordinate Reference System
-----------------------------------------------------

                 Key: GEOT-1368
                 URL: http://jira.codehaus.org/browse/GEOT-1368
             Project: GeoTools
          Issue Type: Bug
          Components: core referencing
    Affects Versions: 2.3.2, 2.0.0
            Reporter: Urs Reupke
            Assignee: Martin Desruisseaux
         Attachments: CrsCreationDeadlock.java, CrsCreationDeadlockJUnit.java

The FactoryFinder's method to retrieve an CRSAuthorityFactory and the 
CRSAuthorityFactory's method to create the coordinate reference system (CRS) 
deadlock each other if run in a multithreaded environment, like a web server.

I have attached both a java executable and a JUnit4 test case to document the 
problem. Both should log their actions 10 times in a row and then exit, stating 
that no deadlock was encountered, but they stop running inbetween.

The test demonstrates the erroneous behaviour in both GeoTools 2.0 and 2.3.2.

The problem can be worked around by synchronizing the calling method, but I'd 
be glad if this could be fixed directly in GeoTools.

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

        

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to