on 02-10-2015 7:19 AM
Hello,
We are using webinterface to display the MSDS genearated.
Our customers use the link provided to them for displaying the msds.
We imported a few MSDS ( CG36 ), which are in PDF format & displayed successfully on the webinterface server.
However the newly generated MSDS ( Create Report ) from SAP EH&S system are not getting displayed on the webinterface server. We are getting following error message:
Error reading resulitng document from filesystem. Class:
COM.td.ehswww.results.EhsDocument.
Method:getResolvedDocument().This error could have been caused by a misconfigured filter.ini.
We checked and found that the filter.ini file is same on both quality & production system.
We are able to generate & display the report successfully on quality webinterface server.
Problem only appears on the production webinterface server.
We also tried to search for the SAP notes on this issue.
But we could not find out any relevant note for our issue.
Any help in this regarding is highly appreciated.
Thanks & Regards,
Aarohi
Hello Aarohi,
are you trying to display all reports as PDF?
If so, what converter do you have configured in the filter.ini.
BR
Sebastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sebastian,
Thanks a lot for your prompt reply.
The imported reports ( T Code CG36) are uploaded and displayed in t code CG54 in PDF format.
The newly created reports ( CG02 --> Create Report) are displayed in t code CG54 in RTF format.
However on the webinterface, all the reports should be displayed in PDF format.
We are using "Rtf2Pdf2007" coverter. Following entries are avaialble on filter.ini file.
****************************************************************
EHSLabel=application/msword| | |
PDF=application/pdf| | |
#Word 2007 converter
EHSReport=application/pdf|cmd /C "C:\\Program Files (x86)\\Apache Software Foundation\\Tomcat 7.0\\webapps\\ehswww\\WEB-INF\\bin\\Rtf2Pdf2007.exe" <INFILE>;<OUTFILE>|pdf|
****************************************************************
These entries exist on both production & quality web interfaces under filter.ini.
However we are getting the error only the production web interface and not on the quality web interface.
Thanks again for your feedback.
Best Regards,
Aarohi
Hello Sebastian,
Thank you for your inputs.
We checked that already. The conversion works manually.
We entered the input and output file.
The RTF file provided in the input was converted succssfully to PDF at the output file path.
Regarding the MS word version, we are working on MS Word 2010.
Thank you again for your valueable inputs.
Best Regards,
Aarohi
Hello Aahori,
there's some additional settings mentioned in the user manual:
When running the Rtf2Pdf2007 converter on Windows Server 2008 or later, some additional settings may be necessary:
Create the following directories:
C:\Windows\SysWOW64\config\systemprofile\Desktop
C:\Windows\System32\config\systemprofile\Desktop
Make sure the EHS Web-Interface service user has read and write access to these folders.
It may be necessary to add the EHS Web-Interface service user to the local Administrators group. On some machines it may be necessary to adapt the DCOM settings for Microsoft Word. Note 580607 describes the process for the WWI service. You can follow the same steps for the EHS Web-Interface service user.
Did you check on these?
BR
Sebastian
Hello Sebastian,
We checked and found that the directories as mentioned by you are already available on the web interface servers - Both Quality & Production.
On the WWI servers, these folders doesn't exist.
But I believe, it is required on the web interface server only. Correct.??
We dont have idea about "Web-Interface Service User".
Can you let us know how to findout the "Web-Interface Service User", or if there is any default user for this.? We tried to findout the user but we could not identify any specific user for this.
On WWI Server, we have WWI_USER as the user id with which the service is getting executed.
On the Web-Interface we have Tomcat Service, but this service is not user specific.
This configuration is common for both quality & production.
Thank you for your help.
Best Regards,
Aarohi
Hello Sebastian,
Thank you very much for your help.
We checked on both quality & production webinterface server.
The Tomcat service is not executed with any specific user.
The system is working fine on quality , we are getting errors only on the production.
We also identified a strange behavior on the production web interface server.
We are able to see files under following menu path:
There are error files getting generated.
I guess these error files are getting generated while converting the rtf file to pdf file.
The resultant PDF file is not getting generated and hence system is giving the error on the webpage.
Can you guide us as to why these error files are getting generated .? What can be the root cause of this issue.? and How to prevent this.?
Again thanks a lot for your help.
Best Regards,
Aarohi
Hello Aarohi,
these look like temporary generation files. To keep/delete them switch parameter DEBUG in "...\ehswww\WEB-INF\ini\EHSWeb.properties" to ON/OFF.
You mentioned that manual conversion works, but not as service. From my experience that is solved, by running Tomcat under a specific user and following the guidelines I posted earlier.
Even if it's running fine on another machine.
BR
Sebastian
Hello Sebastian,
Thank you for your inputs, and sorry for the very delayed reply.
Actually we now got the solution to the problem, and wanted to share the same.
The problem was with the open sessions of rtf2pdf2007 converter.
When we checked, we found that there were many open sessions of this application under task managers --> processes for all users.
We killed a few of them, and then the problem was resolved.
The application was not able to convert the files from rtf to pdf because of these open sessions.
After killing a few sessions, the report were again started appearing in the pdf format.
So this was the root cause of the problem.
Is it possible to kill these sessions automatically some how.?
Because I believe these sessions were way too old.
Right now also there are many open sessions.
Not sure if we can delete them all.
Can you guide us here, please.?
Thanks & Regards,
Aarohi
Hello Aahori,
I don't think there's a way to kill the processes automatically.
Usually you can cancel all processes that are older than a couple of minutes.
If a process takes longer than 2-3 minutes, it's probably an indication that it hangs.
But I think you should get rid of those hanging processes by following the steps in my reply from Feb 11, 2015 9:38 AM.
Best regards
Sebastian
User | Count |
---|---|
12 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.