Project

General

Profile

[Bug] SERVER-CONNECTION-CONTEX

Added by Antanas Valencius about 3 years ago

We have several procedures that use SESSION:SERVER-CONNECTION-CONTEX statement and assign it to a variable:

define new shared var g-ofc like ofc.ofc.
   ...
g-ofc = SESSION:SERVER-CONNECTION-CONTEX.

Given errors during Scanning Progress Source (preprocessor, lexer, parser, persist ASTs) stage in conversion:

     [java] ./abl/vamASCamt52Statement.p:904:17: unexpected token: SERVER-CONNECTION-CONTEX
     [java]     at com.goldencode.p2j.uast.ProgressParser.attribute_or_method(ProgressParser.java:52953)
     [java]     at com.goldencode.p2j.uast.ProgressParser.chained_object_members(ProgressParser.java:22266)
     [java]     at com.goldencode.p2j.uast.ProgressParser.un_type(ProgressParser.java:57927)
     [java]     at com.goldencode.p2j.uast.ProgressParser.prod_expr(ProgressParser.java:57794)
     [java]     at com.goldencode.p2j.uast.ProgressParser.sum_expr(ProgressParser.java:41708)
     [java]     at com.goldencode.p2j.uast.ProgressParser.compare_expr(ProgressParser.java:57380)
     [java]     at com.goldencode.p2j.uast.ProgressParser.log_not_expr(ProgressParser.java:57232)
     [java]     at com.goldencode.p2j.uast.ProgressParser.bitwise_xor_expr(ProgressParser.java:57163)
     [java]     at com.goldencode.p2j.uast.ProgressParser.log_and_expr(ProgressParser.java:57102)
     [java]     at com.goldencode.p2j.uast.ProgressParser.expr(ProgressParser.java:12210)
     [java]     at com.goldencode.p2j.uast.ProgressParser.un_type(ProgressParser.java:57950)
     [java]     at com.goldencode.p2j.uast.ProgressParser.prod_expr(ProgressParser.java:57794)
     [java]     at com.goldencode.p2j.uast.ProgressParser.sum_expr(ProgressParser.java:41708)
     [java]     at com.goldencode.p2j.uast.ProgressParser.compare_expr(ProgressParser.java:57380)
     [java]     at com.goldencode.p2j.uast.ProgressParser.log_not_expr(ProgressParser.java:57232)
     [java]     at com.goldencode.p2j.uast.ProgressParser.bitwise_xor_expr(ProgressParser.java:57163)
     [java]     at com.goldencode.p2j.uast.ProgressParser.log_and_expr(ProgressParser.java:57102)
     [java]     at com.goldencode.p2j.uast.ProgressParser.expr(ProgressParser.java:12210)
     [java]     at com.goldencode.p2j.uast.ProgressParser.assignment(ProgressParser.java:8723)
     [java]     at com.goldencode.p2j.uast.ProgressParser.single_block(ProgressParser.java:7366)
     [java]     at com.goldencode.p2j.uast.ProgressParser.block(ProgressParser.java:7049)
     [java]     at com.goldencode.p2j.uast.ProgressParser.external_proc(ProgressParser.java:6976)
     [java]     at com.goldencode.p2j.uast.AstGenerator.parse(AstGenerator.java:1571)
     [java]     at com.goldencode.p2j.uast.AstGenerator.processFile(AstGenerator.java:996)
     [java]     at com.goldencode.p2j.uast.ScanDriver.lambda$scan$0(ScanDriver.java:375)
     [java]     at com.goldencode.p2j.uast.ScanDriver.scan(ScanDriver.java:410)
     [java]     at com.goldencode.p2j.uast.ScanDriver.scan(ScanDriver.java:248)
     [java]     at com.goldencode.p2j.convert.TransformDriver.runScanDriver(TransformDriver.java:373)
     [java]     at com.goldencode.p2j.convert.TransformDriver.front(TransformDriver.java:238)
     [java]     at com.goldencode.p2j.convert.TransformDriver.executeJob(TransformDriver.java:951)
     [java]     at com.goldencode.p2j.convert.ConversionDriver.main(ConversionDriver.java:1024)
     [java] Failure in file './abl/vamASCamt52Statement.p':
     [java] com.goldencode.ast.AstException: Error processing ./abl/vamASCamt52Statement.p
     [java]     at com.goldencode.p2j.uast.AstGenerator.processFile(AstGenerator.java:1008)
     [java]     at com.goldencode.p2j.uast.ScanDriver.lambda$scan$0(ScanDriver.java:375)
     [java]     at com.goldencode.p2j.uast.ScanDriver.scan(ScanDriver.java:410)
     [java]     at com.goldencode.p2j.uast.ScanDriver.scan(ScanDriver.java:248)
     [java]     at com.goldencode.p2j.convert.TransformDriver.runScanDriver(TransformDriver.java:373)
     [java]     at com.goldencode.p2j.convert.TransformDriver.front(TransformDriver.java:238)
     [java]     at com.goldencode.p2j.convert.TransformDriver.executeJob(TransformDriver.java:951)
     [java]     at com.goldencode.p2j.convert.ConversionDriver.main(ConversionDriver.java:1024)
     [java] Caused by: java.lang.RuntimeException: Parser encountered 1 errors
     [java]     at com.goldencode.p2j.uast.AstGenerator.parse(AstGenerator.java:1640)
     [java]     at com.goldencode.p2j.uast.AstGenerator.processFile(AstGenerator.java:996)
     [java]     ... 7 more

Please confirm if this issue is on FWD or our side. Thank you.


Replies (23)

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Greg Shah about 3 years ago

This is an issue in FWD. We do support the attribute SERVER-CONNECTION-CONTEXT but we implemented the keyword using the 4GL documentation which states that there is no abbreviation. As you have shown, in fact this keyword can be abbreviated. In my tests, you can abbreviate down to SERVER-CONNECTION-CO. I will post a fix shortly.

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Greg Shah about 3 years ago

I've fixed the SERVER-CONNECTION-CONTEXT abbreviations issue in branch 3821c revision 12148. This has been pushed up to xfer.goldencode.com. Please pull that down, rebuild and confirm that it resolves your issue.

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Antanas Valencius about 3 years ago

Pulled down, but apparently, the issue is not yet solved.

After pulling, I ran `./gradlew clean core`. Is that the correct way to rebuild?

Issue still remains:

   ...
     [java] ./abl/vamASCamt52Statement.p:904:17: unexpected token: SERVER-CONNECTION-CONTEX
   ...

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Greg Shah about 3 years ago

I've tested using this testcase:

message session:server-connection-co session:server-connection-contex.

Parsing and full conversion work on this without any issue. I'm currently testing using 3921c rev 12170 but the result was previously the same wth 12148.

Pulled down,

How did you pull it down? Did you change your current directory into the FWD checkout and use bzr update to get the changes?

What is the output of bzr revno in your FWD directory?

After pulling, I ran `./gradlew clean core`. Is that the correct way to rebuild?

Yes, if the changes are there, this is correct.

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Antanas Valencius about 3 years ago

Did you change your current directory into the FWD checkout and use bzr update to get the changes?

Yes, I did change the directory to fwd, but I did the pull using `bzr pull` command.

What is the output of bzr revno in your FWD directory?

The output is 12148:

fwd@fwd-dev:~/FWD/fwd$ bzr revno
12148

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Greg Shah about 3 years ago

Please post the output of bzr info and also java -jar build/lib/p2j.jar.

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Antanas Valencius about 3 years ago

bzr info:

Standalone tree (format: 2a)
Location:
  branch root: .

Related branches:
  parent branch: sftp://ba@xfer.goldencode.com/opt/fwd/3821c/

java -jar build/lib/p2j.jar:

FWD v4.0.0_undefined_undefined_12148

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Greg Shah about 3 years ago

Please post the output for bzr log -v -r12148 and bzr diff -c12148.

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Greg Shah about 3 years ago

Also, from the "project root" of your conversion project what is the output of java -jar p2j/build/lib/p2j.jar?

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Antanas Valencius about 3 years ago

bzr log -v -r12148:

------------------------------------------------------------
revno: 12148
committer: Greg Shah <ges@goldencode.com>
branch nick: 3821c
timestamp: Thu 2021-03-18 15:11:30 -0400
message:
  Added undocumented abbreviation for the SERVER-CONNECTION-CONTEXT keyword. Refs #3854.
modified:
  src/com/goldencode/p2j/uast/progress.g

bzr diff -c12148:

=== modified file 'src/com/goldencode/p2j/uast/progress.g'
--- src/com/goldencode/p2j/uast/progress.g    2021-03-05 00:56:41 +0000
+++ src/com/goldencode/p2j/uast/progress.g    2021-03-18 19:11:30 +0000
@@ -2182,6 +2182,7 @@
 **     GES 20210224          Added missing attributes STRICT-ENTITY-RESOLUTION, XML-STRICT-ENTITY-RESOLUTION,
 **                           ENTITY-EXPANSION-LIMIT and XML-ENTITY-EXPANSION-LIMIT.
 **     EVL 20210305          Adding conversion support for rtf/docx related reports export.
+**     GES 20210318          Added undocumented abbreviation for SERVER-CONNECTION-CONTEXT.
 */

 /*
@@ -35399,7 +35400,7 @@
          new Keyword("server"                         ,  0, KW_SERVER  , false),
          new Keyword("server-connection-bound"        ,  0, KW_SRV_C_B , false),
          new Keyword("server-connection-bound-request",  0, KW_SRV_C_BR, false),
-         new Keyword("server-connection-context"      ,  0, KW_SRV_C_C , false),
+         new Keyword("server-connection-context"      , 20, KW_SRV_C_C , false),  // the 4GL docs state that there is no abbreviation, but customer code proves that abbrevations down to 20 characters are possible
          new Keyword("server-connection-id"           ,  0, KW_SRV_C_I , false),
          new Keyword("server-operating-mode"          ,  0, KW_SRV_OP_M, false),
          new Keyword("server-socket"                  ,  0, KW_SRV_SOCK, false),  // missing in keyword index, found elsewhere in lang ref

java -jar p2j/build/lib/p2j.jar from project dir:

FWD v4.0.0_undefined_undefined_12148

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Greg Shah about 3 years ago

Please create a file named scc_attribute_abbrev_test.p and put this text inside:

message session:server-connection-co session:server-connection-contex.

Place that file in the abl/ directory of your conversion project.

Then from the conversion project root directory, run java -classpath p2j/build/lib/p2j.jar:. com.goldencode.p2j.convert.ConversionDriver F2+M0+CB abl/scc_attribute_abbrev_test.p. Please post the resulting log here if there are issues.

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Antanas Valencius about 3 years ago

------------------------------------------------------------------------------
P2J Conversion Driver
------------------------------------------------------------------------------

------------------------------------------------------------------------------
SchemaLoader
------------------------------------------------------------------------------

Importing 'standard.df' for schema 'standard'...
Persisted schema 'standard' to 'standard.dict'
Importing 'bank.df' for schema 'bank'...
  removeBogusQuotes(t_AST.getText()).equalsIgnoreCase(currentTable) 
Persisted schema 'bank' to 'bank.dict'
Importing 'indigo.df' for schema 'indigo'...
Persisted schema 'indigo' to 'indigo.dict'
Importing 'abon.df' for schema 'abon'...
WARNING: ignoring unknown option FILE-MISC26 [2481:3] with value "leased" 
Persisted schema 'abon' to 'abon.dict'
Importing 'cars.df' for schema 'cars'...
Persisted schema 'cars' to 'cars.dict'
Importing 'decl0.df' for schema 'decl0'...
Persisted schema 'decl0' to 'decl0.dict'
Importing 'ib.df' for schema 'ib'...
Persisted schema 'ib' to 'ib.dict'
Importing 'osiris.df' for schema 'osiris'...
Persisted schema 'osiris' to 'osiris.dict'
Importing 'stat.df' for schema 'stat'...
Persisted schema 'stat' to 'stat.dict'
Importing 'stmt.df' for schema 'stmt'...
Persisted schema 'stmt' to 'stmt.dict'

------------------------------------------------------------------------------
Scanning Progress Source (preprocessor, lexer, parser, persist ASTs)
------------------------------------------------------------------------------

abl/scc_attribute_abbrev_test.p
Failure in file 'abl/scc_attribute_abbrev_test.p':
com.goldencode.ast.AstException: Error processing ./abl/scc_attribute_abbrev_test.p
    at com.goldencode.p2j.uast.AstGenerator.processFile(AstGenerator.java:1008)
    at com.goldencode.p2j.uast.ScanDriver.lambda$scan$0(ScanDriver.java:375)
    at com.goldencode.p2j.uast.ScanDriver.scan(ScanDriver.java:410)
    at com.goldencode.p2j.uast.ScanDriver.scan(ScanDriver.java:248)
    at com.goldencode.p2j.convert.TransformDriver.runScanDriver(TransformDriver.java:373)
    at com.goldencode.p2j.convert.TransformDriver.front(TransformDriver.java:238)
    at com.goldencode.p2j.convert.TransformDriver.executeJob(TransformDriver.java:951)
    at com.goldencode.p2j.convert.ConversionDriver.main(ConversionDriver.java:1024)
Caused by: java.lang.NullPointerException
    at com.goldencode.p2j.util.FileSpecList.listImpl(FileSpecList.java:339)
    at com.goldencode.p2j.util.FileSpecList.listImpl(FileSpecList.java:348)
    at com.goldencode.p2j.util.FileSpecList.listImpl(FileSpecList.java:312)
    at com.goldencode.p2j.util.FileList.list(FileList.java:178)
    at com.goldencode.p2j.util.FileList.listFilenames(FileList.java:200)
    at com.goldencode.p2j.uast.SymbolResolver.getClassFileList(SymbolResolver.java:2149)
    at com.goldencode.p2j.uast.SymbolResolver.initPossibleClasses(SymbolResolver.java:8367)
    at com.goldencode.p2j.uast.SymbolResolver.<init>(SymbolResolver.java:1139)
    at com.goldencode.p2j.uast.SymbolResolver.<init>(SymbolResolver.java:1059)
    at com.goldencode.p2j.uast.AstGenerator.parse(AstGenerator.java:1543)
    at com.goldencode.p2j.uast.AstGenerator.processFile(AstGenerator.java:996)
    ... 7 more

------------------------------------------------------------------------------
Elapsed job time:  00:00:04

------------------------------------------------------------------------------
Post-Parse Fixups
------------------------------------------------------------------------------

*********
Warning:  no files matching the given criteria were found
Specification(s) (relative to project root):
   List:

*********
Elapsed job time:  00:00:01.288

------------------------------------------------------------------------------
Early Annotations
------------------------------------------------------------------------------

*********
Warning:  no files matching the given criteria were found
Specification(s) (relative to project root):
   List:

*********
Elapsed job time:  00:00:00.388

------------------------------------------------------------------------------
Gap Analysis Marking
------------------------------------------------------------------------------

*********
Warning:  no files matching the given criteria were found
Specification(s) (relative to project root):
   List:

*********
Elapsed job time:  00:00:01.986

------------------------------------------------------------------------------
Schema Fixups (data dictionary)
------------------------------------------------------------------------------

./data/namespace/abon.dict
./data/namespace/bank.dict
./data/namespace/cars.dict
./data/namespace/decl0.dict
./data/namespace/ib.dict
./data/namespace/indigo.dict
./data/namespace/osiris.dict
./data/namespace/standard.dict
./data/namespace/stat.dict
./data/namespace/stmt.dict
Elapsed job time:  00:00:08.793

------------------------------------------------------------------------------
Schema Annotations (scan Progress source code)
------------------------------------------------------------------------------

*********
Warning:  no files matching the given criteria were found
Specification(s) (relative to project root):
   List:

*********
ALL NATURAL JOINS: 
------------------
Elapsed job time:  00:00:00.101

------------------------------------------------------------------------------
P2O Generation (database schema files)
------------------------------------------------------------------------------

./data/namespace/abon.schema
./data/namespace/bank.schema
./data/namespace/cars.schema
./data/namespace/decl0.schema
./data/namespace/ib.schema
./data/namespace/indigo.schema
./data/namespace/osiris.schema
./data/namespace/standard.schema
WARNING:  no data filename for _area, using _area.d
WARNING:  no data filename for _connect, using _connect.d
WARNING:  no data filename for _database-feature, using _database-feature.d
WARNING:  no data filename for _db, using _db.d
WARNING:  no data filename for _field, using _field.d
WARNING:  no data filename for _field-trig, using _field-trig.d
WARNING:  no data filename for _file, using _file.d
WARNING:  no data filename for _file-trig, using _file-trig.d
WARNING:  no data filename for _filelist, using _filelist.d
WARNING:  no data filename for _index, using _index.d
WARNING:  no data filename for _index-field, using _index-field.d
WARNING:  no data filename for _lock, using _lock.d
WARNING:  no data filename for _myconnection, using _myconnection.d
WARNING:  no data filename for _sequence, using _sequence.d
WARNING:  no data filename for _startup, using _startup.d
WARNING:  no data filename for _tenant, using _tenant.d
WARNING:  no data filename for _usertablestat, using _usertablestat.d
./data/namespace/stat.schema
./data/namespace/stmt.schema
Elapsed job time:  00:00:07.720
ERROR:
java.lang.RuntimeException: ERROR!  Active Rule:
-----------------------
      RULE REPORT      
-----------------------
Rule Type :   POST
Source AST:  null
Copy AST  :  null
Condition :  name.generateReport(sprintf('schema_names_%s.rpt', dbName))
Loop      :  false
--- END RULE REPORT ---

    at com.goldencode.p2j.pattern.PatternEngine.run(PatternEngine.java:1079)
    at com.goldencode.p2j.convert.TransformDriver.processTrees(TransformDriver.java:573)
    at com.goldencode.p2j.convert.ConversionDriver.middle(ConversionDriver.java:397)
    at com.goldencode.p2j.convert.TransformDriver.executeJob(TransformDriver.java:957)
    at com.goldencode.p2j.convert.ConversionDriver.main(ConversionDriver.java:1024)
Caused by: java.io.FileNotFoundException: schema_names_stmt.rpt (Permission denied)
    at java.io.FileOutputStream.open0(Native Method)
    at java.io.FileOutputStream.open(FileOutputStream.java:270)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
    at java.io.FileWriter.<init>(FileWriter.java:63)
    at com.goldencode.p2j.convert.NameConverterWorker$Library.generateReport(NameConverterWorker.java:591)
    at com.goldencode.expr.CE3136.execute(Unknown Source)
    at com.goldencode.expr.Expression.execute(Expression.java:373)
    at com.goldencode.p2j.pattern.Rule.apply(Rule.java:497)
    at com.goldencode.p2j.pattern.Rule.executeActions(Rule.java:745)
    at com.goldencode.p2j.pattern.Rule.coreProcessing(Rule.java:712)
    at com.goldencode.p2j.pattern.Rule.apply(Rule.java:534)
    at com.goldencode.p2j.pattern.PatternEngine.applyGlobal(PatternEngine.java:1681)
    at com.goldencode.p2j.pattern.PatternEngine.run(PatternEngine.java:1046)
    ... 4 more

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Antanas Valencius about 3 years ago

Wait, forgot to give permissions. Wait for an update..

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Antanas Valencius about 3 years ago

...
...
...

------------------------------------------------------------------------------
Scanning Progress Source (preprocessor, lexer, parser, persist ASTs)
------------------------------------------------------------------------------

abl/scc_attribute_abbrev_test.p
./abl/scc_attribute_abbrev_test.p:1:17: unexpected token: server-connection-co
    at com.goldencode.p2j.uast.ProgressParser.attribute_or_method(ProgressParser.java:52953)
    at com.goldencode.p2j.uast.ProgressParser.chained_object_members(ProgressParser.java:22266)
    at com.goldencode.p2j.uast.ProgressParser.un_type(ProgressParser.java:57927)
    at com.goldencode.p2j.uast.ProgressParser.prod_expr(ProgressParser.java:57794)
    at com.goldencode.p2j.uast.ProgressParser.sum_expr(ProgressParser.java:41708)
    at com.goldencode.p2j.uast.ProgressParser.compare_expr(ProgressParser.java:57380)
    at com.goldencode.p2j.uast.ProgressParser.log_not_expr(ProgressParser.java:57232)
    at com.goldencode.p2j.uast.ProgressParser.bitwise_xor_expr(ProgressParser.java:57163)
    at com.goldencode.p2j.uast.ProgressParser.log_and_expr(ProgressParser.java:57102)
    at com.goldencode.p2j.uast.ProgressParser.expr(ProgressParser.java:12210)
    at com.goldencode.p2j.uast.ProgressParser.content_array(ProgressParser.java:55860)
    at com.goldencode.p2j.uast.ProgressParser.msg_stmt(ProgressParser.java:33029)
    at com.goldencode.p2j.uast.ProgressParser.stmt_list(ProgressParser.java:26473)
    at com.goldencode.p2j.uast.ProgressParser.statement(ProgressParser.java:8804)
    at com.goldencode.p2j.uast.ProgressParser.single_block(ProgressParser.java:7362)
    at com.goldencode.p2j.uast.ProgressParser.block(ProgressParser.java:7049)
    at com.goldencode.p2j.uast.ProgressParser.external_proc(ProgressParser.java:6976)
    at com.goldencode.p2j.uast.AstGenerator.parse(AstGenerator.java:1571)
    at com.goldencode.p2j.uast.AstGenerator.processFile(AstGenerator.java:996)
    at com.goldencode.p2j.uast.ScanDriver.lambda$scan$0(ScanDriver.java:375)
    at com.goldencode.p2j.uast.ScanDriver.scan(ScanDriver.java:410)
    at com.goldencode.p2j.uast.ScanDriver.scan(ScanDriver.java:248)
    at com.goldencode.p2j.convert.TransformDriver.runScanDriver(TransformDriver.java:373)
    at com.goldencode.p2j.convert.TransformDriver.front(TransformDriver.java:238)
    at com.goldencode.p2j.convert.TransformDriver.executeJob(TransformDriver.java:951)
    at com.goldencode.p2j.convert.ConversionDriver.main(ConversionDriver.java:1024)
./abl/scc_attribute_abbrev_test.p:1:46: unexpected token: server-connection-contex
    at com.goldencode.p2j.uast.ProgressParser.attribute_or_method(ProgressParser.java:52953)
    at com.goldencode.p2j.uast.ProgressParser.chained_object_members(ProgressParser.java:22266)
    at com.goldencode.p2j.uast.ProgressParser.un_type(ProgressParser.java:57927)
    at com.goldencode.p2j.uast.ProgressParser.prod_expr(ProgressParser.java:57794)
    at com.goldencode.p2j.uast.ProgressParser.sum_expr(ProgressParser.java:41708)
    at com.goldencode.p2j.uast.ProgressParser.compare_expr(ProgressParser.java:57380)
    at com.goldencode.p2j.uast.ProgressParser.log_not_expr(ProgressParser.java:57232)
    at com.goldencode.p2j.uast.ProgressParser.bitwise_xor_expr(ProgressParser.java:57163)
    at com.goldencode.p2j.uast.ProgressParser.log_and_expr(ProgressParser.java:57102)
    at com.goldencode.p2j.uast.ProgressParser.expr(ProgressParser.java:12210)
    at com.goldencode.p2j.uast.ProgressParser.content_array(ProgressParser.java:55860)
    at com.goldencode.p2j.uast.ProgressParser.msg_stmt(ProgressParser.java:33029)
    at com.goldencode.p2j.uast.ProgressParser.stmt_list(ProgressParser.java:26473)
    at com.goldencode.p2j.uast.ProgressParser.statement(ProgressParser.java:8804)
    at com.goldencode.p2j.uast.ProgressParser.single_block(ProgressParser.java:7362)
    at com.goldencode.p2j.uast.ProgressParser.block(ProgressParser.java:7049)
    at com.goldencode.p2j.uast.ProgressParser.external_proc(ProgressParser.java:6976)
    at com.goldencode.p2j.uast.AstGenerator.parse(AstGenerator.java:1571)
    at com.goldencode.p2j.uast.AstGenerator.processFile(AstGenerator.java:996)
    at com.goldencode.p2j.uast.ScanDriver.lambda$scan$0(ScanDriver.java:375)
    at com.goldencode.p2j.uast.ScanDriver.scan(ScanDriver.java:410)
    at com.goldencode.p2j.uast.ScanDriver.scan(ScanDriver.java:248)
    at com.goldencode.p2j.convert.TransformDriver.runScanDriver(TransformDriver.java:373)
    at com.goldencode.p2j.convert.TransformDriver.front(TransformDriver.java:238)
    at com.goldencode.p2j.convert.TransformDriver.executeJob(TransformDriver.java:951)
    at com.goldencode.p2j.convert.ConversionDriver.main(ConversionDriver.java:1024)
Failure in file 'abl/scc_attribute_abbrev_test.p':
com.goldencode.ast.AstException: Error processing ./abl/scc_attribute_abbrev_test.p
    at com.goldencode.p2j.uast.AstGenerator.processFile(AstGenerator.java:1008)
    at com.goldencode.p2j.uast.ScanDriver.lambda$scan$0(ScanDriver.java:375)
    at com.goldencode.p2j.uast.ScanDriver.scan(ScanDriver.java:410)
    at com.goldencode.p2j.uast.ScanDriver.scan(ScanDriver.java:248)
    at com.goldencode.p2j.convert.TransformDriver.runScanDriver(TransformDriver.java:373)
    at com.goldencode.p2j.convert.TransformDriver.front(TransformDriver.java:238)
    at com.goldencode.p2j.convert.TransformDriver.executeJob(TransformDriver.java:951)
    at com.goldencode.p2j.convert.ConversionDriver.main(ConversionDriver.java:1024)
Caused by: java.lang.RuntimeException: Parser encountered 2 errors
    at com.goldencode.p2j.uast.AstGenerator.parse(AstGenerator.java:1640)
    at com.goldencode.p2j.uast.AstGenerator.processFile(AstGenerator.java:996)
    ... 7 more

------------------------------------------------------------------------------
Elapsed job time:  00:00:24

...
...
...

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Greg Shah about 3 years ago

From the same conversion project root directory in which you ran the ConversionDriver, please post the output from this command cat p2j/src/com/goldencode/p2j/uast/ProgressLexer.java | grep "server-connection-context".

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Antanas Valencius about 3 years ago

         new Keyword("server-connection-context"      ,  0, KW_SRV_C_C , false),

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Greg Shah about 3 years ago

OK, so that line is wrong which is why this is failing for you.

Please post the output from cat p2j/src/com/goldencode/p2j/uast/progress.g | grep "server-connection-context", run from the conversion project root directory.

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Antanas Valencius about 3 years ago

Exact same output:

         new Keyword("server-connection-context"      ,  0, KW_SRV_C_C , false),

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Greg Shah about 3 years ago

Somehow the change is not applied there. Is p2j/ from the conversion project root directory a different directory than the one from which you ran bzr info and bzr log -v -r12148? Those commands above showed that the changes did exist there.

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Antanas Valencius about 3 years ago

Is p2j/ from the conversion project root directory a different directory than the one from which you ran bzr info and bzr log -v -r12148?

The p2j/ dir links straight to fwd source directory root. Please consider the following:

fwd@fwd-dev:~/FWD/platsrc4$ cat p2j/src/com/goldencode/p2j/uast/progress.g | grep "server-connection-context" 
         new Keyword("server-connection-context"      ,  0, KW_SRV_C_C , false),
fwd@fwd-dev:~/FWD/fwd$ cat src/com/goldencode/p2j/uast/progress.g | grep "server-connection-context" 
         new Keyword("server-connection-context"      ,  0, KW_SRV_C_C , false),

The ~/FWD/platsrc4 directory is the project directory and ~/FWD/fwd is the directory for the source files of fwd. I will try to pull and update the sources again.

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Antanas Valencius about 3 years ago

Apparently, I did not run the bzr update command after pulling. Ran the command, recompiled sources and now seems to work. Will test on our project procedures and will provide feedback.

Sorry for taking your time. Thank you for your help.

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Antanas Valencius about 3 years ago

Tested and now the issue seems to be SOLVED. Thank you again.

RE: [Bug] SERVER-CONNECTION-CONTEX - Added by Greg Shah about 3 years ago

That is great!

Please note that in the future, when you have a "bound branch" (which is created by a bzr checkout or bzr bind), then you only need to do a bzr update to get the latest code. I should not have used the term "pull" before because it suggests that you should use bzr pull. But you should not use bzr pull, having a checkout/bound branch and doing bzr update is enough.

    (1-23/23)