[Geoserver-users] org.geotools.data.DataSourceException: Could not count null

I do use Geoserver 1.6.4 with Postgis to do some WFS-t requests.

This is my request:

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs&quot; version="1.0.0"
service="WFS"><wfs:Update
typeName="AND:road"><wfs:Property><wfs:Name>the_geom</wfs:Name><wfs:Value><gml:LineString
xmlns:gml="http://www.opengis.net/gml&quot;
srsName="EPSG:900913"><gml:coordinates decimal="." cs="," ts="
">621318.39453125,7002636.90820312 621323.9487304675,7002623.846679683
621320.2255859349,7002609.808593745 621312.5961914025,7002596.258789058
621302.52539062,7002590.03320312</gml:coordinates></gml:LineString></wfs:Value></wfs:Property><wfs:Property><wfs:Name>builtup_name</wfs:Name><wfs:Value>Wommels</wfs:Value></wfs:Property><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;&lt;ogc:FeatureId
fid="road.1158888"/></ogc:Filter></wfs:Update></wfs:Transaction>

This is the reaction of Geoserver:

<wfs:WFS_TransactionResponse version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/wfs
http://www.map20.org:80/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd&quot;&gt;
<wfs:InsertResult><ogc:FeatureId fid="none"/></wfs:InsertResult>
<wfs:TransactionResult><wfs:Status><wfs:FAILED/></wfs:Status>
<wfs:Message>
org.geotools.data.DataSourceException: Could not count null
</wfs:Message>
</wfs:TransactionResult>
</wfs:WFS_TransactionResponse>

What does 'Could not count null' mean?
--
View this message in context: http://www.nabble.com/org.geotools.data.DataSourceException%3A-Could-not-count-null-tp17900682p17900682.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Wommels ha scritto:

I do use Geoserver 1.6.4 with Postgis to do some WFS-t requests.

This is my request:

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs&quot; version="1.0.0"
service="WFS"><wfs:Update
typeName="AND:road"><wfs:Property><wfs:Name>the_geom</wfs:Name><wfs:Value><gml:LineString
xmlns:gml="http://www.opengis.net/gml&quot;
srsName="EPSG:900913"><gml:coordinates decimal="." cs="," ts="
">621318.39453125,7002636.90820312 621323.9487304675,7002623.846679683
621320.2255859349,7002609.808593745 621312.5961914025,7002596.258789058
621302.52539062,7002590.03320312</gml:coordinates></gml:LineString></wfs:Value></wfs:Property><wfs:Property><wfs:Name>builtup_name</wfs:Name><wfs:Value>Wommels</wfs:Value></wfs:Property><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;&lt;ogc:FeatureId
fid="road.1158888"/></ogc:Filter></wfs:Update></wfs:Transaction>

This is the reaction of Geoserver:

<wfs:WFS_TransactionResponse version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/wfs
http://www.map20.org:80/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd&quot;&gt;
<wfs:InsertResult><ogc:FeatureId fid="none"/></wfs:InsertResult>
<wfs:TransactionResult><wfs:Status><wfs:FAILED/></wfs:Status>
<wfs:Message>
org.geotools.data.DataSourceException: Could not count null
</wfs:Message>
</wfs:TransactionResult>
</wfs:WFS_TransactionResponse>

What does 'Could not count null' mean?

I have no idea... something is breaking during the insert but that error
message is no good. Can you go to the GeoServer "configure/server"
section and enable verbose exceptions? That migth give us some insight
into what's happening.

Cheers
Andrea

I did check my dataset, and had to transform my dataset from WGS84 to 900913.
Then I found out that a few records in my postgis database was not right
digitized! The Lat / Lon were placed the otherway around.

My solution:
1. Try to transform the data to 900913 step by step
2. Deleted the records with Lat / Lon problem
3. Restarted Geoserver
4. Problem solved!

Wommels wrote:

I do use Geoserver 1.6.4 with Postgis to do some WFS-t requests.

This is my request:

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs&quot; version="1.0.0"
service="WFS"><wfs:Update
typeName="AND:road"><wfs:Property><wfs:Name>the_geom</wfs:Name><wfs:Value><gml:LineString
xmlns:gml="http://www.opengis.net/gml&quot;
srsName="EPSG:900913"><gml:coordinates decimal="." cs="," ts="
">621318.39453125,7002636.90820312 621323.9487304675,7002623.846679683
621320.2255859349,7002609.808593745 621312.5961914025,7002596.258789058
621302.52539062,7002590.03320312</gml:coordinates></gml:LineString></wfs:Value></wfs:Property><wfs:Property><wfs:Name>builtup_name</wfs:Name><wfs:Value>Wommels</wfs:Value></wfs:Property><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;&lt;ogc:FeatureId
fid="road.1158888"/></ogc:Filter></wfs:Update></wfs:Transaction>

This is the reaction of Geoserver:

<wfs:WFS_TransactionResponse version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/wfs
http://www.map20.org:80/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd&quot;&gt;
<wfs:InsertResult><ogc:FeatureId fid="none"/></wfs:InsertResult>
<wfs:TransactionResult><wfs:Status><wfs:FAILED/></wfs:Status>
<wfs:Message>
org.geotools.data.DataSourceException: Could not count null
</wfs:Message>
</wfs:TransactionResult>
</wfs:WFS_TransactionResponse>

What does 'Could not count null' mean?

--
View this message in context: http://www.nabble.com/org.geotools.data.DataSourceException%3A-Could-not-count-null-tp17900682p18080692.html
Sent from the GeoServer - User mailing list archive at Nabble.com.