Missing error handler on `socket`,TypeError: Cannot read property 'openhab' of undefined

who can help me
when I run app.js every thing goes well ,openhab instance online,but when I click dashbord to remote control,something is wrong :

Missing error handler on `socket`.
TypeError: Cannot read property 'openhab' of undefined
    at Socket.<anonymous> (/data/wwwroot/cloud.smartgourd.com/app.js:1079:64)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Socket.onevent (/data/wwwroot/cloud.smartgourd.com/node_modules/socket.io/lib/socket.js:330:8)
    at Socket.onpacket (/data/wwwroot/cloud.smartgourd.com/node_modules/socket.io/lib/socket.js:290:12)
    at Client.ondecoded (/data/wwwroot/cloud.smartgourd.com/node_modules/socket.io/lib/client.js:193:14)
    at Decoder.Emitter.emit (/data/wwwroot/cloud.smartgourd.com/node_modules/component-emitter/index.js:134:20)
    at Decoder.add (/data/wwwroot/cloud.smartgourd.com/node_modules/socket.io-parser/index.js:247:12)
    at Client.ondata (/data/wwwroot/cloud.smartgourd.com/node_modules/socket.io/lib/client.js:175:18)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Socket.onPacket (/data/wwwroot/cloud.smartgourd.com/node_modules/engine.io/lib/socket.js:99:14)
    at emitOne (events.js:101:20)
    at WebSocket.emit (events.js:188:7)
    at WebSocket.Transport.onPacket (/data/wwwroot/cloud.smartgourd.com/node_modules/engine.io/lib/transport.js:91:8)
    at WebSocket.Transport.onData (/data/wwwroot/cloud.smartgourd.com/node_modules/engine.io/lib/transport.js:102:8)
    at WebSocket.onData (/data/wwwroot/cloud.smartgourd.com/node_modules/engine.io/lib/transports/websocket.js:75:30)
    at emitTwo (events.js:106:13)
    at WebSocket.emit (events.js:191:7)
    at Receiver.ontext (/data/wwwroot/cloud.smartgourd.com/node_modules/engine.io/node_modules/ws/lib/WebSocket.js:816:10)
    at /data/wwwroot/cloud.smartgourd.com/node_modules/engine.io/node_modules/ws/lib/Receiver.js:477:18
    at Receiver.applyExtensions (/data/wwwroot/cloud.smartgourd.com/node_modules/engine.io/node_modules/ws/lib/Receiver.js:364:5)

Can you provide more infos please?
What openHAB version are you using? Which Java version?
BR Mehmet

oh2 latest version
java 131

the problem may be node.js,I changed oh2 for other version , that works well.