Thanks Jody!

I manage to find my mistake with reading geoserver logs… All not null
properties have to be set… 

 

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

+33 (0)1 30 15 40 58

[email protected]

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

 

De : [email protected]
[mailto:[email protected]] De la part de Jody Garnett
Envoyé : mercredi 3 mars 2010 00:16
À : User-friendly Desktop Internet GIS
Objet : Re: [udig-devel] WFS-T insert transaction failed

 

Your code looks fine (it is how I would do an insert).

 

You say TableView can insert; what happens when you hit commit? Does it
produce the same error? 

What WFS service are you using; you may need to check the wfs logs to see
what was sent.

 

Jody

 

On 03/03/2010, at 3:26 AM, Virginie BERRE wrote:





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)

[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/> <image001.gif>

<image002.gif>Pensez environnement ! N'imprimez ce mail que si c'est
vraiment nécessaire !

 

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

 

<<image001.gif>>

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

Reply via email to