[Zoo-discuss] Reg: Exception in DescribeProcess request

Fenoy Gerald gerald.fenoy at geolabs.fr
Fri Aug 5 00:13:38 PDT 2016


Please can you clean the zoo_error.log, then run the request again and give us the contant of the file.

Please also make sure to remove the file from the cache.

I hope this can help us to identify why there is an issue in downloading or storing the value sent by reference.

Best regards,

> Le 5 août 2016 à 09:02, Anju Bajpai <bajpai.anju at gmail.com> a écrit :
> 
> Dear Fenoy,
> 
> Yes correct. The REQUEST_METHOD and CONTENT_TYPE environment variables were not defined from terminal. After defining same internal server error is coming
> 
> Anju Bajpai
> 
> 
> 
> 
> On Fri, Aug 5, 2016 at 12:09 PM, Fenoy Gerald <gerald.fenoy at geolabs.fr> wrote:
> Dear Anju,
> it means that you did not define REQUEST_METHOD and CONTENT_TYPE environment variables from your terminal, so the ZOO-Kernel expects to receive a GET request, which is not the case.
> 
> After defining the environment variable from your cmd, you should be able to run the request.
> 
> I hope this helps,
> Best regards,
> 
> 
> > Le 5 août 2016 à 06:28, Anju Bajpai <bajpai.anju at gmail.com> a écrit :
> >
> > Dear Fenoy,
> >
> > I have changed the request xml file with the xml request file that you have given. Now following error has come.
> >
> > Anju
> >
> > <image.png>
> >
> > On Tue, Aug 2, 2016 at 6:08 PM, Fenoy Gerald <gerald.fenoy at geolabs.fr> wrote:
> > There is an issue with the content of the input_request.xml file.
> >
> > Can you please try with the request attached to this email and report again ?
> >
> > I don’t get your mention of zcfg parsing, the issue is about the xml file used. Nevertheless, zcfg are parsed from C code.
> >
> > Best regards,
> >
> >
> >
> >
> >
> >
> > > Le 2 août 2016 à 14:00, Anju Bajpai <bajpai.anju at gmail.com> a écrit :
> > >
> > > Dear Fenoy,
> > >
> > > This was the zoo-error.log report. It seems that the resource request string parsing is not properly done and so it is throwing this exception. Please suggest. How the zcfg files are parsed - using python?
> > >
> > > input_request.xml:7: parser error : EntityRef: expecting ';'
> > > g/cgi-bin/proxy.cgi?url=http://zoo-project.org/geoserver/ows?SERVICE=WMS&VERSION
> > >                                                                                ^
> > > input_request.xml:7: parser error : EntityRef: expecting ';'
> > > y.cgi?url=http://zoo-project.org/geoserver/ows?SERVICE=WMS&VERSION=1.3.0&REQUEST
> > >                                                                                ^
> > > input_request.xml:7: parser error : EntityRef: expecting ';'
> > > roject.org/geoserver/ows?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT
> > >                                                                                ^
> > > input_request.xml:7: parser error : EntityRef: expecting ';'
> > > ws?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image/png&TRANSPARENT
> > >                                                                                ^
> > > input_request.xml:7: parser error : EntityRef: expecting ';'
> > > SION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS
> > >                                                                                ^
> > > input_request.xml:7: parser error : EntityRef: expecting ';'
> > > GetFeatureInfo&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=topp:states&LAYERS
> > >                                                                                ^
> > > input_request.xml:7: parser error : EntityRef: expecting ';'
> > > age/png&TRANSPARENT=true&QUERY_LAYERS=topp:states&LAYERS=topp:states&INFO_FORMAT
> > >                                                                                ^
> > > ERROR 4: Failed to read GeoJSON data
> > > FAILURE:
> > > Unable to open datasource `/vsimem/input_6008.json' with the following drivers.
> > >   -> ESRI Shapefile
> > >   -> MapInfo File
> > >   -> UK .NTF
> > >   -> SDTS
> > >   -> TIGER
> > >   -> S57
> > >   -> DGN
> > >   -> VRT
> > >   -> REC
> > >   -> Memory
> > >   -> BNA
> > >   -> CSV
> > >   -> NAS
> > >   -> GML
> > >   -> GPX
> > >   -> LIBKML
> > >   -> KML
> > >   -> GeoJSON
> > >   -> Interlis 1
> > >   -> Interlis 2
> > >   -> GMT
> > >   -> GPKG
> > >   -> SQLite
> > >   -> ODBC
> > >   -> WAsP
> > >   -> PGeo
> > >   -> MSSQLSpatial
> > >   -> PostgreSQL
> > >   -> MySQL
> > >   -> PCIDSK
> > >   -> OpenFileGDB
> > >   -> XPlane
> > >   -> AVCBin
> > >   -> AVCE00
> > >   -> DXF
> > >   -> Geoconcept
> > >   -> GeoRSS
> > >   -> GPSTrackMaker
> > >   -> VFK
> > >   -> PGDump
> > >   -> OSM
> > >   -> GPSBabel
> > >   -> SUA
> > >   -> OpenAir
> > >   -> PDS
> > >   -> WFS
> > >   -> HTF
> > >   -> AeronavFAA
> > >   -> Geomedia
> > >   -> EDIGEO
> > >   -> GFT
> > >   -> GME
> > >   -> SVG
> > >   -> CouchDB
> > >   -> Idrisi
> > >   -> ARCGEN
> > >   -> SEGUKOOA
> > >   -> SEGY
> > >   -> ODS
> > >   -> XLSX
> > >   -> ElasticSearch
> > >   -> PDF
> > >   -> Walk
> > >   -> CartoDB
> > >   -> SXF
> > > Anju Bajpai
> > >
> > > On Tue, Aug 2, 2016 at 3:39 PM, Fenoy Gerald <gerald.fenoy at geolabs.fr> wrote:
> > > Thanks for the feedbacks.
> > >
> > > Please also define the required environment settings before running the command to execute your service, using the following commands:
> > >
> > > set REQUEST_METHOD=POST
> > > set CONTENT_TYPE=text/xml
> > >
> > > Before running the request, you may also remove the content of the zoo_error.log, this way you will only have the debug messages of the last run in it.
> > >
> > > Once you have run the Execute request, please have a look inside the zoo_error.log file. It should contains the debug messages describing the encountered issue.
> > >
> > > I hope this helps,
> > > Best regards,
> > >
> > >
> > > > Le 2 août 2016 à 10:32, Anju Bajpai <bajpai.anju at gmail.com> a écrit :
> > > >
> > > > Dear Sir,
> > > >
> > > > I have copied the following xml request in req.xml
> > > >
> > > > <wps:Execute service="WPS" version="1.0.0" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 ../wpsExecute_request.xsd" language="en-US">
> > > > <!-- template-version: 0.21 -->
> > > > <ows:Identifier>Buffer</ows:Identifier>
> > > > <wps:DataInputs>
> > > > <wps:Input>
> > > > <ows:Identifier>InputPolygon</ows:Identifier>
> > > > <wps:Reference xlink:href="http://zoo-project.org/cgi-bin/proxy.cgi?url=http://zoo-project.org/geoserver/ows?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=topp:states&LAYERS=topp:states&INFO_FORMAT=text/xml%26I%3D50%26J%3D50%26CRS%3DEPSG%253A3857%26STYLES%3D%26WIDTH%3D101%26HEIGHT%3D101%26BBOX%3D-13037099.410874786%252C4358744.298159195%252C-12048921.509204028%252C5346922.199829953" mimeType="text/xml"></wps:Reference>
> > > > </wps:Input>
> > > > <wps:Input>
> > > > <ows:Identifier>BufferDistance</ows:Identifier>
> > > > <wps:Data>
> > > > <wps:LiteralData dataType="integer">1</wps:LiteralData>
> > > > </wps:Data>
> > > > </wps:Input>
> > > > </wps:DataInputs>
> > > > <wps:ResponseForm>
> > > > <wps:RawDataOutput mimeType="application/json">
> > > > <ows:Identifier>Result</ows:Identifier>
> > > > </wps:RawDataOutput>
> > > > </wps:ResponseForm>
> > > > </wps:Execute>
> > > >
> > > > and run the command zoo_loader.cgi < ../tmp/req.xml
> > > >
> > > > I got the following result
> > > >
> > > >
> > > > <image.png>
> > > >
> > > > Anju Bajpai
> > > >
> > > > On Tue, Aug 2, 2016 at 12:29 PM, Fenoy Gerald <gerald.fenoy at geolabs.fr> wrote:
> > > > Dear Anju,
> > > > it is very strange that the zcm contains none, it should contain the mimeType returned by the request used to access the InputPolygon reference.
> > > >
> > > > So it means something went wrong when downloading the ressource.
> > > >
> > > > You may try to run the execute request from the command line and see if any more information are displayed there, you can refer to this part of the documentation [1].
> > > >
> > > > Also, note that you should remove the zcm and zca files when they are empty or contains none. In other case the ZOO-Kernel will always use this local copy as the value for the input, so your request will always failed.
> > > >
> > > > I hope it helps and we can get more info by running from the command line.
> > > >
> > > > Best regards,
> > > >
> > > > [1] http://www.zoo-project.org/docs/services/debug.html#command-line
> > > >
> > > >
> > > > > Le 2 août 2016 à 06:23, Anju Bajpai <bajpai.anju at gmail.com> a écrit :
> > > > >
> > > > > Dear Fenoy,
> > > > >
> > > > > In the zcm file only 'none' is written. Also when the request for input polygon from the computer, it returns the feature collection in Response text as well as JSON format. This is shown below:-
> > > > >
> > > > > <image.png>
> > > > >
> > > > > Anju Bajpai
> > > > > RRSC-C
> > > > > Nagpur
> > > > >
> > > > > On Mon, Aug 1, 2016 at 5:48 PM, Fenoy Gerald <gerald.fenoy at geolabs.fr> wrote:
> > > > > Dear Anju,
> > > > > may I ask what happen when you try to access the Reference sent for InputPolygon from the computer where the ZOO-Kernel is running ?
> > > > >
> > > > > I would also appreciate to have a look into the content of the zcm file.
> > > > >
> > > > > I hope to hear back from you.
> > > > >
> > > > > Best regards,
> > > > >
> > > > > > Le 1 août 2016 à 12:04, Anju Bajpai <bajpai.anju at gmail.com> a écrit :
> > > > > >
> > > > > > Dear Fenoy,
> > > > > >
> > > > > > Yes two files with extension zca and zcm got generated. The zca file is 0KB and zcm 1KB.
> > > > > >
> > > > > > Anju Bajpai
> > > > > >
> > > > > > On Mon, Aug 1, 2016 at 2:34 PM, Fenoy Gerald <gerald.fenoy at geolabs.fr> wrote:
> > > > > > Dear Anju,
> > > > > > after you created the directory, is there any created file inside c:/inetpub/tmp after you try executing a service ?
> > > > > >
> > > > > > If no, it means there is an issue when the ZOO-Kernel try to create file in this directory. So you may try to remove the cacheDir line from your main.cfg file and rerun the same Execute request again.
> > > > > >
> > > > > > From the error message returned by the service, it seems that the ZOO-Kernel is not able to access the external ressource or is using cache but cannot use it properly.
> > > > > >
> > > > > > I hope this helps.
> > > > > >
> > > > > > Best regards,
> > > > > >
> > > > > > > Le 1 août 2016 à 10:22, Anju Bajpai <bajpai.anju at gmail.com> a écrit :
> > > > > > >
> > > > > > > Dear Fenoy,
> > > > > > >
> > > > > > > I created the folder and given IUsers and IISUsers all permissions, still same error is coming.
> > > > > > > It seems some stack overflow exception in GDAL. Can you suggest something.
> > > > > > >
> > > > > > > Anju Bajpai
> > > > > > >
> > > > > > > On Mon, Aug 1, 2016 at 1:46 PM, Fenoy Gerald <gerald.fenoy at geolabs.fr> wrote:
> > > > > > > Hello,
> > > > > > > sorry for the issue you face.
> > > > > > >
> > > > > > > In the main.cfg used to install on windows platform [1] the cacheDir is defined as c:/inetpub/tmp/ which means that this directory should exist before trying to access external ressources. This directory should be created or the line defining the cacheDir should be removed from your local main.cfg. I have also noticed that this directory is not created by the installer, so this have to be fixed directly in the installer also.
> > > > > > >
> > > > > > > I hope this helps.
> > > > > > >
> > > > > > > Best regards,
> > > > > > >
> > > > > > > [1] http://www.zoo-project.org/dl/win_main.cfg
> > > > > > >
> > > > > > > > Le 1 août 2016 à 09:57, Anju Bajpai <bajpai.anju at gmail.com> a écrit :
> > > > > > > >
> > > > > > > >
> > > > > > > > I have installed ZOo in a 32 bit machine.the getcapabilities,describeprocess and execute request are giving correct output
> > > > > > > > http://localhost/cgi-bin/zoo_loader.cgi?Service=WPS&Request=GetCapabilities&Version=1.0.0
> > > > > > > >
> > > > > > > >
> > > > > > > > http://localhost/cgi-bin/zoo_loader.cgi?Service=WPS&Request=DescribeProcess&Version=1.0.0&Identifier=HelloPy.
> > > > > > > >
> > > > > > > >
> > > > > > > > http://localhost/cgi-bin/zoo_loader.cgi?Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloPy&DataInputs=a=My%20Name@dataType=string
> > > > > > > >
> > > > > > > > But when i am running the zoo-demo application the zoo kernel gets loaded but after running the buffer method it gives an access exception error
> > > > > > > >
> > > > > > > >
> > > > > > > > <?xml version="1.0" encoding="utf-8"?>
> > > > > > > >
> > > > > > > > <ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://schemas.opengis.net/ows/1.1.0/owsExceptionReport
> > > > > > > > .xsd" xml:lang="en-US" version="1.1.0">
> > > > > > > >
> > > > > > > >   <ows:Exception exceptionCode="InternalError">
> > > > > > > >
> > > > > > > >     <ows:ExceptionText>Unable to run the Service. The message returned back by the Service was the following: Unable to open datasource `/vsimem/input_5048.json' with the following drivers.</ows:ExceptionText
> > > > > > > > >
> > > > > > > >
> > > > > > > >   </ows:Exception>
> > > > > > > >
> > > > > > > > </ows:ExceptionReport>
> > > > > > > >
> > > > > > > > Anju Bajpai
> > > > > > > > _______________________________________________
> > > > > > > > Zoo-discuss mailing list
> > > > > > > > Zoo-discuss at lists.osgeo.org
> > > > > > > > http://lists.osgeo.org/mailman/listinfo/zoo-discuss
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Gérald Fenoy
> > > > > > > http://wiki.osgeo.org/wiki/User:Djay
> > > > > > >
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Zoo-discuss mailing list
> > > > > > > Zoo-discuss at lists.osgeo.org
> > > > > > > http://lists.osgeo.org/mailman/listinfo/zoo-discuss
> > > > > >
> > > > > >
> > > > > >
> > > > > > Gérald Fenoy
> > > > > > http://wiki.osgeo.org/wiki/User:Djay
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > Zoo-discuss mailing list
> > > > > > Zoo-discuss at lists.osgeo.org
> > > > > > http://lists.osgeo.org/mailman/listinfo/zoo-discuss
> > > > >
> > > > >
> > > > >
> > > > > Gérald Fenoy
> > > > > http://wiki.osgeo.org/wiki/User:Djay
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > Gérald Fenoy
> > > > http://wiki.osgeo.org/wiki/User:Djay
> > > >
> > > >
> > >
> > >
> > >
> > > Gérald Fenoy
> > > http://wiki.osgeo.org/wiki/User:Djay
> > >
> > >
> > > _______________________________________________
> > > Zoo-discuss mailing list
> > > Zoo-discuss at lists.osgeo.org
> > > http://lists.osgeo.org/mailman/listinfo/zoo-discuss
> >
> >
> >
> > Gérald Fenoy
> > http://wiki.osgeo.org/wiki/User:Djay
> >
> >
> >
> 
> 
> 
> Gérald Fenoy
> http://wiki.osgeo.org/wiki/User:Djay
> 
> 



Gérald Fenoy
http://wiki.osgeo.org/wiki/User:Djay



More information about the Zoo-discuss mailing list