[ https://issues.apache.org/jira/browse/ARTEMIS-3952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17583327#comment-17583327 ]
gongping.zhu edited comment on ARTEMIS-3952 at 8/23/22 3:51 AM: ---------------------------------------------------------------- beforeCreateSession call mult times, uncoment zhe biz code,keep zhe log code; and zip file to broker/lib;and use ./artemis-service restart; when it start finished,you can use the third client tool [eg:mqtt.fx-1.7.1] to connect and when LWT message afterSend finished and authenticate will be recall; 1,connect to zhe mqtt service; it can see beforeCreateSession will be call two times 2,Unplug the device network cable,and u can see authenticate will be call two times here is zhe log 2022-08-23 11:45:40,908 INFO [com.yeker.iot.broker.plugin.impl.JAASSecurityManagerWrapper] authenticate 2022-08-23 11:45:40,909 INFO [monitor] beforeCreateSession 2022-08-23 11:45:40,967 INFO [monitor] 连接成功 BLB10Y2020A0404220100000009@02:00:00:0e:1f:01 10.18.9.150:58316 b0b35376 1 1 2022-08-23 11:45:40,968 INFO [monitor] beforeCreateSession 2022-08-23 11:47:12,251 INFO [com.yeker.iot.broker.plugin.impl.JAASSecurityManagerWrapper] authenticate 2022-08-23 11:47:12,282 INFO [monitor] 断开成功 BLB10Y2020A0404220100000009@02:00:00:0e:1f:01 10.18.9.150:58316 b0b35376 LWT 1 2022-08-23 11:47:12,286 INFO [com.yeker.iot.broker.plugin.impl.JAASSecurityManagerWrapper] authenticate 2022-08-23 11:47:12,300 INFO [com.yeker.iot.broker.plugin.impl.JAASSecurityManagerWrapper] authenticate was (Author: JIRAUSER293605): beforeCreateSession call mult times, uncoment zhe biz code,keep zhe log code; and zip file to broker/lib;and use ./artemis-service restart; when it start finished,you can use the third client tool [eg:mqtt.fx-1.7.1] to connect and when LWT message afterSend finished and authenticate will be recall; > when auth plugin called, beforeCreateSession method will be call twice time > --------------------------------------------------------------------------- > > Key: ARTEMIS-3952 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3952 > Project: ActiveMQ Artemis > Issue Type: Bug > Affects Versions: 2.25.0 > Reporter: gongping.zhu > Priority: Major > Attachments: ArtemisBrokerPlugin.java, JAASSecurityManagerWrapper.java > > > 1, when auth plugin called,the beforeCreateSession method will be call twice > times > 2,ActiveMQSecurityManager5 authenticate method will call more then one times -- This message was sent by Atlassian Jira (v8.20.10#820010)