IP帮助程序库GetIfTable函数失败

时间:2013-04-09 14:52:32

标签: ibm-mobilefirst

我正在开发5.0.6版的Worklight Mobile应用程序。当我构建我的应用程序或预览它时,我收到一条错误消息,上面写着“Worklight应用程序构建器”。遇到了问题。在" Worklight应用程序构建器"期间发生内部错误。单击“详细信息”按钮会显示“工作灯应用程序构建器”#34;期间发生内部错误。 IP帮助程序库GetIfTable函数失败。

错误发生在我构建应用程序的大约2/5次。

有谁知道如何纠正这个问题?

其他说明:我从5.0.5升级到5.0.6。两个版本都发生错误。

异常堆栈跟踪:

java.lang.Error: IP Helper Library GetIfTable function failed
    at java.net.NetworkInterface.getAll(Native Method)
    at java.net.NetworkInterface.getNetworkInterfaces(Unknown Source)
    at com.worklight.common.util.GeneralUtil.scanAllIPv4Interfaces(GeneralUtil.java:598)
    at com.worklight.common.util.GeneralUtil.scanIPAddresses(GeneralUtil.java:527)
    at com.worklight.common.util.GeneralUtil.getIPscanResults(GeneralUtil.java:621)
    at com.worklight.builder.config.BuildConfiguration$Builder.setWorklightServerHost(BuildConfiguration.java:384)
    at com.worklight.builder.config.BuildConfiguration$Builder.deriveParameters(BuildConfiguration.java:286)
    at com.worklight.builder.config.BuildConfiguration$Builder.<init>(BuildConfiguration.java:276)
    at com.worklight.builder.ApplicationBuilder.init(ApplicationBuilder.java:105)
    at com.worklight.builder.ApplicationBuilder.build(ApplicationBuilder.java:80)
    at com.worklight.studio.plugin.launch.build.apps.WorkspaceApplicationBuilder.buildApplication(WorkspaceApplicationBuilder.java:298)
    at com.worklight.studio.plugin.launch.build.apps.WorkspaceApplicationBuilder.runInWorkspace(WorkspaceApplicationBuilder.java:145)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

1 个答案:

答案 0 :(得分:2)

解决了我自己的问题。我有两个相互矛盾的Java安装。所以,我卸载了两个版本,重新安装了最新版本的Java。为了安全起见,我继续安装Eclipse并使用Worklight插件和ADT插件重新安装它。现在一切正常。