导出 .product for macosx 会导致 NullPointerException
我正在尝试使用 Eclipse RCP 为多个系统(linux gtk/x86、macosx cocoa/x86_64、win32 win32/x86)构建产品,但在专门导出到 macosx 时,我不断收到 NullPointerException。我正在运行 Linux,并且 linux 和 win32 构建导出正常,没有问题。
我正在运行 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)
任何帮助将不胜感激。我为此花了一整天的时间,却一无所获,而我出色的谷歌技能也没有给我带来任何回报。
I am trying to build a product using Eclipse RCP for multiple systems (linux gtk/x86, macosx cocoa/x86_64, win32 win32/x86), but I keep on getting a NullPointerException when exporting specifically to macosx. I am running Linux, and the linux and win32 builds export fine, and without issues.
I am running Eclipse 3.6.2 (Helios) and have installed all the nescessary libraries for the project (it runs fine). As well, I am able to run it fine under OSX. I have also installed the nescessary delta to enable the multi-platform RCP export.
The following is the error log from the export. Note that the temp directory doesn't exist under .metadata/.plugins/org.eclipse.pde.core/ after the export errors out.
!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)
Any help would be much appreciated. I killed a whole day on this, and got nowhere, and me excelent google skills haven't brought me back anything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不久前遇到了同样的问题,我想我通过删除品牌图像解决了这个问题(错误 292327)。这个错误不久前(2009 年)已得到解决,但这可能是一个起点......
I had the same problem a while ago and I think I solved it by removing the branding images (Bug 292327). This bug was resolved a while ago (2009) but it might be a point to start from..