导出macosx的.product会导致NullPointerException

时间:2011-05-05 15:49:39

标签: eclipse macos eclipse-plugin eclipse-rcp

我正在尝试使用Eclipse RCP为多个系统构建产品(linux gtk / x86,macosx cocoa / x86_64,win32 win32 / x86),但是在专门导出到macosx时我一直在获取NullPointerException。我正在运行Linux,而linux和win32构建导出很好,没有问题。

我正在运行Eclipse 3.6.2(Helios)并为项目安装了所有必需的库(运行正常)。同样,我可以在OSX下运行它。我还安装了必要的delta来启用多平台RCP导出。

以下是导出的错误日志。请注意,在导出错误输出后,.metadata / .plugins / org.eclipse.pde.core /下的临时目录不存在。

!ENTRY org.eclipse.ant.core 4 1 2011-05-05 11:32:59.049
!MESSAGE /home/meatcar/.../workspace/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/assemble.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:97: java.lang.NullPointerException
!STACK 0
/home/meatcar/.../workspace/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/assemble.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:97: java.lang.NullPointerException
    at org.eclipse.pde.internal.build.tasks.BrandTask.execute(BrandTask.java:48)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor465.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:662)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:495)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
    at org.eclipse.pde.internal.core.exports.FeatureExportOperation.runScript(FeatureExportOperation.java:424)
    at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:280)
    at org.eclipse.pde.internal.core.exports.ProductExportOperation.run(ProductExportOperation.java:106)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.NullPointerException
    at org.eclipse.pde.internal.build.BrandingIron.brandMac(BrandingIron.java:158)
    at org.eclipse.pde.internal.build.BrandingIron.brand(BrandingIron.java:78)
    at org.eclipse.pde.internal.build.tasks.BrandTask.execute(BrandTask.java:46)
    ... 24 more
--- Nested Exception ---
java.lang.NullPointerException
    at org.eclipse.pde.internal.build.BrandingIron.brandMac(BrandingIron.java:158)
    at org.eclipse.pde.internal.build.BrandingIron.brand(BrandingIron.java:78)
    at org.eclipse.pde.internal.build.tasks.BrandTask.execute(BrandTask.java:46)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor465.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:662)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:495)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
    at org.eclipse.pde.internal.core.exports.FeatureExportOperation.runScript(FeatureExportOperation.java:424)
    at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:280)
    at org.eclipse.pde.internal.core.exports.ProductExportOperation.run(ProductExportOperation.java:106)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

非常感谢任何帮助。我在这上面杀了一整天,无处可去,而且我的优秀谷歌技能并没有带回任何东西。

1 个答案:

答案 0 :(得分:3)

前一段时间我遇到了同样的问题,我想通过删除品牌形象(Bug 292327)解决了这个问题。这个错误在前一段时间(2009年)得到了解决,但它可能是从...开始的一个点。