tracker issue : CF-4020373

select a category, or use search below
(searches all categories and all time range)
Title:

WebSocket service fails to load after fresh install

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Tony McCormick / Tony McCormick (Tony McCormick)

Created: 07/13/2015

Components: Web Socket

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Linux Ubuntu 10.04

Vote Count: 0

Problem Description:  After freshly installing ColdFusion 11 Standard (ie: ColdFusion_11_WWEJ_linux64.bin) on a new Ubuntu 14.04 VM, the WebSockets Administration page presents a 500 error, and the coldfusion-out.log lists a failure to initialise the WebSocket service.

I ran the hotfix 4 & 5 updates: error output in coldfusion-out.log changed slightly.

I noticed the coldfusion11/cfusion/lib/neo-websocket.xml file was empty (ie: 0b) and replaced with the one from ColdFusion_exp_11_WWEJ_linux64.zip.

Steps to Reproduce:  Follow the installation steps in https://wikidocs.adobe.com/wiki/display/coldfusionen/Installing+the+Server+Configuration on a Ubuntu 14.04 server, log into the Administration interface, and navigate to the WebSockets page.

Actual Result:

Administration:
 * Error 500: An error occurred while executing the application. Please try again or contact the administrator.

coldfusion-out.log (post install):
 * Error [localhost-startStop-1] - Unable to initialise WebSocket service: coldfusion.server.ServiceException: [/opt/coldfusion11/cfusion/lib/neo-websocket.xml]coldfusion.wddx.WddxDeserializationException: WDDX packet parse error at line -1, column -1. Premature end of file..

coldfusion-out.log (post hotfix 4):
 * Error [localhost-startStop-1] - Unable to initialise WebSocket service: coldfusion.server.ServiceException: [/opt/coldfusion11/cfusion/lib/neo-websocket.xml]coldfusion.wddx.WddxDeserializationException: WDDX packet parse error at line -1, column -1. Premature end of file..

coldfusion-out.log (post hotfix 5):
 * Error [localhost-startStop-1] - Unable to initialise WebSocket service: coldfusion.server.ServiceException: [/opt/coldfusion11/cfusion/lib/neo-websocket.xml]coldfusion.wddx.WddxDeserializationException: WDDX packet parse error at line -1, column -1. Premature end of file..
* Error [ajp-bio-8014-exec-1] - '' The specific sequence of files included or processed is: /opt/coldfusion11/cfusion/wwwroot/CFIDE/administrator/settings/websocket.cfm, line: 71

coldfusion-out.log (post neo-websocket.xml creation):
 * Error [localhost-startStop-1] - Unable to initialise WebSocket service: coldfusion.server.ServiceException: An error occurred while trying to encrypt or decrypt your input string: ''
* [ajp-bio-8014-exec-4] - '' The specific sequence of files included or processed is: /opt/coldfusion11/cfusion/wwwroot/CFIDE/administrator/settings/websocket.cfm, line: 71

coldfusion-out.log (post neo-websocket.xml update):
 * Error [localhost-startStop-1] - Unable to initialise WebSocket service: coldfusion.server.ServiceException: An error occurred while trying to encrypt or decrypt your input string: ''.

Expected Result:

 * No errors initializing WebSocket
 * No errors accessing WebSocket Administration page 

Any Workarounds:

None Known

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4020373

External Customer Info:
External Company:  
External Customer Name: Tony
External Customer Email:  
External Test Config: My Hardware and Environment details:



Microsoft Azure VM

Ubuntu 14.04

Apache 2.4.7

Attachments:

  1. July 14, 2015 00:00:00: 1_neo-websocket.xml

Comments:

Tony, It looks like ColdFusion's neo-websocket.xml got corrupted. Can you please check neo-websocket.xml file located at <cf_install_root>/cfusion/lib/neo-websocket.xml? Regards, Nimit
Comment by Nimit S.
6657 | July 14, 2015 06:25:51 AM GMT
Nimit, Yes, that would be the file I mentioned was found to have a size of 0; the one that I said was replaced. If you search for "neo-websocket.xml" on this page, I've mentioned it 6 times. What do you want me to check? To me it looks more like websocket.cfm is missing validation code and a more graceful failure. I've attached a copy of the XML file I updated, let me know if you need anything else.
Comment by External U.
6658 | July 14, 2015 10:11:28 AM GMT
I'm not sure what changed recently that allowed it to work, but now I can access the WebSockets administration page. Thank you for your help.
Comment by External U.
6659 | July 14, 2015 12:02:44 PM GMT
Thanks Tony for the confirmation. Even I tried it with the fresh setup and it works perfectly fine. So, I am withdrawing this bug.
Comment by Nimit S.
6660 | July 14, 2015 12:23:01 PM GMT
I get the same exact error on a fresh build. ColdFusion 11 Enterprise on Windows 2012 R2 Server using IIS 8.5 If I use the attached websocket.xml, The websockets administrator page works, but when I update it, then I get: Null Pointers are another name for undefined values. The error occurred in websocket.cfm: line 71 -1 : Unable to display error's location in a CFML template. My updated websocket.xml looks like this now <wddxPacket version='1.0'><header/><data><struct type='coldfusion.server.ConfigMap'><var name='sslEnabled'><boolean value='false'/></var><var name='startListenerOnNormalPort'><boolean value='false'/></var><var name='port'><string>8577</string></var><var name='flashFallBack'><boolean value='true'/></var><var name='keystorePassword'><string><char code='0a'/><char code='09'/></string></var><var name='enableWebsocketOverProxyPort'><boolean value='true'/></var><var name='maxFrameSize'><number>1024.0</number></var><var name='multicastPort'><string>45566</string></var><var name='logging'><string>warning</string></var><var name='clustered'><boolean value='false'/></var><var name='startWebSocketService'><boolean value='true'/></var><var name='socketTimeout'><number>300.0</number></var><var name='sslport'><string>8543</string></var><var name='keystoreLocation'><string><char code='09'/></string></var><var name='flashPolicyPort'><string>1243</string></var></struct></data></wddxPacket>
Comment by External U.
6661 | December 31, 2015 12:02:53 AM GMT