Skip to content

Confusing error message when setting SEP on a program in a non-existing library #54

@heymchri

Description

@heymchri

V7R5 with server ptfs for Debug Service 3.0.2 installed.

Debug Service Trust store is set up with a cert signed by an external CA (Sectigo) (NOTE: this may also happen with internal certs, but I'm getting a different error there complaining about the cert itself).

When trying to set an SEP for a program in a library that doesn't exist on the system, an error message is thrown: "com.ibm.etools.iseries.services.qsys.rse.SystemMessageException: The TCP/IP network connection to LOCALHOST was dropped."

Debug Console shows:

Connection settings: { 'host': 'USALID08.INFOR.COM', 'port': 8005, 'secure': true, 'capath': 'undefined', 'ignoreCertificateErrors': false, 'TLS_Version': undefined }
From client: initialize({"clientID":"vscode","clientName":"Bob-IDE","adapterID":"IBMiDebug","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true,"supportsArgsCanBeInterpretedByShell":true,"supportsMemoryEvent":true,"supportsStartDebuggingRequest":true,"supportsANSIStyling":true})
To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsEvaluateForHovers":true,"supportsSetVariable":true,"supportsValueFormattingOptions":true,"supportsModulesRequest":true,"supportTerminateDebuggee":true,"supportsFunctionBreakpoints":true,"supportsConfigurationDoneRequest":true}}
From client: launch({"type":"IBMiDebug","request":"launch","subType":"sep","action":"set","name":"Service Entry Point","user":"HEYMCHR","password":"Vectra18","host":"USALID08.INFOR.COM","port":8005,"sepDaemonPort":8008,"secure":true,"ignoreCertificateErrors":false,"library":"HEYMCHR","program":"CHGDECFMT","programType":"*PGM","module":"*ALL","procedure":"*ALL","trace":true,"workbenchSettings":{"updateProductionFiles":false,"enableDebugTracing":false},"__sessionId":"2f1909f2-a588-4a39-8c3c-dc85a558acb1"})
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stderr","output":"Connection settings: { 'host': 'USALID08.INFOR.COM', 'port': 8005, 'secure': true, 'capath': 'undefined', 'ignoreCertificateErrors': false, 'TLS_Version': undefined }"}}
To client: {"type":"event","seq":2,"event":"initialized"}
From client: setFunctionBreakpoints({"breakpoints":[]})
To client: {"type":"response","seq":0,"request_seq":3,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}}
From client: configurationDone(undefined)
To client: {"type":"response","seq":0,"request_seq":4,"success":true,"command":"configurationDone"}
From client: threads(undefined)
To client: {"type":"response","seq":0,"request_seq":5,"success":true,"command":"threads","body":{"threads":[]}}
To client: {"type":"event","seq":6,"event":"exited","body":{"exitcode":0,"message":"com.ibm.etools.iseries.services.qsys.rse.SystemMessageException: The TCP/IP network connection to LOCALHOST was dropped."}}
To client: {"type":"response","seq":0,"request_seq":2,"success":false,"command":"launch","body":{"error":{"id":"8999","format":"com.ibm.etools.iseries.services.qsys.rse.SystemMessageException: The TCP/IP network connection to LOCALHOST was dropped."}}}

startDebugServiceNavigator.log file shows:

java version "11.0.28" 2025-07-15
IBM Semeru Runtime Certified Edition (build 11.0.28+6)
Eclipse OpenJ9 VM (build openj9-0.53.0, JRE 11 OS/400 ppc64-64-Bit Compressed References 20250905_000000 (JIT enabled, AOT enabled)
OpenJ9   - 017819f167
OMR      - 266a8c6f5
JCL      - 640b5ea777 based on jdk-11.0.28+6)
Mon Dec 22 15:27:39 Eastern Standard Time 2025
[Debugger] Profile: QDBGSRV
[Debugger]  createAS400WithProfileToken 7.6:false
[Debugger]  creating QSECOFR
[Debugger]  createAS400wPT complete.
[Debugger] HAT Debug elevated profile:  sys: localhost
[Debugger] getKey regenerated: false for as400: localhost user:
[Debugger] retrieveKeystoreFileAttributes for system: localhost
[Debugger]  programName: /QSYS.LIB/QC3RTVFA.PGM parm2 format name: KSFA0100
[Debugger]  program QC3RTVFA run returned true
[Debugger]  success: true
[Debugger] retrieved masterKey: 1 status: 1
[Debugger] checkPassword
EQARD1007I The Remote Debug Service daemon started on port 8001.
EQARD1053I The Remote Debug Service daemon started on secured port 8005.

(2025-12-22 15:29:14.0306) Created IBM i connection for SEP (host: LOCALHOST, user: HEYMCHR)
ToolboxConnectorService.internalConnect: connecting LOCALHOST
ToolboxConnectorService.internalConnect(): Login with IBM i UserID and Password
ToolboxConnectorService.internalConnect: connected LOCALHOST
Connected to host LOCALHOST

(2025-12-22 15:29:14.0676) DBGM0021I Initializing service entry points for user HEYMCHR on host USALID08.INFOR.COM.

(2025-12-22 15:29:15.0315) DBGM0021I Initializing service entry points for user HEYMCHR on host USALID08.INFOR.COM.
QSYSObjectService.listObjects(HEYMCHR/CHGDECFMT OBJTYPE(*PGM)): java.lang.Exception: CPF9810 HEYMCHR
The TCP/IP network connection to {0} was dropped.: The TCP/IP network connection to LOCALHOST was dropped.

So, the log shows the CPF9810 which is expected, but setting the SEP shows a completely different and confusing error on the UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions