I have downloaded and configured both the ProLeap COBOL Parser and ProLeap COBOL projects. I have also added the Windows ENVT variables for SMTP mail. I've been testing the jetty endpoints and I am having issues with the /v1/cobol/analyze/text endpoint.
Cannot invoke "io.proleap.cobol.asg.metamodel.ProgramUnit.getProcedureDivision()" because the return value of "io.proleap.cobol.asg.metamodel.CompilationUnit.getProgramUnit()" is null
ProLeap Exception.pdf
I have downloaded and configured both the ProLeap COBOL Parser and ProLeap COBOL projects. I have also added the Windows ENVT variables for SMTP mail. I've been testing the jetty endpoints and I am having issues with the
/v1/cobol/analyze/text
endpoint.My json request looks like:
The output I receive is:
Cannot invoke "io.proleap.cobol.asg.metamodel.ProgramUnit.getProcedureDivision()" because the return value of "io.proleap.cobol.asg.metamodel.CompilationUnit.getProgramUnit()" is null
PDF of email received is attached.
The program, located at: d:/temp/example.cbl is:
I use postman to submit my requests. Before issuing a request to the analyze endpoint I first issue an
/up
request followed by a/cron/warmup request
.What am I doing wrong?
Note: I had previously changed:
/proleap-cobol-parser/src/main/java/io/proleap/cobol/preprocessor/CobolPreprocessor.java
NEWLINE constant changed to
System.lineSeparator()
Paul