Project

General

Profile

Source Conversion for Analytics - Problem

Added by Marc Braun over 5 years ago

Hello,

installing and building FWD worked fine. Also the conversion process for Analytics for the Hotel GUI application.
Now I got stuck with the conversion of my own project, based on the template for the Hotel GUI app.

I have prepared the project and copied the necessary files as described here,
https://proj.goldencode.com/projects/p2j/wiki/Code_Analytics_Project_Setup

Here's the output of prepare_template.cmd -a

proenv>prepare_template.cmd -a
Enter your application name (only letters or digits, first character a letter): boxbuch
1. Enter conversion configurations for your project
Edit the regex which matches all your include files (enter for default '*.[fhi]'):
Edit the regex which matches all your program files (enter for default '*.[pPwW]'):
Enter the PROPATH from your progress.ini file (enter for default '.:'): .:C:\Progress\OEProject\boxbuch\abl\LIBRARY\Buch\GENERAL:C:\
Progress\OEProject\boxbuch\abl\LIBRARY\GLOB
Enter the ADM version (ADM2.2 or ADM1.1): ADM2.2
2. Enter database configuration for your project
Enter the legacy database name(s), separated by a comma: boxbuch
1 file(s) copied.
The filename, directory name, or volume label syntax is incorrect.

I could not figure out which syntax is wrong. When I run ant convert.front the hotel application is being parsed too.
Find attached my p2j.cfg.xml

Any help appreciated!

Best regards,
Marc

p2j.cfg.xml Magnifier (30.2 KB)


Replies (8)

RE: Source Conversion for Analytics - Problem - Added by Constantin Asofiei over 5 years ago

Marc, the first issue I see is that you are using : as propath separator, instead of ; - you need to use ; as separator. Also, the file you attached is the build.xml, not cfg/p2j.cfg.xml file - but that doesn't matter, the issue is with the prepare_template.cmd file.

The problematic line is rmdir /s /q *, which is supposed to empty the abl/ folder. It's syntax requires a directory name, and not * char. See attached for a fixed version.

In case it was not clear from the documentation, you need to run prepare_template.sh -a first, and after that copy your sources to the abl/ folder - as the prepare step will empty the abl/ folder and remove all the Hotel source files.

RE: Source Conversion for Analytics - Problem - Added by Marc Braun over 5 years ago

Thank you Constantin, sorry for posting the wrong file-content. The issue was the ; instead of the :.
It's not clear in the documentation, since it is mentioned to use the also on Windows : here

https://proj.goldencode.com/projects/p2j/wiki/Hotel_ChUI_Demo_Application#Use-the-Hotel-Project-as-a-Template-for-a-Different-Application

Now, that worked!
ant convert.front seems to work, too (BUILD SUCCESSFUL).

But I cannot login to the Report-Server. I try to login with user: admin, pw: boxbuch, but the authentication takes forever.
Attached the files convert-front.log and report_server.log.

Best regards
Marc

report_server.log Magnifier - report-server logfile (11.8 KB)

convert-front.log Magnifier - output of "ant convert.front" (15.3 KB)

RE: Source Conversion for Analytics - Problem - Added by Constantin Asofiei over 5 years ago

Marc Braun wrote:

ant convert.front seems to work, too (BUILD SUCCESSFUL).

You need to run ant report_server - convert.front just parses the files, it does not execute the reporting tasks.

RE: Source Conversion for Analytics - Problem - Added by Marc Braun over 5 years ago

Alright, SORRY!
This worked so far. I can login.
"Code Reports", "Visualize Call Graph", "Call Graph Reports" are empty.
Did I miss something else here?

RE: Source Conversion for Analytics - Problem - Added by Constantin Asofiei over 5 years ago

Marc Braun wrote:

Alright, SORRY!
This worked so far. I can login.
"Code Reports", "Visualize Call Graph", "Call Graph Reports" are empty.
Did I miss something else here?

cfg/rootlist.xml needs to be edited and specify your app's entry points (i.e. client startup program, batch programs, etc) - this is documented in https://proj.goldencode.com/projects/p2j/wiki/Call_Graph_Analyzer ; otherwise callgraph generation will not be executed (it fails if it can't find the root programs from cfg/rootlist.xml).

"Code Reports" should be working - please send the rpt_code and rpt_schema logs. And the report_server.log

RE: Source Conversion for Analytics - Problem - Added by Marc Braun over 5 years ago

Constantin, find attached the log-files.

Thank you,
Marc

RE: Source Conversion for Analytics - Problem - Added by Constantin Asofiei over 5 years ago

There's something interesting - in the conversion log you posted previously, the .\abl\LIBRARY\Buch\TEST\winapi\MkSplash.p file is not listed there - but the code report phase looks for it, it can't find it, and it abends (that's why you can't open the reports) - see the rpt_code log, there is an exception there.

Please search the ABL folder for MkSplash file name (with any extension) - is there any file with this name?

RE: Source Conversion for Analytics - Problem - Added by Marc Braun over 5 years ago

MkSplash.p is a file which is not needed. I deleted it, because it had compile errors.
I re-run the whole process. Now the "Code Reports" are working.
Thank you very much Constantin!

    (1-8/8)