Dear all,

 

I know the bug GEOT-2081 <http://jira.codehaus.org/browse/GEOT-2081> .

Have you found a way to insert a feature? 

Why does the Table View manage to insert feature and I don't? Is there
somebody who can send me the Table View part code?

 

It's just the addFeatures transaction commit which raise an exception:

!ENTRY org.eclipse.osgi 2 1 2010-03-02 17:21:58.078

!MESSAGE NLS missing message: WFSRegistryWizardPage_7 in:
net.refractions.udig.catalog.wfs.internal.messages

java.io.IOException: org.xml.sax.SAXException: Error performing insert

      at
org.geotools.data.wfs.v1_0_0.WFSTransactionState.commit(WFSTransactionState.
java:181)

      at
org.geotools.data.DefaultTransaction.commit(DefaultTransaction.java:182)

 

Maybe it's my code also:

Transaction insert = new DefaultTransaction(); 

dodStore.setTransaction(insert);

try {

      List<FeatureId> ids =
featureStore.addFeatures(DataUtilities.collection( newFeature ));

      insert.commit();

} catch (IOException e) {

      e.printStackTrace();

      try {

            insert.rollback();

      } catch (IOException e1) {

            e1.printStackTrace();

      }

} finally {

      try {

            insert.close();

      } catch (IOException e) {

            e.printStackTrace();

      }

}

 

Thank you.

Regards,

 

Virginie BERRE - Ingénieur d'études et de développement

+33 (0)1 30 15 40 58 (n° direct)

 <mailto:[email protected]> [email protected]


  _____  


ZA Les Erables - bâtiment 4

66, route de Sartrouville
78230 Le Pecq 
Tel: +33 (0)1 30 15 40 50 (standard)
Fax: +33 (0)1 30 15 40 60 
 <http://www.magellium.fr> www.magellium.fr 

 <http://www.magellium.fr/> MAGELLIUM

MAGELLIUMPensez environnement ! N'imprimez ce mail que si c'est vraiment
nécessaire !

 

<<image001.gif>>

<<image002.gif>>

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to