[Geoserver-users] 1.6 problems

Hello All,

I recently uprgade from 1.4 to 1.6 RC1 and now I'm noticing that I have to
make changes to many of my applications to get things to work. So my first
of what may be many questions involves a srs problem.

When I send this URL:

http://www.cei.psu.edu:8080/geoserver/wfs?request=GetFeature&srsname=EPSG:10
2003&bbox=-1371701.0291262139,2654.0932038833853,-132111.84077669913,972517.
8563106796&typename=cei:mlra_albers

Which always worked in 1.4, no returns this error:

<ows:ExceptionReport version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows
http://www.cei.psu.edu:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.x
sd">
-
  <ows:Exception exceptionCode="NoApplicableCode">
-
  <ows:ExceptionText>
java.lang.RuntimeException: Could not
      decode srs
      &apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
      java.lang.RuntimeException: Could not decode srs
      &apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
      java.lang.RuntimeException: Could not decode srs
&apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

The srs 102003, which I defined, still works fine with WMS.

Any thoughts?

Thanks,
Steve

Stephen Crawford
Center for Environmental Informatics
The Pennsylvania State University

Hi Stephen,

I fear that this is failing because you are not specifying the version
of wfs to be 1.0.0, and its defaulting to 1.1.0 which does srs stuff a
bit differently. Do you get the same problem is you append version=1.0.0?

-Justin

Stephen Crawford wrote:

Hello All,

I recently uprgade from 1.4 to 1.6 RC1 and now I'm noticing that I have to
make changes to many of my applications to get things to work. So my first
of what may be many questions involves a srs problem.

When I send this URL:

http://www.cei.psu.edu:8080/geoserver/wfs?request=GetFeature&srsname=EPSG:10
2003&bbox=-1371701.0291262139,2654.0932038833853,-132111.84077669913,972517.
8563106796&typename=cei:mlra_albers

Which always worked in 1.4, no returns this error:

<ows:ExceptionReport version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows
http://www.cei.psu.edu:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.x
sd">
-
  <ows:Exception exceptionCode="NoApplicableCode">
-
  <ows:ExceptionText>
java.lang.RuntimeException: Could not
      decode srs
      &apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
      java.lang.RuntimeException: Could not decode srs
      &apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
      java.lang.RuntimeException: Could not decode srs
&apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

The srs 102003, which I defined, still works fine with WMS.

Any thoughts?

Thanks,
Steve

Stephen Crawford
Center for Environmental Informatics
The Pennsylvania State University

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4762df75222391804284693!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Justin,

That did not work with the specific problem I mentioned--it gives the same
error--but it helps A LOT on some of the other problems that appeared. I
didn't know I could specify which wfs version, and I was a bit irate that
the wfs gml being returned by 1.6 was so different, and I was thinking I
would have to spend half the weekend fixing a half dozen client apps. Now I
believe those fixes should be real easy. YOU MADE MY DAY!

Thanks,
Steve

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net
[mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of Justin
Deoliveira
Sent: Friday, December 14, 2007 3:43 PM
To: Stephen Crawford
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] 1.6 problems

Hi Stephen,

I fear that this is failing because you are not specifying the version of
wfs to be 1.0.0, and its defaulting to 1.1.0 which does srs stuff a bit
differently. Do you get the same problem is you append version=1.0.0?

-Justin

Stephen Crawford wrote:

Hello All,

I recently uprgade from 1.4 to 1.6 RC1 and now I'm noticing that I
have to make changes to many of my applications to get things to work.
So my first of what may be many questions involves a srs problem.

When I send this URL:

http://www.cei.psu.edu:8080/geoserver/wfs?request=GetFeature&srsname=E
PSG:10

2003&bbox=-1371701.0291262139,2654.0932038833853,-132111.84077669913,972517.

8563106796&typename=cei:mlra_albers

Which always worked in 1.4, no returns this error:

<ows:ExceptionReport version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows
http://www.cei.psu.edu:8080/geoserver/schemas/ows/1.0.0/owsExceptionRe
port.x
sd">
-
  <ows:Exception exceptionCode="NoApplicableCode">
-
  <ows:ExceptionText>
java.lang.RuntimeException: Could not
      decode srs
      &apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
      java.lang.RuntimeException: Could not decode srs
      &apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
      java.lang.RuntimeException: Could not decode srs
&apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

The srs 102003, which I defined, still works fine with WMS.

Any thoughts?

Thanks,
Steve

Stephen Crawford
Center for Environmental Informatics
The Pennsylvania State University

----------------------------------------------------------------------
---
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything
Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marke
tplace _______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4762df75222391804284693!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything Open
Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Stephen,

Glad that helped!! So yeah, in 1.6 a wcs 1.1 implementation was added so
the version parameter actually matters. Unfortunately the spec requires
that 1.1 be the default, which kind of leaves all clients that "assumed"
1.0 out in the cold.

Actually, the spec does require that an exception be thrown when the
version is missing on a non-capabilities request. While this may be good
for error reporting it may be a bit harsh as well. This has been the
source of a debate over the last while.

I will open this up to others? Should be throw an exception when the
version is missing?

As for the original problem with the srs i am at a bit of a loss... it
looks like it should be ok... especially if it works with WMS and the
srs is valid. Is there any chance you can include the entire stack trace
via the error log or console?

Thanks,

-Justin

Stephen Crawford wrote:

Justin,

That did not work with the specific problem I mentioned--it gives the same
error--but it helps A LOT on some of the other problems that appeared. I
didn't know I could specify which wfs version, and I was a bit irate that
the wfs gml being returned by 1.6 was so different, and I was thinking I
would have to spend half the weekend fixing a half dozen client apps. Now I
believe those fixes should be real easy. YOU MADE MY DAY!

Thanks,
Steve

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net
[mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of Justin
Deoliveira
Sent: Friday, December 14, 2007 3:43 PM
To: Stephen Crawford
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] 1.6 problems

Hi Stephen,

I fear that this is failing because you are not specifying the version of
wfs to be 1.0.0, and its defaulting to 1.1.0 which does srs stuff a bit
differently. Do you get the same problem is you append version=1.0.0?

-Justin

Stephen Crawford wrote:

Hello All,

I recently uprgade from 1.4 to 1.6 RC1 and now I'm noticing that I
have to make changes to many of my applications to get things to work.
So my first of what may be many questions involves a srs problem.

When I send this URL:

http://www.cei.psu.edu:8080/geoserver/wfs?request=GetFeature&srsname=E
PSG:10

2003&bbox=-1371701.0291262139,2654.0932038833853,-132111.84077669913,972517.

8563106796&typename=cei:mlra_albers

Which always worked in 1.4, no returns this error:

<ows:ExceptionReport version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows
http://www.cei.psu.edu:8080/geoserver/schemas/ows/1.0.0/owsExceptionRe
port.x
sd">
-
  <ows:Exception exceptionCode="NoApplicableCode">
-
  <ows:ExceptionText>
java.lang.RuntimeException: Could not
      decode srs
      &apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
      java.lang.RuntimeException: Could not decode srs
      &apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
      java.lang.RuntimeException: Could not decode srs
&apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

The srs 102003, which I defined, still works fine with WMS.

Any thoughts?

Thanks,
Steve

Stephen Crawford
Center for Environmental Informatics
The Pennsylvania State University

----------------------------------------------------------------------
---
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything
Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marke
tplace _______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything Open
Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4762ee25258052085621377!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Here's the relevent portion of the error log. I included it as an
attachment so the email doesn't mangle it too much. Thanks.

-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Sent: Friday, December 14, 2007 4:09 PM
To: Stephen Crawford
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] 1.6 problems

Hi Stephen,

Glad that helped!! So yeah, in 1.6 a wcs 1.1 implementation was added so the
version parameter actually matters. Unfortunately the spec requires that 1.1
be the default, which kind of leaves all clients that "assumed"
1.0 out in the cold.

Actually, the spec does require that an exception be thrown when the version
is missing on a non-capabilities request. While this may be good for error
reporting it may be a bit harsh as well. This has been the source of a
debate over the last while.

I will open this up to others? Should be throw an exception when the version
is missing?

As for the original problem with the srs i am at a bit of a loss... it looks
like it should be ok... especially if it works with WMS and the srs is
valid. Is there any chance you can include the entire stack trace via the
error log or console?

Thanks,

-Justin

Stephen Crawford wrote:

Justin,

That did not work with the specific problem I mentioned--it gives the
same error--but it helps A LOT on some of the other problems that
appeared. I didn't know I could specify which wfs version, and I was
a bit irate that the wfs gml being returned by 1.6 was so different,
and I was thinking I would have to spend half the weekend fixing a
half dozen client apps. Now I believe those fixes should be real easy.

YOU MADE MY DAY!

Thanks,
Steve

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net
[mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of
Justin Deoliveira
Sent: Friday, December 14, 2007 3:43 PM
To: Stephen Crawford
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] 1.6 problems

Hi Stephen,

I fear that this is failing because you are not specifying the version
of wfs to be 1.0.0, and its defaulting to 1.1.0 which does srs stuff a
bit differently. Do you get the same problem is you append version=1.0.0?

-Justin

Stephen Crawford wrote:

Hello All,

I recently uprgade from 1.4 to 1.6 RC1 and now I'm noticing that I
have to make changes to many of my applications to get things to work.
So my first of what may be many questions involves a srs problem.

When I send this URL:

http://www.cei.psu.edu:8080/geoserver/wfs?request=GetFeature&srsname=
E
PSG:10

2003&bbox=-1371701.0291262139,2654.0932038833853,-132111.84077669913,972517.

8563106796&typename=cei:mlra_albers

Which always worked in 1.4, no returns this error:

<ows:ExceptionReport version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows
http://www.cei.psu.edu:8080/geoserver/schemas/ows/1.0.0/owsExceptionR
e
port.x
sd">
-
  <ows:Exception exceptionCode="NoApplicableCode">
-
  <ows:ExceptionText>
java.lang.RuntimeException: Could not
      decode srs
      &apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
      java.lang.RuntimeException: Could not decode srs
      &apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
      java.lang.RuntimeException: Could not decode srs
&apos;http://www.opengis.net/gml/srs/epsg.xml#102003&apos;
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

The srs 102003, which I defined, still works fine with WMS.

Any thoughts?

Thanks,
Steve

Stephen Crawford
Center for Environmental Informatics
The Pennsylvania State University

---------------------------------------------------------------------
-
---
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything
Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/mark
e tplace _______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

----------------------------------------------------------------------
---
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything
Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marke
tplace _______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4762ee25258052085621377!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

srs_error.txt (7.64 KB)

Stephen Crawford ha scritto:

Here's the relevent portion of the error log. I included it as an
attachment so the email doesn't mangle it too much. Thanks.

2007-12-14 14:41:20,142 WARN [geoserver.ows] -
java.lang.RuntimeException: Could not decode srs 'http://www.opengis.net/gml/srs/epsg.xml#102003
         at org.geoserver.wfs.ReprojectingFilterVisitor.visit(ReprojectingFilterVisitor.java:103)
         at org.geotools.filter.spatial.BBOXImpl.accept(BBOXImpl.java:116)
         at org.geoserver.wfs.WFSReprojectionUtil.reprojectFilter(WFSReprojectionUtil.java:87)
         at org.geoserver.wfs.WFSReprojectionUtil.normalizeFilterCRS(WFSReprojectionUtil.java:102)
         at org.geoserver.wfs.GetFeature.toDataQuery(GetFeature.java:367)
         at org.geoserver.wfs.GetFeature.run(GetFeature.java:250)

Aah, right, it's an issue we fixed after rc1,
http://jira.codehaus.org/browse/GEOT-1563

So stay tuned for rc2 :slight_smile:
Cheers
Andrea