Java getHardwareAddress不适用于OrientDB所需的IBMi(iSeries)

Java getHardwareAddress不适用于OrientDB所需的IBMi(iSeries),java,orientdb,ibm-midrange,Java,Orientdb,Ibm Midrange,实际上,我正在尝试在IBMi上运行OrientDB(应用了iSeries、AS/400、V540、JDK6-32位last-CUM PTF)。OrientDB早期所做的一件事(可以这么说)是尝试找到至少一个mac地址(不完全确定为什么,因为我现在只在本地嵌入式模式下使用它)。我制定了自己的测试方法,其结果相同: LogIt.log(Level.INFO,"About to list mac addresses."); final Enumeration<NetworkInterface&g

实际上,我正在尝试在IBMi上运行OrientDB(应用了iSeries、AS/400、V540、JDK6-32位last-CUM PTF)。OrientDB早期所做的一件事(可以这么说)是尝试找到至少一个mac地址(不完全确定为什么,因为我现在只在本地嵌入式模式下使用它)。我制定了自己的测试方法,其结果相同:

LogIt.log(Level.INFO,"About to list mac addresses.");
final Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces();
while (networkInterfaces.hasMoreElements()) {
    NetworkInterface networkInterface = networkInterfaces.nextElement();
    final byte[] mac = networkInterface.getHardwareAddress();
    if (mac == null) {
        LogIt.log(Level.INFO,"Mac address is null.");
        continue;
    }  // if
    String hex = Utils.convertBytesToHexString(mac);
    LogIt.log(Level.INFO,"Mac address found {0}.",hex);
}  // while
并且它无法使用getHardwareAddress()调用检索任何mac地址(实际上它返回null 3次)。我以“程序员”类型的用户和安全官员(如“root”)的身份运行它,结果相同。它在我的Ubuntu12.04个人电脑和笔记本电脑上运行良好

我想知道是否有其他人遇到过这个问题并找到了解决方案。

由于getkerninfo()在Unix/Linux上是一个通常没有文档记录的C系统调用,所以您是否在iSeries上以PASE运行它?我首先怀疑,这是唯一可能取得成功的环境。否则,似乎需要一个Linux分区

getkerninfo 1: A system call received a parameter that is not valid.