Single Test Run Report - Error 404

Cyrille Riviere, modified 10 Years ago.

Single Test Run Report - Error 404

Youngling Posts: 9 Join Date: 2/9/10 Recent Posts
In Single Test Run Report, after selecting my Test Run and clicking on "Generate the Report" icon into the Action column, I've got an Error 404 page with the following content:
Etat HTTP 404 - Could not find resource for relative : /reportTestRunSingle/P00001//CyrilleRiviere/pdf/1363 of full path: http://klaros.systran.local:18080/klaros-web/seam/resource/rest/reportTestRunSingle/P00001//CyrilleRiviere/pdf/1363

I don't know if the issue comes from a permission access?
I used Klaros 2.4.4 with a MySQL database.
thumbnail
Torsten Stolpmann, modified 10 Years ago.

RE: Single Test Run Report - Error 404

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Cyrille,

can you please attach the tomcat log file?

Regards,

Torsten
Cyrille Riviere, modified 10 Years ago.

RE: Single Test Run Report - Error 404

Youngling Posts: 9 Join Date: 2/9/10 Recent Posts
sure, the logs are attached.

Thanks for your help.

Cyrille
thumbnail
Torsten Stolpmann, modified 10 Years ago.

RE: Single Test Run Report - Error 404

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Cyrille,

A missing resource entry in the default message bundle for reporting an invalid setting of the Klaros Application URL is actually causing this behavior.

This has been tracked as issue KLAROS-668 and will be fixed in the upcoming release. (Note: this bug will only affect users running on non-English and non-German systems which try to set the application URL to an invalid value).

In the meantime please set the property application.url in the file <user.home>/.klaros/klaros.properties to an either empty ('application.url=') or correct setting (depends on your http proxy setup) and restart tomcat. This should fix the problem.

Regards,

Torsten
Cyrille Riviere, modified 10 Years ago.

RE: Single Test Run Report - Error 404

Youngling Posts: 9 Join Date: 2/9/10 Recent Posts
Hi Torsten,

Thanks for you update.
Even after updating the klaros.properties file as follow, I still getting the same Error 404 page.
application.url=http://klaros.systran.local/klaros-web/
Through the UI in Configure module, General item, the URL application checking succeeds as displayed in the Status Messages:
INFORMATION - 12:09:15 - Successfully connected. The URL http://klaros.systran.local/klaros-web/ is valid.

Your workaround does not work into a French environment. Do I need to set a specific resource or property for recovering this case?

Thanks for your help.

Cyrille
thumbnail
Torsten Stolpmann, modified 10 Years ago.

RE: Single Test Run Report - Error 404

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Cyrille,

I think we now have identified the cause of your problems:Your locale settings seem to report an empty language string, as could be seen in the URL you posted:

/reportTestRunSingle/P00001//CyrilleRiviere/pdf/1363 (notice the double slash)

Actually we would have expected your language to be reported by the system as 'fr' or the like (this is Locale.getDefault().getLanguage()).
We have filed this issue as KLAROS-670 and will provide a fix in the upcoming release.

As an interim solution please try in a shell window:

export JAVA_OPTS=-Dlanguage=en
to force an english locale and restart the klaros tomcat installation from this shell

Thanks for your feedback and please pardon the unconvenience!

Regards,

Torsten
Cyrille Riviere, modified 10 Years ago.

RE: Single Test Run Report - Error 404 (Answer)

Youngling Posts: 9 Join Date: 2/9/10 Recent Posts
Your interim solution works fine!
but I've changed the environment language of the system to English.

Great! I successfully created my first report.

Thanks again,

Cyrille
thumbnail
Torsten Stolpmann, modified 10 Years ago.

RE: Single Test Run Report - Error 404

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
With the release of version 2.5 this should be finally fixed now.

Regards,

Torsten