Error: INVALID_STATE_ERR解决方案

本文介绍了在使用AngularJS与StompJS进行WebSocket通信时遇到的INVALID_STATE_ERR错误的分析和解决方案,帮助开发者解决这类问题。

去围观:点击打开链接

Error: INVALID_STATE_ERR

    at y.send (http://localhost:8080/earth/resources/scripts/lib/sockjs-0.3.4.min.js:27:16558)
    at r._transmit (http://localhost:8080/earth/resources/scripts/lib/stomp.min.js:8:2199)
    at r.send (http://localhost:8080/earth/resources/scripts/lib/stomp.min.js:8:6053)
    at chatCore.Send (http://localhost:8080/earth/resources/scripts/chat.js:34:19)
    at new <anonymous> (http://localhost:8080/earth/resources/scripts/app/controllers/HallController.js:16:7)
    at e (http://localhost:8080/earth/resources/scripts/lib/angular.min.js:37:96)
    at Object.instantiate (http://localhost:8080/earth/resources/scripts/lib/angular.min.js:37:213)
    at $get (http://localhost:8080/earth/resources/scripts/lib/angular.min.js:76:318)
    at compile (http://localhost:8080/earth/resources/scripts/lib/angular-ui-router.min.js:7:21956)
    at $ (http://localhost:8080/earth/resources/scripts/lib/angular.min.js:70:488) <body ui-view="" class="ng-scope">
0> <info> app: Starting scan. 0> <warning> peer_manager_handler: pm_conn_secure() failed because the stored data for conn_handle 0 does not have a valid key. 0> <warning> peer_manager_handler: pm_conn_secure() failed because the stored data for conn_handle 0 does not have a valid key. 0> <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change 0> <info> app: Connected. 0> <error> peer_manager_sm: Could not perform security procedure. smd_params_reply() or smd_link_secure() returned NRF_ERROR_INVALID_DATA. conn_handle: 0 0> <error> peer_manager_handler: Unexpected fatal error occurred: error: NRF_ERROR_INVALID_DATA 0> <error> peer_manager_handler: Asserting. 0> <error> app: Fatal error 0> <warning> app: System reset 0> <info> app_timer: RTC: initialized. 0> <info> app: Heart Rate collector example started. 0> <info> app: Starting scan. 0> <warning> peer_manager_handler: pm_conn_secure() failed because the stored data for conn_handle 0 does not have a valid key. 0> <warning> peer_manager_handler: pm_conn_secure() failed because the stored data for conn_handle 0 does not have a valid key. 0> <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change 0> <info> app: Connected. 0> <error> peer_manager_sm: Could not perform security procedure. smd_params_reply() or smd_link_secure() returned NRF_ERROR_INVALID_DATA. conn_handle: 0 0> <error> peer_manager_handler: Unexpected fatal error occurred: error: NRF_ERROR_INVALID_DATA 0> <error> peer_manager_handler: Asserting. 0> <error> app: Fatal error 0> <warning> app: System reset 0> <info> app_timer: RTC: initialized. 0> <info> app: Heart Rate collector example started. 0> <info> app: Starting scan. 0> <warning> peer_manager_handler: pm_conn_secure() failed because the stored data for conn_handle 0 does not have a valid key. 0> <warning> peer_manager_handler: pm_conn_secure() failed because the stored data for conn_handle 0 does not have a valid key. 0> <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change 0> <info> app: Connected. 0> <error> peer_manager_sm: Could not perform security procedure. smd_params_reply() or smd_link_secure() returned NRF_ERROR_INVALID_DATA. conn_handle: 0 0> <error> peer_manager_handler: Unexpected fatal error occurred: error: NRF_ERROR_INVALID_DATA 0> <error> peer_manager_handler: Asserting. 0> <error> app: Fatal error 0> <warning> app: System reset 0> <info> app_timer: RTC: initialized. 0> <info> app: Heart Rate collector example started. 0> <info> app: Starting scan
最新发布
09-04
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值