Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: newbee@Genesys on August 16, 2016, 06:29:30 PM

Title: error.badfetch.http.404 thrown by composer
Post by: newbee@Genesys on August 16, 2016, 06:29:30 PM
Hello There,

I am using Composer and I see error.badfetch.http.404: [http://IPADDRESS:PORT/JavaComposerProject/include/dbrequest.jsp] when the program try to execute a db block with correct connection and correct query.

I am new to composer and I am not sure what is it causing this. I could see dbrequest.jsp file present in include folder under main project folder.

Also there is one more instance where desired resource is not found during run time. this time it is a grammar file. I have the grammar file in place ../Resources/Grammar/DTMF path

but this is the error

2016-08-16 10:42:41.526 - eval_expr <Grammar>expr{:'' + getGrammarURI('Last4SSN_DTMF.grxml',true)}=../Resources/Grammars/DTMF/Last4SSN_DTMF.grxml - 122
2016-08-16 10:42:41.526 - input_start :VOICE|DTMF - 122
2016-08-16 10:42:41.526 - fetch_start grammar:http://IPAddress:8080/OBIVR/Resources/Grammars/DTMF/Last4SSN_DTMF.grxml - 122
2016-08-16 10:42:41.526 - fetch_end Fail (HTTP error response 404):http://IPAddress:8080/OBIVR/Resources/Grammars/DTMF/Last4SSN_DTMF.grxml - 122
2016-08-16 10:42:41.526 - input_end ERROR||||| - 122
2016-08-16 10:42:41.526 - event error.badfetch.http.404:1|HTTP error response 404 [Target: http://IPAddress:8080/OBIVR/Resources/Grammars/DTMF/Last4SSN_DTMF.grxml ] - 122


any suggestion to fix this problem.

Thanks
Title: Re: error.badfetch.http.404 thrown by composer
Post by: cavagnaro on August 16, 2016, 06:59:47 PM
again? Don't double post
404 is that the file doesn't exist.
Try to navigate to it using a common browser. Check case sensitive names
Title: Re: error.badfetch.http.404 thrown by composer
Post by: newbee@Genesys on August 17, 2016, 01:55:22 PM
Thanks...

I opened a this new post thinking that the old one might have been closed.

for the grammar file I see there was a character mismatch in the name of file. Hence BadFetch...

But for all the .jsp files in ../include folder, composer runtime throws badfetch even though the files are present and are correct name wise [including case]. Do we need to modify any built in code for this ? I am not sure please advice...
Title: Re: error.badfetch.http.404 thrown by composer
Post by: cavagnaro on August 17, 2016, 03:38:44 PM
No
As said, test opening them on Browser using the URL. There must be something wrong on the names you are typing
Title: Re: error.badfetch.http.404 thrown by composer
Post by: newbee@Genesys on August 17, 2016, 07:36:18 PM
Hello,

The file that composer is trying to fetch is dbrequest.jsp [which is present in  ../include path in the project folder]

I tried opening this file in browser again, like you mentioned.

This is what I get
[b]HTTP Status 404 - Servlet org.apache.jsp.include.dbrequest_jsp is not available[/b]

Then I changed the name of the file in Browser address bar as dbreqest.jsp [a wrong name]

This is what I get
[b]HTTP Status 404 - /JavaComposerProject/include/dbreqest.jsp[/b]

advise please...
Title: Re: error.badfetch.http.404 thrown by composer
Post by: newbee@Genesys on August 17, 2016, 08:08:54 PM
Hello,

Composer is trying to get the corresponding .class file after fetching dbrequest.jsp file from ../include path

for all .jsp files present in ../include path, the corresponding .class and .java files are present under ../WEB-INF/src/org/apache/jsp/include path under main project folder

I tried opening each and every .java file from the browser and I get 404.

I deployed the project from composer, using Project--> properties --> tomcat --deploy option... I am not sure if ../WEB-INF/src/org/apache/jsp/include is deployed properly....

I looked into C:\Program Files\GCTI\Composer 8.1\tomcat\webapps path, I dont see my project here.

where do composer deploy project physically on server ? how do I know if my project is deployed correctly ?

Please advise....
Title: Re: error.badfetch.http.404 thrown by composer
Post by: newbee@Genesys on August 18, 2016, 11:30:35 AM
Hello,

After some trial and error steps I found that composer first fetches dbrequest.jsp file...
in my project, by default, it is present under ../include path....

After fetching dbrequest.jsp file, composer then fetches dbrequest_jsp.class file..
in my project, by default, it is present under ../WEB-INF/src/org/apache/jsp/inlude path...

After fetching dbrequest_jsp.class file, composer then tries to fetch com.genesyslab.studio.backendlogic.db.CVDBBackendHandler file
in my project, it is not present under any location...

from composer log:
2016-08-18 04:05:31.558 - fetch_start data:http://IPADDESS:8080/TFSOBIVR/include/dbrequest.jsp - 228
2016-08-18 04:05:31.558 - fetch_end Fail (HTTP error response 500):http://IPADDRESS:8080/TFSOBIVR/include/dbrequest.jsp - 228
2016-08-18 04:05:31.558 - event error.badfetch.http.500:1|HTTP error response 500 [Target: http://IPADDESS:8080/TFSOBIVR/include/dbrequest.jsp ] - 228
2016-08-18 04:05:31.558 - event_handler_enter :.|http://IPADDRESS:8080/TFSOBIVR/src/AcctLookUpDB.vxml - 228


Therefore the composer over all throws badfetch 500 error wrt dbrequest.jsp file....

Please suggest what can I do to fix this.. Do I have to add a jar file cotaining com.genesyslab.studio.backendlogic.db.CVDBBackendHandler file ?
Title: Re: error.badfetch.http.404 thrown by composer
Post by: newbee@Genesys on August 18, 2016, 08:12:36 PM
Can somebody suggest something please ? I am stuck
Title: Re: error.badfetch.http.404 thrown by composer
Post by: Kubig on August 19, 2016, 10:13:12 AM
Did you try to get the backend scripts on mentioned IP:PORT, for example using CURL? To make sure that the URI is valid and is responding.
Title: Re: error.badfetch.http.404 thrown by composer
Post by: newbee@Genesys on August 19, 2016, 10:55:55 AM
Hello Kubig,

I didn't get CURL part? You mean pulling the file com.genesyslab.studio.backendlogic.db.CVDBBackendHandler from some URL ?

I haven't added any jar to composer either. Not sure if I am required to and if so, where can I get such jars...


waiting for your valuable inputs...
Title: Re: error.badfetch.http.404 thrown by composer
Post by: Kubig on August 19, 2016, 10:58:20 AM
Do not understand what do you mean. I guess, it is very easy, just check if the requested files are presented on the mentioned URI (my guess is no, you forgot to deploy all backends scripts and files to the target WebServer).