1 Reply Latest reply on Jul 14, 2017 1:38 PM by carko RSS
    magrawal Apprentice

    Error while executing wsems.exe to connect my pc to ThingWorx

    I am following the Asset Manager Tutorial provided on Thingworx Deleveloper portal https://developer.thingworx.com/resources/guides/thingworx-utilities-asset-manager-tutorial/configure-and-launch-wsems,

    I have launched and installed the wsems on my windows machine, also completed all the configurations as per instruction in above mentioned tutorial.

     

    But, I got stuck on point 2 (that is, Execute the wsems.exe file by double-left-clicking on it) of "Execute both programs to connect to Thingworx" .

     

    I am receiving the following Error on trying to execute wsems.exe -" Error creating BSD socket to be used for the websocket"


    Note: I am using hosted environment of 30 day trial foundation server.

     

    Following are the error logs:

     

     

    [INFO ] 2017-07-14 13:15:43,901 D:\Thingworx\Web Socket Package for PC\MED-61060-CD-053_SP2_Microserver-5-3-2-Win32\microserver\wsems.exe: Using config file: D:\Thingworx\Web Socket Package for PC\MED-61060-CD-053_SP2_Microserver-5-3-2-Win32\microserver\etc\config.json

    [FORCE] 2017-07-14 13:15:43,901 D:\Thingworx\Web Socket Package for PC\MED-61060-CD-053_SP2_Microserver-5-3-2-Win32\microserver\wsems.exe: Starting up ....

    [FORCE] 2017-07-14 13:15:43,904 D:\Thingworx\Web Socket Package for PC\MED-61060-CD-053_SP2_Microserver-5-3-2-Win32\microserver\wsems.exe: Initializing EMS ....

    [FORCE] 2017-07-14 13:15:43,962 main: Using config file D:\Thingworx\Web Socket Package for PC\MED-61060-CD-053_SP2_Microserver-5-3-2-Win32\microserver\etc\config.json

    [INFO ] 2017-07-14 13:15:43,993 D:\Thingworx\Web Socket Package for PC\MED-61060-CD-053_SP2_Microserver-5-3-2-Win32\microserver\wsems.exe: Creating the WsEms proxy.

    [INFO ] 2017-07-14 13:15:44, 18 D:\Thingworx\Web Socket Package for PC\MED-61060-CD-053_SP2_Microserver-5-3-2-Win32\microserver\wsems.exe: Starting HTTP Server.

    [INFO ] 2017-07-14 13:15:44, 38 D:\Thingworx\Web Socket Package for PC\MED-61060-CD-053_SP2_Microserver-5-3-2-Win32\microserver\wsems.exe: Initializing the ThingWorx REST interface.

    [FORCE] 2017-07-14 13:15:44, 62 httpServer: starting http server port=8000

    [ERROR] 2017-07-14 13:15:44, 82 SDK: twWs_Create: Error creating BSD socket to be used for the websocket

    [ERROR] 2017-07-14 13:15:44,107 SDK: twApi_Initialize: Error creating websocket structure, retrying

    [ERROR] 2017-07-14 13:15:48,910 SDK: twWs_Create: Error creating BSD socket to be used for the websocket

    [ERROR] 2017-07-14 13:15:49,  9 SDK: twApi_Initialize: Error creating websocket structure, retrying

    [ERROR] 2017-07-14 13:15:53,911 SDK: twWs_Create: Error creating BSD socket to be used for the websocket

    [ERROR] 2017-07-14 13:15:53,957 SDK: twApi_Initialize: Error creating websocket structure, retrying

    [ERROR] 2017-07-14 13:15:58,912 SDK: twWs_Create: Error creating BSD socket to be used for the websocket

    [ERROR] 2017-07-14 13:16:09, 10 SDK: twApi_Initialize: Error creating websocket structure, retrying

    [ERROR] 2017-07-14 13:16:09, 35 SDK: twWs_Create: Error creating BSD socket to be used for the websocket

    [ERROR] 2017-07-14 13:16:09, 56 SDK: twApi_Initialize: Error creating websocket structure, retrying

    [ERROR] 2017-07-14 13:16:09, 79 SDK: twWs_Create: Error creating BSD socket to be used for the websocket

    [ERROR] 2017-07-14 13:16:09, 99 SDK: twApi_Initialize: Error creating websocket structure, retrying

    [ERROR] 2017-07-14 13:16:13,915 SDK: twWs_Create: Error creating BSD socket to be used for the websocket

    [ERROR] 2017-07-14 13:16:13,970 SDK: twApi_Initialize: Error creating websocket structure, retrying

     

     

    I have a demo on monday, Looking forward for immediate help.

     

     

    Thanks,

    Meenakshi