[Geoserver-users] wfs not working when other shp-store not available

Hi,

running geoserver 2.4.0 here with a set of different stores and layers.

We accidently removed a shp-file (belonging to one of the geoserver stores).
After a restart of Tomcat/Geoserver (windows) WFS request answer with an
exception:

<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows
http://example:80/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd&quot;&gt;
  <ows:Exception exceptionCode="NoApplicableCode">
    <ows:ExceptionText>java.lang.RuntimeException:
java.io.FileNotFoundException:
d:\data\geoserver2.4.x\data_dir\data\shapefiles\example.shp (The system
cannot find the file specified)
java.io.FileNotFoundException:
d:\data\geoserver2.4.x\data_dir\data\shapefiles\example.shp (The system
cannot find the file specified)
d:\data\geoserver2.4.x\data_dir\data\shapefiles\example.shp (The system
cannot find the file specified)</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

The strange thing is that in de admin pages the store just shows 'enabled'?

Does anybody have a explanation for this, or a workaround?

I think the missing/removal of one store-data file should not bork all
WFS services?

If somebody can confirm this, should I create an issue for it?

Regards,

Richard Duivenvoorde

Hi Richard,
I’d suggest creating an issue for it. I’ve come across a few other instances of where one wrong thing breaks an entire aspect of a service (typically GetCapabilities).

If you can include the entire set of relevant log entries (at GeoTOOLS developer level) that occur when this issue is triggered into the ticket, that’ll hopefully help whoever fixes it.

Cheers,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

On 24 October 2013 08:57, Richard Duivenvoorde <rdmailings@anonymised.com> wrote:

Hi,

running geoserver 2.4.0 here with a set of different stores and layers.

We accidently removed a shp-file (belonging to one of the geoserver stores).
After a restart of Tomcat/Geoserver (windows) WFS request answer with an
exception:

<ows:ExceptionReport xmlns:ows=“http://www.opengis.net/ows
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” version=“1.0.0”
xsi:schemaLocation=“http://www.opengis.net/ows
http://example:80/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd”>
<ows:Exception exceptionCode=“NoApplicableCode”>
ows:ExceptionTextjava.lang.RuntimeException:
java.io.FileNotFoundException:
d:\data\geoserver2.4.x\data_dir\data\shapefiles\example.shp (The system
cannot find the file specified)
java.io.FileNotFoundException:
d:\data\geoserver2.4.x\data_dir\data\shapefiles\example.shp (The system
cannot find the file specified)
d:\data\geoserver2.4.x\data_dir\data\shapefiles\example.shp (The system
cannot find the file specified)</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

The strange thing is that in de admin pages the store just shows ‘enabled’?

Does anybody have a explanation for this, or a workaround?

I think the missing/removal of one store-data file should not bork all
WFS services?

If somebody can confirm this, should I create an issue for it?

Regards,

Richard Duivenvoorde


October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Thu, Oct 24, 2013 at 10:57 AM, Richard Duivenvoorde
<rdmailings@anonymised.com>wrote:

Hi,

running geoserver 2.4.0 here with a set of different stores and layers.

We accidently removed a shp-file (belonging to one of the geoserver
stores).
After a restart of Tomcat/Geoserver (windows) WFS request answer with an
exception:

<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows
http://example:80/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd&quot;&gt;
  <ows:Exception exceptionCode="NoApplicableCode">
    <ows:ExceptionText>java.lang.RuntimeException:
java.io.FileNotFoundException:
d:\data\geoserver2.4.x\data_dir\data\shapefiles\example.shp (The system
cannot find the file specified)
java.io.FileNotFoundException:
d:\data\geoserver2.4.x\data_dir\data\shapefiles\example.shp (The system
cannot find the file specified)
d:\data\geoserver2.4.x\data_dir\data\shapefiles\example.shp (The system
cannot find the file specified)</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

The strange thing is that in de admin pages the store just shows 'enabled'?

Does anybody have a explanation for this, or a workaround?

I think the missing/removal of one store-data file should not bork all
WFS services?

It should not if you set "Resource error handling" in the "global"
panel to "skip misconfigured layers".
For backwards compatibility reasons, that's not the default, you have
to set it manually

If, despite setting that, you're still getting errors while generating the
capabilities documents, and it can be reproduced on the current stable
series (2.4.x right now) then it's a bug

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------