Bug 7752

Autobuild fails RefreshPbl when using custom exceptions in events 14 January, 2022

Robert Rahn
06 January, 2022
Product: PowerBuilder Category: Compiler
Version: 2021 Build: 1311
Classification: Appeon bug Publishing: Public
Priority: P2
Status: Scheduling Reason:
Ken Guo @Appeon 14 January, 2022
#7
Hi Robert,

Glad to hear you confirmed this bug is fixed. We will include the fix for Bug 7752 in the PB 2021 MR soon to be released this month.

As for Bug 7753, let’s keep the discussion about Bug 7753 in Bug 7753.


Regards,
Ken
Robert Rahn 13 January, 2022
#6
Hi Ken,

this fixes the problem from my example.For our sourcecode https://www.appeon.com/standardsupport/search/view?id=7753 remains the same. So this ticket can be closed and we can continue in the other ticket i guess
Ken Guo @Appeon 13 January, 2022
#5
Fixed DLL

Hi Robert,

We have fixed this issue and I suggest you download the attached fixed DLL to verify if this issue still exists. Please follow the steps below for verification:
1. Download the attachment and decompress it.
2. Back up the pblib.dll file in C:\Program Files (x86)\Appeon\PowerBuilderCompiler 21.0.
3. Copy the pblib.dll file in the attachment to C:\Program Files (x86)\Appeon\PowerBuilderCompiler 21.0 and overwrite the original one.
4. Run PBAutoBuild again and see if the issue remains.

Note: When PBAutoBuild is executed, especially for the first Build, there will be some warning message but this is normal and it will continue to perform a Re-Build.


Regards,
Ken
Robert Rahn 13 January, 2022
#4
Hi Ken, 

nice ! Is there an ETA for this ?
Ken Guo @Appeon 07 January, 2022
#3
Hi Robert,

Thanks for reporting this problem! We reproduced it on our end and will do further research to figure it out. We will keep you posted about the progress.

BTW, ORCA Script has the same issue as well.

Regards,
Ken
Chris Pollach @Appeon 06 January, 2022
#2
Hi Robert;

  Thank you for reporting this anomaly. I will now transfer this ticket over to the main Support  Engineering team so that an AutoBuild expert can further diagnose your issue.

Regards ... Chris
Robert Rahn 06 January, 2022
#1
AutoBuild.zip (25KB)

*Phenomenon:
When using PBAutoBuild210.exe with enabled setting "RefreshPbl" in Merging i can not build our application.
This is caused by events that throw custom exceptions (at least inherited twice).
I have attached an example containing both a working version an a broken version. The only difference between the two being that w_example throws a custom exception

*Reproduce Steps:
- Create a window
- add a custom throwable exception (inherited twice) to an event 
- Call autobuild (for example like : PBAutoBuild210.exe /f "C:\AutoBuild\autobuildexample_broken\exampleapp.json" /l Log_PBBuild.log /le Log_PBError.log) 

Remarks:
Output of working Version : 
PBAutoBuild210.exe /f "c:\AutoBuild\autobuildexample\exampleapp.json" /l Log_PBBuild.log /le Log_PBError.log
11:50:37 [Normal] Load file: c:\users\rrahn\appdata\local\appeon\powerbuilder 21.0\pb.ini
11:50:37 [Normal] Start processing parse json to model code segment.
11:50:37 [Normal] End processing parse json to model code segment.
11:50:37 [Normal] Start processing download source code segment.
11:50:37 [Normal] Start merging the source code.
11:50:37 [Normal] Lib List for SccTarget
11:50:37 [Normal] c:\AutoBuild\autobuildexample\exampleapp.pbl
11:50:37 [Normal] PBORCA_SccRefreshTarget. Full Rebuild
11:50:37 [Normal] Importing u_ex.sru . . .
11:50:37 [Normal] Importing exampleapp.sra . . .
11:50:37 [Normal] Importing exampleapp.srj . . .
11:50:37 [Normal] Importing u_ex_another.sru . . .
11:50:37 [Normal] Importing w_example.srw . . .
11:50:37 [Normal] Compiling types for u_ex.sru . . .
11:50:37 [Normal] Compiling types for exampleapp.sra . . .
11:50:37 [Normal] Compiling types for exampleapp.srj . . .
11:50:37 [Normal] Compiling types for u_ex_another.sru . . .
11:50:37 [Normal] Compiling types for w_example.srw . . .
11:50:37 [Normal] Calling cm_rebuild_application(CM_REBUILD_FULL).
11:50:37 [Normal] End merging the source code.
11:50:37 [Normal] End processing download source code segment.
11:50:37 [Normal] Start processing compile segment.
11:50:37 [Normal] Start compiling the source code.
11:50:37 [Normal] Deploying project exampleapp
11:50:37 [Normal] c:\AutoBuild\autobuildexample\exampleapp.pbl
11:50:37 [Normal] Refreshing metadata in PBLs...
11:50:37 [Normal]       Creating compilation list...
11:50:37 [Normal]       Creating c:\AutoBuild\autobuildexample\exampleapp.pbl(exampleapp.sra)...
11:50:37 [Normal]       Creating c:\AutoBuild\autobuildexample\exampleapp.pbl(u_ex.sru)...
11:50:37 [Normal]       Creating c:\AutoBuild\autobuildexample\exampleapp.pbl(u_ex_another.sru)...
11:50:37 [Normal]       Creating c:\AutoBuild\autobuildexample\exampleapp.pbl(w_example.srw)...
11:50:37 [Normal]       Stage1 for c:\AutoBuild\autobuildexample\exampleapp.pbl(exampleapp.sra)...
11:50:37 [Normal]       Stage1 for c:\AutoBuild\autobuildexample\exampleapp.pbl(u_ex.sru)...
11:50:37 [Normal]       Stage1 for c:\AutoBuild\autobuildexample\exampleapp.pbl(u_ex_another.sru)...
11:50:37 [Normal]       Stage1 for c:\AutoBuild\autobuildexample\exampleapp.pbl(w_example.srw)...
11:50:37 [Normal]       Stage2 for c:\AutoBuild\autobuildexample\exampleapp.pbl(exampleapp.sra)...
11:50:37 [Normal]       Stage2 for c:\AutoBuild\autobuildexample\exampleapp.pbl(u_ex.sru)...
11:50:37 [Normal]       Stage2 for c:\AutoBuild\autobuildexample\exampleapp.pbl(u_ex_another.sru)...
11:50:38 [Normal]       Stage2 for c:\AutoBuild\autobuildexample\exampleapp.pbl(w_example.srw)...
11:50:38 [Normal]       Creating compilation list...
11:50:38 [Normal]       Stage2 for c:\AutoBuild\autobuildexample\exampleapp.pbl(exampleapp.sra)...
11:50:38 [Normal]       Stage2 for c:\AutoBuild\autobuildexample\exampleapp.pbl(u_ex.sru)...
11:50:38 [Normal]       Stage2 for c:\AutoBuild\autobuildexample\exampleapp.pbl(u_ex_another.sru)...
11:50:38 [Normal]       Stage2 for c:\AutoBuild\autobuildexample\exampleapp.pbl(w_example.srw)...
11:50:38 [Normal]       Regenerating c:\AutoBuild\autobuildexample\exampleapp.pbl(exampleapp.sra)...
11:50:38 [Normal]       Regenerating c:\AutoBuild\autobuildexample\exampleapp.pbl(u_ex.sru)...
11:50:38 [Normal]       Regenerating c:\AutoBuild\autobuildexample\exampleapp.pbl(u_ex_another.sru)...
11:50:38 [Normal]       Regenerating c:\AutoBuild\autobuildexample\exampleapp.pbl(w_example.srw)...
11:50:38 [Normal]       Rebuild complete.
11:50:38 [Normal] End compiling the source code.
11:50:38 [Normal] End processing compile segment.
Bye (-_-)

Output of broken Version :

PBAutoBuild210.exe /f "C:\AutoBuild\autobuildexample_broken\exampleapp.json" /l Log_PBBuild.log /le Log_PBError.log
12:45:36 [Normal] Load file: c:\users\rrahn\appdata\local\appeon\powerbuilder 21.0\pb.ini
12:45:36 [Normal] Start processing parse json to model code segment.
12:45:36 [Normal] End processing parse json to model code segment.
12:45:36 [Normal] Start processing download source code segment.
12:45:36 [Normal] Start merging the source code.
12:45:36 [Normal] Lib List for SccTarget
12:45:36 [Normal] C:\AutoBuild\autobuildexample_broken\exampleapp.pbl
12:45:36 [Normal] PBORCA_SccRefreshTarget. Full Rebuild
12:45:36 [Normal] Importing u_ex.sru . . .
12:45:36 [Normal] Importing exampleapp.sra . . .
12:45:36 [Normal] Importing exampleapp.srj . . .
12:45:36 [Normal] Importing u_ex_another.sru . . .
12:45:36 [Normal] Importing w_example.srw . . .
12:45:36 [Warning]  Library: C:\AutoBuild\autobuildexample_broken\exampleapp.pbl
12:45:36 [Warning]      Object: w_example
12:45:36 [Warning]          w_example Class Declaration
12:45:36 [Warning]              (0013): Error       C0200: Illegal data type '☺void' used in throws statement. Must be a variable that derives from the system type THROWABLE.
12:45:36 [Normal] Compiling types for u_ex.sru . . .
12:45:36 [Normal] Compiling types for exampleapp.sra . . .
12:45:36 [Normal] Compiling types for exampleapp.srj . . .
12:45:36 [Normal] Compiling types for u_ex_another.sru . . .
12:45:36 [Normal] Calling cm_rebuild_application(CM_REBUILD_FULL).
12:45:36 [Error]  Library: C:\AutoBuild\autobuildexample_broken\exampleapp.pbl
12:45:36 [Error]      Object: exampleapp
12:45:36 [Error]          Event: exampleapp::open
12:45:36 [Error]              (0001): Error       C0015: Undefined variable: w_example
12:45:36 [Error] Errors encountered during import/compile.  Check SMS log.
12:45:36 [Error] SCC operation failed.  See SMS log.
12:45:36 [Normal] End merging the source code.
12:45:36 [Error] Failed to merge the source code.
Bye (-_-)
OS:
All
Platform:
All
Database Type:
No database needed to reproduce
Database Version:
No database needed to reproduce