takraj commented on code in PR #1147:
URL: https://github.com/apache/plc4x/pull/1147#discussion_r1361673477


##########
plc4j/drivers/opcua/src/main/java/org/apache/plc4x/java/opcua/context/SecureChannel.java:
##########
@@ -361,16 +362,17 @@ public void 
onConnectOpenSecureChannel(ConversationContext<OpcuaAPU> context, Op
                             LOGGER.error("Failed to connect to opc ua server 
for the following reason:- {}, {}", ((ResponseHeader) 
fault.getResponseHeader()).getServiceResult().getStatusCode(), 
OpcuaStatusCode.enumForValue(((ResponseHeader) 
fault.getResponseHeader()).getServiceResult().getStatusCode()));
                         } else {
                             LOGGER.debug("Got Secure Response Connection 
Response");
-                            try {
-                                OpenSecureChannelResponse 
openSecureChannelResponse = (OpenSecureChannelResponse) message.getBody();
-                                ChannelSecurityToken securityToken = 
(ChannelSecurityToken) openSecureChannelResponse.getSecurityToken();
-                                tokenId.set((int) securityToken.getTokenId());
-                                channelId.set((int) 
securityToken.getChannelId());
-                                lifetime = securityToken.getRevisedLifetime();

Review Comment:
   It seems like `git merge` has somehow removed this line... I'll add one more 
commit to fix this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to