Eclipse3.2正式版导出RCP的BUG
换用Eclipse3.2有些日子了,从RC一直用到last release,以前用3.2RC版在6月份导出过RCP项目,没什么问题。现在8月,换了3.2 last release,用*.product文件的导出功能导出RCP项目后,却死活启动不了。依赖项目检查过了,和以往的版本也比对过了,虽然config.ini文件有变化,我想那也是最版本自已的变动,不会有什么大问题。异常日志如下:
!
SESSION
2006
-
08
-
09
10
:
25
:
55.734
-----------------------------------------------
eclipse.buildId = unknown
java.version = 1.5 .0_05
java.vendor = Sun Microsystems Inc.
BootLoader constants: OS = win32, ARCH = x86, WS = win32, NL = zh_CN
Command - line arguments: - os win32 - ws win32 - arch x86
! ENTRY org.eclipse.core.runtime 2006 - 08 - 09 10 : 25 : 57.125
! MESSAGE 找不到产品 com.wxxr.management.admin.console.admin_console_product。
! ENTRY org.eclipse.osgi 4 0 2006 - 08 - 09 10 : 25 : 57.140
! MESSAGE Application error
! STACK 1
java.lang.RuntimeException: 找不到应用程序标识。
at org.eclipse.core.internal.runtime.PlatformActivator$ 1 .run(PlatformActivator.java: 56 )
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java: 92 )
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java: 68 )
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 400 )
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 177 )
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: 585 )
at org.eclipse.core.launcher.Main.invokeFramework(Main.java: 336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java: 280 )
at org.eclipse.core.launcher.Main.run(Main.java: 977 )
at org.eclipse.core.launcher.Main.main(Main.java: 952 )
! ENTRY org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
! SUBENTRY 1 org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE Bundle update@plugins / org.eclipse.gef_3. 2.0 .v20060626.jar was not resolved.
! SUBENTRY 2 org.eclipse.gef 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE Missing required bundle org.eclipse.draw2d_[ 3.2 . 0 , 4.0 . 0 ).
! ENTRY org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
! SUBENTRY 1 org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE Bundle update@plugins / com.wxxr.management.admin.console_1. 0.0 .jar [ 6 ] was not resolved.
! SUBENTRY 2 com.wxxr.management.admin.console 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE Missing required bundle org.eclipse.gef_0. 0.0 .
! SUBENTRY 1 org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE Bundle update@plugins / org.eclipse.gef_3. 2.0 .v20060626.jar [ 40 ] was not resolved.
! SUBENTRY 2 org.eclipse.gef 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE Missing required bundle org.eclipse.draw2d_[ 3.2 . 0 , 4.0 . 0 ).
eclipse.buildId = unknown
java.version = 1.5 .0_05
java.vendor = Sun Microsystems Inc.
BootLoader constants: OS = win32, ARCH = x86, WS = win32, NL = zh_CN
Command - line arguments: - os win32 - ws win32 - arch x86
! ENTRY org.eclipse.core.runtime 2006 - 08 - 09 10 : 25 : 57.125
! MESSAGE 找不到产品 com.wxxr.management.admin.console.admin_console_product。
! ENTRY org.eclipse.osgi 4 0 2006 - 08 - 09 10 : 25 : 57.140
! MESSAGE Application error
! STACK 1
java.lang.RuntimeException: 找不到应用程序标识。
at org.eclipse.core.internal.runtime.PlatformActivator$ 1 .run(PlatformActivator.java: 56 )
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java: 92 )
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java: 68 )
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 400 )
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 177 )
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: 585 )
at org.eclipse.core.launcher.Main.invokeFramework(Main.java: 336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java: 280 )
at org.eclipse.core.launcher.Main.run(Main.java: 977 )
at org.eclipse.core.launcher.Main.main(Main.java: 952 )
! ENTRY org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
! SUBENTRY 1 org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE Bundle update@plugins / org.eclipse.gef_3. 2.0 .v20060626.jar was not resolved.
! SUBENTRY 2 org.eclipse.gef 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE Missing required bundle org.eclipse.draw2d_[ 3.2 . 0 , 4.0 . 0 ).
! ENTRY org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
! SUBENTRY 1 org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE Bundle update@plugins / com.wxxr.management.admin.console_1. 0.0 .jar [ 6 ] was not resolved.
! SUBENTRY 2 com.wxxr.management.admin.console 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE Missing required bundle org.eclipse.gef_0. 0.0 .
! SUBENTRY 1 org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE Bundle update@plugins / org.eclipse.gef_3. 2.0 .v20060626.jar [ 40 ] was not resolved.
! SUBENTRY 2 org.eclipse.gef 2 0 2006 - 08 - 09 10 : 25 : 57.156
! MESSAGE Missing required bundle org.eclipse.draw2d_[ 3.2 . 0 , 4.0 . 0 ).
下面是中文版的异常日志,英文版的如下:
!
SESSION
2006
-
08
-
09
10
:
29
:
38.125
-----------------------------------------------
eclipse.buildId = unknown
java.version = 1.5 .0_05
java.vendor = Sun Microsystems Inc.
BootLoader constants: OS = win32, ARCH = x86, WS = win32, NL = zh_CN
Command - line arguments: - os win32 - ws win32 - arch x86
! ENTRY org.eclipse.core.runtime 2006 - 08 - 09 10 : 29 : 39.421
! MESSAGE Product com.wxxr.management.admin.console.admin_console_product could not be found.
! ENTRY org.eclipse.osgi 4 0 2006 - 08 - 09 10 : 29 : 39.421
! MESSAGE Application error
! STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.core.internal.runtime.PlatformActivator$ 1 .run(PlatformActivator.java: 56 )
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java: 92 )
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java: 68 )
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 400 )
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 177 )
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: 585 )
at org.eclipse.core.launcher.Main.invokeFramework(Main.java: 336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java: 280 )
at org.eclipse.core.launcher.Main.run(Main.java: 977 )
at org.eclipse.core.launcher.Main.main(Main.java: 952 )
! ENTRY org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
! SUBENTRY 1 org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE Bundle update@plugins / org.eclipse.gef_3. 2.0 .v20060626.jar was not resolved.
! SUBENTRY 2 org.eclipse.gef 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE Missing required bundle org.eclipse.draw2d_[ 3.2 . 0 , 4.0 . 0 ).
! ENTRY org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
! SUBENTRY 1 org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE Bundle update@plugins / com.wxxr.management.admin.console_1. 0.0 .jar [ 5 ] was not resolved.
! SUBENTRY 2 com.wxxr.management.admin.console 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE Missing required bundle org.eclipse.gef_0. 0.0 .
! SUBENTRY 1 org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE Bundle update@plugins / org.eclipse.gef_3. 2.0 .v20060626.jar [ 25 ] was not resolved.
! SUBENTRY 2 org.eclipse.gef 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE Missing required bundle org.eclipse.draw2d_[ 3.2 . 0 , 4.0 . 0 ).
eclipse.buildId = unknown
java.version = 1.5 .0_05
java.vendor = Sun Microsystems Inc.
BootLoader constants: OS = win32, ARCH = x86, WS = win32, NL = zh_CN
Command - line arguments: - os win32 - ws win32 - arch x86
! ENTRY org.eclipse.core.runtime 2006 - 08 - 09 10 : 29 : 39.421
! MESSAGE Product com.wxxr.management.admin.console.admin_console_product could not be found.
! ENTRY org.eclipse.osgi 4 0 2006 - 08 - 09 10 : 29 : 39.421
! MESSAGE Application error
! STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.core.internal.runtime.PlatformActivator$ 1 .run(PlatformActivator.java: 56 )
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java: 92 )
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java: 68 )
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 400 )
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 177 )
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: 585 )
at org.eclipse.core.launcher.Main.invokeFramework(Main.java: 336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java: 280 )
at org.eclipse.core.launcher.Main.run(Main.java: 977 )
at org.eclipse.core.launcher.Main.main(Main.java: 952 )
! ENTRY org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
! SUBENTRY 1 org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE Bundle update@plugins / org.eclipse.gef_3. 2.0 .v20060626.jar was not resolved.
! SUBENTRY 2 org.eclipse.gef 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE Missing required bundle org.eclipse.draw2d_[ 3.2 . 0 , 4.0 . 0 ).
! ENTRY org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
! SUBENTRY 1 org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE Bundle update@plugins / com.wxxr.management.admin.console_1. 0.0 .jar [ 5 ] was not resolved.
! SUBENTRY 2 com.wxxr.management.admin.console 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE Missing required bundle org.eclipse.gef_0. 0.0 .
! SUBENTRY 1 org.eclipse.osgi 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE Bundle update@plugins / org.eclipse.gef_3. 2.0 .v20060626.jar [ 25 ] was not resolved.
! SUBENTRY 2 org.eclipse.gef 2 0 2006 - 08 - 09 10 : 29 : 39.437
! MESSAGE Missing required bundle org.eclipse.draw2d_[ 3.2 . 0 , 4.0 . 0 ).
最后耗了一个下午,Google了很多资料,还是不行。于是去Eclipse.org当了3.2的一个8月份更新的版本,文件名eclipse-SDK-M20060802-0800-win32.zip。用这个版本导出RCP项目一点问题也没有。
我比对了3.2M20060802版和3.2正式版的不同。发现config.ini、.eclipseproduct都一样。把后者导出的项目jar包换在前者中,也能正常启动。而且我检查了plugin目录下的文件,两者种类数目都相同,所以依赖的插件也对。唯一不同的就是plugin目录下依赖插件的版本不同。我想可能是后者导出的这些依赖插件的内部存在有BUG吧。
另外,3.2版的语言包在3.2M20060802中也能使用。