Hi,
I'm trying to get just one attribute of a designed feature but i'm
getting a "java.lang.NullPointerException".
I can't see what's wrong....
Ask for more details if you need.
Thanks !
-- Jeremy
Here is my request through post:
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
version="1.0.0" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Query wfs:typeName="icia:batiment_prive">
<ogc:PropertyName>icia:qualite</ogc:PropertyName>
<ogc:Filter>
<ogc:FeatureId fid="batiment_prive.26"/>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
Here is the answer:
<?xml version="1.0" ?>
<ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc
http://62.193.240.139:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd">
<ServiceException>
java.lang.NullPointerException </ServiceException>
</ServiceExceptionReport>
Here is the GeoServer Log (Too long for the mail so its linked):
http://rafb.net/p/Y1KxPY35.html
Jeremy: which version of GeoServer are you using. I may be wrong but I think this issue was just recently fixed. Andrea can you confirm that this is the dreaded no default geometry problem?
-Justin
Jeremy DERRAC wrote:
Hi,
I'm trying to get just one attribute of a designed feature but i'm
getting a "java.lang.NullPointerException".
I can't see what's wrong....
Ask for more details if you need.
Thanks !
-- Jeremy
Here is my request through post:
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
version="1.0.0" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Query wfs:typeName="icia:batiment_prive">
<ogc:PropertyName>icia:qualite</ogc:PropertyName>
<ogc:Filter>
<ogc:FeatureId fid="batiment_prive.26"/>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
Here is the answer:
<?xml version="1.0" ?>
<ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc
http://62.193.240.139:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd">
<ServiceException>
java.lang.NullPointerException </ServiceException>
</ServiceExceptionReport>
Here is the GeoServer Log (Too long for the mail so its linked):
http://rafb.net/p/Y1KxPY35.html
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,469b8ea210198362916074!
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
I'm using GeoServer 1.5.1 it seems to be the latest release.
Here is the schema of the feature in the previous request, hope this help.
Thanks for yours answers
<xs:schema targetNamespace="http://www.iciatechnologies.com/icia"
elementFormDefault="qualified" attributeFormDefault="unqualified"
version="1.0">
<xs:import namespace="http://www.opengis.net/gml"
schemaLocation="http://62.193.240.139:8080/geoserver/schemas/gml/2.1.2/feature.xsd"/>
<xs:complexType name="batiment_prive_Type">
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureType">
<xs:sequence>
<xs:element name="name" minOccurs="0" nillable="true">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="utilisatio" minOccurs="0" nillable="true">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="qualite" minOccurs="0" nillable="true">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="constructi" minOccurs="0" nillable="true">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="peinture" minOccurs="0" nillable="true">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="dapparteme" minOccurs="0" nillable="true"
type="xs:long"/>
<xs:element name="detages" minOccurs="0" nillable="true" type="xs:long"/>
<xs:element name="the_geom" minOccurs="0" nillable="true"
type="gml:MultiPolygonPropertyType"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="batiment_prive" type="icia:batiment_prive_Type"
substitutionGroup="gml:_Feature"/>
</xs:schema>
2007/7/16, Justin Deoliveira <jdeolive@anonymised.com>:
Jeremy: which version of GeoServer are you using. I may be wrong but I
think this issue was just recently fixed. Andrea can you confirm that
this is the dreaded no default geometry problem?
-Justin
Jeremy DERRAC wrote:
> Hi,
> I'm trying to get just one attribute of a designed feature but i'm
> getting a "java.lang.NullPointerException".
> I can't see what's wrong....
> Ask for more details if you need.
>
> Thanks !
>
> -- Jeremy
>
> Here is my request through post:
>
> <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
> version="1.0.0" xmlns:gml="http://www.opengis.net/gml"
> xmlns:ogc="http://www.opengis.net/ogc"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <wfs:Query wfs:typeName="icia:batiment_prive">
> <ogc:PropertyName>icia:qualite</ogc:PropertyName>
> <ogc:Filter>
> <ogc:FeatureId fid="batiment_prive.26"/>
> </ogc:Filter>
> </wfs:Query>
> </wfs:GetFeature>
>
> Here is the answer:
>
> <?xml version="1.0" ?>
> <ServiceExceptionReport
> version="1.2.0"
> xmlns="http://www.opengis.net/ogc"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.opengis.net/ogc
> http://62.193.240.139:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd">
> <ServiceException>
> java.lang.NullPointerException </ServiceException>
> </ServiceExceptionReport>
>
> Here is the GeoServer Log (Too long for the mail so its linked):
> http://rafb.net/p/Y1KxPY35.html
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
> !DSPAM:4007,469b8ea210198362916074!
>
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
Jeremy DERRAC ha scritto:
I'm using GeoServer 1.5.1 it seems to be the latest release.
...
<xs:element name="the_geom" minOccurs="0" nillable="true"
type="gml:MultiPolygonPropertyType"/>
Hmm... this dataset is not geometryless, yet I think that fix I made
covers this case too. I bet your source is a shapefile without .prj file, or a postgis table with a SRS declared as -1 (unknown)?
Can you grab a 1.5.2-snapshot from http://geo.openplans.org/nightly/1.5.x/ and give it a spin?
Cheers
Andrea
I downloaded http://geo.openplans.org/nightly/1.5.x/geoserver-1.5.x-071607-bin.zip
(the latest in the displayed list)
Moved my geoserver/ to geoserver.old/
Extracted the new one to geoserver/
Deleted geoserver/data_dir
Copied geoserver.old/data_dir to geoserver/data_dir
Started geoserver/bin/startup.bat
On admin page it still display 1.5.1 I'm i doing something wrong?
Anyway i tested it again, its the same problem :
req:
POST /geoserver/wfs? HTTP/1.0
User-Agent: GrfMapViewer
Content-Length: 407
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
version="1.0.0" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query
wfs:typeName="icia:batiment_prive"><ogc:PropertyName>icia:qualite</ogc:PropertyName><ogc:Filter><ogc:FeatureId
fid="batiment_prive.136"/></ogc:Filter></wfs:Query></wfs:GetFeature>
answer:
<?xml version="1.0" ?>
<ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc
http://62.193.xx0.1xx:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd">
<ServiceException>
java.lang.NullPointerException
java.lang.NullPointerException </ServiceException>
</ServiceExceptionReport>
Thanks again 
2007/7/17, Andrea Aime <aaime@anonymised.com>:
Jeremy DERRAC ha scritto:
> I'm using GeoServer 1.5.1 it seems to be the latest release.
>
...
> <xs:element name="the_geom" minOccurs="0" nillable="true"
> type="gml:MultiPolygonPropertyType"/>
Hmm... this dataset is not geometryless, yet I think that fix I made
covers this case too. I bet your source is a shapefile without .prj
file, or a postgis table with a SRS declared as -1 (unknown)?
Can you grab a 1.5.2-snapshot from
http://geo.openplans.org/nightly/1.5.x/ and give it a spin?
Cheers
Andrea
Jeremy DERRAC ha scritto:
I downloaded http://geo.openplans.org/nightly/1.5.x/geoserver-1.5.x-071607-bin.zip
(the latest in the displayed list)
Moved my geoserver/ to geoserver.old/
Extracted the new one to geoserver/
Deleted geoserver/data_dir
Copied geoserver.old/data_dir to geoserver/data_dir
Started geoserver/bin/startup.bat
On admin page it still display 1.5.1 I'm i doing something wrong?
Hem, no, we just did not change the labels.
Anyway i tested it again, its the same problem :
Sigh, then I don't know what's going on. Can you dump your data
to a shapefile and sent it to me by private mail along with
the GetFeature request you're issuing? I'll try to reproduce your
problem on my PC and eventually fix it.
Cheers
Andrea
Jeremy,
thanks for the sample data. I isolated the issue and hopefully fixed it.
You can check if things are going to work with you by grabbing
today's nightly, which should be out sometimes during the late
afternoon here: http://geo.openplans.org/nightly/1.5.x/
Let me know how it goes.
Cheers
Andrea