导出macosx的.product导致NullPointerException

我正在尝试为多个系统(linux gtk/x86,macosx cocoa/x86_64,win32 win32/x86)构建一个使用Eclipse RCP的产品,但我一直在获取NullPointerException当专门导出到macosx时。我正在运行Linux,并且linux和win32构建出口正常,没有问题。导出macosx的.product导致NullPointerException

我正在运行Eclipse 3.6.2(Helios)并已安装项目的所有必要库(它运行良好)。而且,我可以在OSX下正常运行。我还安装了必要的增量,以启用多平台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)

任何帮助将不胜感激。我在这一天遇到了一整天,并没有得到任何好处,而且我擅长的谷歌技能并没有给我带来任何回报。

回答:

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

以上是 导出macosx的.product导致NullPointerException 的全部内容, 来源链接: utcz.com/qa/259697.html

回到顶部