BBj-Plugins / RestBridge

BBj REST Bridge Plugin
3 stars 6 forks source link

error in RestBCAdapter when servlet times out before BC returns data #49

Closed StephanWald closed 1 year ago

StephanWald commented 1 year ago

There should be a graceful error handler for this case:

[03:02:36.057+0100] SYSERR Error caused drop to console:

[03:02:36.057+0100] SYSERR ---- Start Error ----

[03:02:36.057+0100] SYSERR Exception(!ERROR=63) in Interpreter #32418 at Mon Dec 05 03:02:36 CET 2022:

at plugins/RestBridge/RestBCAdapter.bbj:771

(...)

[03:02:36.058+0100] SYSERR com.basis.startup.type.BBjException: Variable does not exist: e5bd4424-a99e-4a87-b68b-4f202a15682d_RESPONSE_SEM

[03:02:36.059+0100] SYSERR Date: Mon Dec 05 03:02:36 CET 2022

User: svc_bbj_prod38

Not Responding: 0

IP: 127.0.0.1

Connected: Dec 5, 2022, 3:01:11 AM

Program: D:/Appl/STD/PRD/LIVE/PGM/plugins/RestBridge/RestBCAdapter.bbj

inBackground: false

Thread: #32500

INFO(3,0): 32500

FID(0): IO

LineNumber: 770

SSCP: prodin21

Current Line Listing: [771] responseSemaphore! = BBjAPI().getGlobalNamespace().getValue(ses$+"_RESPONSE_SEM")

[03:02:36.059+0100] SYSERR ---- End Error ----

[03:02:36.059+0100] SYSOUT Can not break to console when using a NoIOConsole. Interpreter will now terminate. error: Channel without I/O can't process console commands.

[03:02:36.059+0100] INFO Client 32428 terminated at Mon Dec 05 03:02:36 CET 2022