Hi list,

we're having trouble using uDig to insert some points into a GeoServer instance running WFS-T (and the problem isn't on the GeoServer side since we've got the insert working doing a straight http request). The feature consists of a point geometry and an id field, which are both nillable.

Using 1.1M6 the suspicious-looking exception is:

!ENTRY net.refractions.udig.tools.edit 1 0 2006-03-28 14:06:55.752
!MESSAGE !STACK 0
java.lang.NullPointerException
        at 
org.geotools.data.wfs.WFSFeatureStore.addFeatures(WFSFeatureStore.java:97)
        at 
net.refractions.udig.project.internal.impl.UDIGFeatureStore.addFeatures(UDIGFeatureStore.java:43)
        at 
net.refractions.udig.project.internal.commands.edit.AddFeatureCommand.run(AddFeatureCommand.java:75)
        at 
net.refractions.udig.tools.edit.commands.CreateAndSetNewFeature.run(CreateAndSetNewFeature.java:56)
        at 
net.refractions.udig.project.command.UndoableComposite.execute(UndoableComposite.java:81)
        at 
net.refractions.udig.tools.edit.BehaviourCommand.execute(BehaviourCommand.java:64)
        at 
net.refractions.udig.project.command.UndoableComposite.execute(UndoableComposite.java:78)
        at 
net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:367)
        at 
net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:299)
        at 
net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:284)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

Since I noticed there'd been a change on the addFeatures method in GeoTools I also checked out the latest nightly - which gave me a different exception, and still didn't do the insert:

!ENTRY net.refractions.udig.project 1 0 2006-03-28 15:02:02.827
!MESSAGE !STACK 0
java.lang.AbstractMethodError: 
org.geotools.data.wfs.WFSFeatureStore.addFeatures(Lorg/geotools/feature/FeatureCollection;)Ljava/util/Set;
        at 
net.refractions.udig.project.internal.impl.UDIGFeatureStore.addFeatures(Unknown 
Source)
        at 
net.refractions.udig.project.internal.commands.edit.AddFeatureCommand.run(Unknown
 Source)
        at 
net.refractions.udig.tools.edit.commands.CreateAndSetNewFeature.run(Unknown 
Source)
        at 
net.refractions.udig.project.command.UndoableComposite.execute(Unknown Source)
        at net.refractions.udig.tools.edit.BehaviourCommand.execute(Unknown 
Source)
        at 
net.refractions.udig.project.command.CommandManager$Executor.execute(Unknown 
Source)
        at 
net.refractions.udig.project.command.CommandManager$Executor.run(Unknown Source)
        at 
net.refractions.udig.project.command.CommandManager$Executor.addRequest(Unknown 
Source)
        at 
net.refractions.udig.project.command.CommandManager.doMakeRequest(Unknown 
Source)
        at net.refractions.udig.project.command.CommandManager.execute(Unknown 
Source)
        at 
net.refractions.udig.project.internal.impl.MapImpl.sendCommandInternal(Unknown 
Source)
        at 
net.refractions.udig.project.internal.impl.MapImpl.sendCommand(Unknown Source)
        at 
net.refractions.udig.project.internal.impl.MapImpl.sendCommandSync(Unknown 
Source)
        at 
net.refractions.udig.project.ui.internal.tool.impl.ToolContextImpl.sendSyncCommand(Unknown
 Source)
        at net.refractions.udig.tools.edit.DeprecatedUtil$4.changed(Unknown 
Source)
        at 
net.refractions.udig.project.internal.impl.EditManagerImpl.fireEvent(Unknown 
Source)
        at 
net.refractions.udig.project.internal.impl.EditManagerImpl.commitTransaction(Unknown
 Source)
        at 
net.refractions.udig.project.internal.commands.selection.CommitCommand.run(Unknown
 Source)
        at 
net.refractions.udig.project.command.CommandManager$Executor.execute(Unknown 
Source)
        at 
net.refractions.udig.project.command.CommandManager$Executor.run(Unknown Source)
        at 
net.refractions.udig.project.command.CommandManager$Executor.run(Unknown Source)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

Any clues as to how we could resolve this?

Cheers,

Ed

--
preagro TP7 - Geodateninfrastruktur
http://www.preagro.de

Universität Rostock
Agrar- und Umweltwissenschaftliche Fakultät
Professur für Geodäsie und Geoinformatik
Justus-von-Liebig-Weg 6
18059 Rostock

Tel: +49 381 498 2164
Fax: +49 381 498 2188
Web: http://www.auf.uni-rostok.de/gg

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

Reply via email to