[Zoo-discuss] ZOORequest class is missing

François Dodé dode.francois at gmail.com
Mon May 22 08:36:18 PDT 2017


Thank you for your presicions.

I have noticed an issue in the file ulinet.c of 825 revision :
The env variable is undeclared in the function header_write_data but use in
line 96.
For test I set : char env[256]
I don't know if it's the right correction but I when I do GET request on
web service who send cookies to the client the ZOORequest failed.

2017-05-22 14:56 GMT+02:00 Fenoy Gerald <gerald.fenoy at geolabs.fr>:

> François,
> sorry for being not clear.
>
> In the file ZOOMakefile.opts (generated by the configure script, so you
> may also edit ZOOMakefile.opts.in in case you run the ./configure command
> again) you should add to you CFLAGS definition the following option:
> -DMSG_LAF_VERBOSE. Then remove any ulinet.o already built and run make
> again.
>
> I hope it helps.
>
> Best regards,
>
> Gérald Fenoy
> http://wiki.osgeo.org/wiki/User:Djay
>
> > Le 22 mai 2017 à 14:52, François Dodé <dode.francois at gmail.com> a écrit
> :
> >
> > Hello,
> >
> > Thank you.
> > I tested to add MSG_LAF_VERBOSE= -DMSG_LAF_VERBOSE in the zoo-kernel
> Makefile but it's not working.
> >
> > In the main.cfg I put this in the main section:
> > logPath = /var/log/zoo/out.log
> > But nothing is log when I use the ZOO.Request.Get in the script hello.js
> :
> > ./zoo_loader.cgi "Request=Execute&service=WPS&
> Identifier=hellojs&version=1.0.0&DataInputs=S=test"
> >
> >
> >
> > Best regards
> >
> >
> >
> > 2017-05-22 10:21 GMT+02:00 Fenoy Gerald <gerald.fenoy at geolabs.fr>:
> > Hello François,
> > sorry for late reply.
> >
> > In case you want to debug the CURL call used for every internal HTTP
> request and the one coming from the JS ZOO-API call, then you can define
> the MSG_LAF_VERBOSE variable at compilation time to produce a debug
> version. Once you have added the -DMSG_LAF_VERBOSE in your Makefile, simply
> remove the ulinet.o and run the make command again.
> >
> > In case you need only to debug the result returned by the ZOO-API call,
> then you can simply use the alert function from the ZOO-API to display
> debug messages in your web server error log file. In case you want to
> handle exception you can then use basic try / catch blocks.
> >
> > I hope it helps.
> >
> > ps: I have noticed that the discussion is not available to the public,
> you may think of answering this email using the ZOO-Discuss mailing list.
> What you are asking may be of interest to other also.
> >
> > Gérald Fenoy
> > http://wiki.osgeo.org/wiki/User:Djay
> >
> > > Le 20 mai 2017 à 19:26, François Dodé <dode.francois at gmail.com> a
> écrit :
> > >
> > > Hello Gerald,
> > >
> > > Thanks a lot for your help. Now it's work perfectly with the new
> revision.
> > > I think I had an old revision.
> > >
> > > Another question, how can I get log from the ZOORequest and handle
> exceptions ?
> > >
> > > Best regards,
> > >
> > > Dodé François
> > >
> > > 2017-05-17 14:55 GMT+02:00 Fenoy Gerald <gerald.fenoy at geolabs.fr>:
> > > Hello François,
> > > thanks for the feedbacks about this issue.
> > >
> > > May I ask you to build a new ZOO-Kernel using the revision 825 [1] ?
> This version should solve this issue.
> > >
> > > I hope to hear back from you.
> > >
> > > Best regards,
> > >
> > > [1] http://www.zoo-project.org/trac/changeset/825
> > >
> > > > Le 17 mai 2017 à 10:25, François Dodé <dode.francois at gmail.com> a
> écrit :
> > > >
> > > > Hello Gerald,
> > > >
> > > > Thank you for your quick response.
> > > > Maybe it's my install of mozjs. I run the ZOO on CentOs 6 and I had
> to build this library.
> > > > Here is the library :
> > > > http://ftp.mozilla.org/pub/js/js185-1.0.0.tar.gz
> > > >
> > > > I add the request GET in the script hello.js.
> > > > My Javascript process call the ZOO.Request.Get like this :
> > > > ZOO.Request.Get("http://www.google.fr/")
> > > > I put the result in the alert() function.
> > > >
> > > > Best regards,
> > > >
> > > > Dodé François
> > > >
> > > >
> > > > 2017-05-12 19:42 GMT+02:00 Fenoy Gerald <gerald.fenoy at geolabs.fr>:
> > > > Hello François,
> > > > ZOORequest shall be defined at runtime by the ZOO-Kernel [1].
> > > >
> > > > Are you sure the issue comes from call to ZOO.Request.Get ?
> > > >
> > > > Can you please provide more details about your JavScript service ?
> > > >
> > > > Best regards,
> > > >
> > > > [1] http://www.zoo-project.org/trac/browser/trunk/zoo-
> project/zoo-kernel/service_internal_js.c#L152
> > > >
> > > > > Le 12 mai 2017 à 16:06, François Dodé <dode.francois at gmail.com> a
> écrit :
> > > > >
> > > > > Hello,
> > > > >
> > > > > I want to make a GET request with the ZOO-api but I have the
> following error :
> > > > > <ows:Exception exceptionCode="InternalError">
> > > > >     <ows:ExceptionText>ZOO Kernel failed to process your request,
> receiving signal 11 = SIGSEGV</ows:ExceptionText>
> > > > >  </ows:Exception>
> > > > >
> > > > > In the ZOO-api.js in the function ZOO.Request.Get(url, params) it
> returns a class named ZOORequest but this class doesn't exist.
> > > > >
> > > > > Have you a solution ?
> > > > >
> > > > > Best regards
> > > > > _______________________________________________
> > > > > Zoo-discuss mailing list
> > > > > Zoo-discuss at lists.osgeo.org
> > > > > https://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
> > >
> > >
> >
> >
> > _______________________________________________
> > Zoo-discuss mailing list
> > Zoo-discuss at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/zoo-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20170522/364bfd0a/attachment-0001.html>


More information about the Zoo-discuss mailing list