Getting Error on connecting through smartConnect.generateSession : Cannot read the array length because "mac" is null
-
Getting Error on connecting through smartConnect.generateSession : Cannot read the array length because "mac" is null
The error is coming in file SmartAPIRequest in method createPostRequest()
at following line
// MAC Address
NetworkInterface network = NetworkInterface.getByInetAddress(localHost);
byte[] mac = network.getHardwareAddress();More details :
I am running this code on local machine ( ubuntu 20.10)Please advice what could be the issue.
-
This post is deleted! -
Hi @shekharchauhan , Local maching (Mac address) is fixed and we have updated our Java SDK.
-
Hi @shekharchauhan , Thank you for your time and explaining the issue in detail to our development team member. I understand, we have been successful in applying a manual fix for your system. We will soon update our SDK.