Client ID can be null
See original GitHub issueI think there is an issue handling null
client IDs. From what I know (and I may be wrong here) client IDs may be null
when requesting a subscription.
And currently this works fine in Milo with the exception of handling the server result after the subscriptions succeeded:
if (item.getStatusCode().isGood()) {
itemsByClientHandle.put(item.getClientHandle(), item);
itemsByServerHandle.put(item.getMonitoredItemId(), item);
}
I think this could be fixed with ignoring null
client IDs altogether in this case.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
client_id is always null in ValidateClientAuthentication
When I try to access ClientId for validating client id, it is always null. if (context.ClientId != null) { //Set the client who...
Read more >Client ID returns null - Free Support Forum - aspose.com
I need to fetch the worksheet's client id from the server. Here are the following code. Before pasting the code I would like...
Read more >"JMSCC0101: The client ID cannot be null. Specify a ... - ERROR
To resolve the issue, ensure that Client ID is set while creating JMS Topic Connection Factory in the IBM MQ server. Additional Information....
Read more >Client id in tokenrequest object is null when ... - GitHub
when I debug to the step httpRequest.send() in NimbusAuthorizationCodeTokenResponseClient class, I have found the client id is null after ...
Read more >ClientID null issue on Tomcat - Server Fault
Cause: JMSCC0101: The client ID cannot be null. 373399 [WARN] DefaultMessageListenerContainer: Setup of JMS message listener invoker failed for ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In the next version of my code generator I’ll try to put
@Nonnull
annotations on any of the parameters I can determine shouldn’t ever be null.After digging a bit into the issue and into the OPC UA code at https://github.com/OPCFoundation/UA-.NET/blob/master/Stack/Core/Stack/Generated/Opc.Ua.Client.cs#L2807 I think you are right, the
clientHandle
should never be null.But that isn’t obvious from the API of Milo. So I would suggest to either directly check for null in the constructor or at least add some JavaDoc for that.