IBM Support

webMethods Knowlegebase : HTTPS Websockets session disconnects error 1006 and reconnects (1789138)

Troubleshooting


Problem

Environment: UM (Universal Messaging) server v10.1 Fix 4, Javascript client v10.1 Fix 3

Problem appears in all browsers tested, Edge, Chrome, and Firefox.

It only occurs on HTTPS connections (no client cert required).

HTTP works as expected.

Problem: Websockets connections that are created using the JavaScript library nirvana.js disconnects and reconnects approximately every 10-12 seconds.

Analysis: the JavaScript client logs show the following:

"[Transport] Received Driver OnError Callback with error: [object CloseEvent] Error Code : 1006"

This seems to be a websocket-specific error code meaning the connection was closed abnormally (locally) by the browser implementation.

But it's not clear if this is provoked by some other problem in UM or is the real cause.

The nirvana.log file shows the disconnect a second before the client log.

Nirvana.log shows the following:

"[Mon May 07 09:33:12 CDT 2018] [ClosePool:0] [com.pcbsys.foundation] - IO : [10.36.17.60:58733] Closing connection with queue size = 0

[Mon May 07 09:33:12 CDT 2018] [ClosePool:0] [com.pcbsys.nirvana.server] - DataGroup> Unregistered F5ug43OJpnCzWmJg8Wyv/piipcs

[Mon May 07 09:33:12 CDT 2018] [ClosePool:0] [com.pcbsys.nirvana.server] - UserManager: User JSUser_eb180db9-5148-f3f5-4c97-afae17d7ab29@10.36.17.60 Logged Out using wss, Reason : unknown, session established for 10 seconds, Session Id = 97605dcf00000000 ID: 10.36.17.60:58733

UMRealmService.log with SSL logging turned on -Djavax.net.debug=all

INFO | jvm 1 | 2018/05/07 09:33:13 | Scheduler Worker Pool:1, called closeOutbound()

INFO | jvm 1 | 2018/05/07 09:33:13 | Scheduler Worker Pool:1, closeOutboundInternal()

INFO | jvm 1 | 2018/05/07 09:33:13 | Scheduler Worker Pool:1, SEND TLSv1.2 ALERT: warning, description = close_notify

Web client log

Mon May 07 2018 09:33:13 GMT-0500 (Central Daylight Time) 4 [Transport] Received Driver OnError Callback with error: [object CloseEvent] Error Code : 1006

Mon May 07 2018 09:33:13 GMT-0500 (Central Daylight Time) 3 [Transport] Driver failure count: 1

Mon May 07 2018 09:33:13 GMT-0500 (Central Daylight Time) 7 [Transport] Resetting the Session. Reason: Driver Error: [object CloseEvent] Error Code : 1006

Mon May 07 2018 09:33:13 GMT-0500 (Central Daylight Time) 6 [Transport] Tearing Down Driver"

This reproduces with a simple JS (Java Script) web page in environment with HTTPS.

Document Location

Worldwide

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSVYEV","label":"IBM webMethods Integration"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"Software AG Universal Messaging (NUM)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Red Hat Enterprise Linux"}],"Version":"10.1"},{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSFIWYE","label":"IBM webMethods B2B"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"Software AG Universal Messaging (NUM)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Red Hat Enterprise Linux"}],"Version":"10.1"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
20 March 2025

UID

ibm17211633