|
|
|
Issue Type:
|
Bug
|
Assignee:
|
Unassigned |
Components:
|
data |
Created:
|
18/Feb/13 3:35 AM
|
Description:
|
ContentEntry is a shared object, but contains this field:
Map<Transaction,ContentState> state;
which is intialized as:
this.state = new HashMap<Transaction, ContentState>();
This should be a thread-safe map, as it is written to/read from by multiple threads. The problem shows up through the following exception:
Caused by: java.lang.IllegalArgumentException: Transaction already has an entry for key:110m_populated_places_simple. Please check for existing State before creating your own.
at org.geotools.data.DefaultTransaction.putState(DefaultTransaction.java:98) ~[gt-main-2.7.5.jar:na]
at org.geotools.data.store.ContentState.setTransaction(ContentState.java:192) ~[gt-data-2.7.5.jar:na]
at org.geotools.data.store.ContentEntry.getState(ContentEntry.java:133) ~[gt-data-2.7.5.jar:na]
at org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:310) ~[gt-data-2.7.5.jar:na]
at org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:287) ~[gt-data-2.7.5.jar:na]
at org.geotools.data.store.ContentFeatureCollection.<init>(ContentFeatureCollection.java:121) ~[gt-data-2.7.5.jar:na]
|
Project:
|
GeoTools
|
Priority:
|
Major
|
Reporter:
|
Jan De Moerloose
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
is your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel