All ContentDataStore subclasses fail with NPE on transactions with multiple 
changes
-----------------------------------------------------------------------------------

                 Key: GEOT-2829
                 URL: http://jira.codehaus.org/browse/GEOT-2829
             Project: GeoTools
          Issue Type: Bug
          Components: data jdbc-ng
    Affects Versions: 2.6.0
            Reporter: Andrea Aime
             Fix For: 2.6.1


As reported by a GeoServer user:

{code}
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Caused by: java.lang.NullPointerException
        at org.geotools.data.BatchFeatureEvent.add(BatchFeatureEvent.java:88)
        at
org.geotools.data.store.ContentState.fireFeatureEvent(ContentState.java:342)
        at
org.geotools.data.store.ContentState.fireFeatureAdded(ContentState.java:298)
        at
org.geotools.jdbc.JDBCInsertFeatureWriter.write(JDBCInsertFeatureWriter.java:81)
        at
org.geotools.data.InProcessLockingManager$1.write(InProcessLockingManager.java:335)
        at
org.geotools.data.store.ContentFeatureStore.addFeatures(ContentFeatureStore.java:255)
        at
org.vfny.geoserver.global.GeoServerFeatureStore.addFeatures(GeoServerFeatureStore.java:81)
        at
org.geoserver.wfs.InsertElementHandler.execute(InsertElementHandler.java:173)
{code}

The issue is trivial, the fid map is never initialized. We need to add a test 
in the jdbc code that exercises this use case thought, it's kind of grave we 
released GS 2.0 with this problem

-- 
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

        

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to