子在川上曰

            逝者如斯夫不舍晝夜
          隨筆 - 71, 文章 - 0, 評論 - 915, 引用 - 0

          導航

          隨筆分類(72)

          搜索

          •  

          積分與排名

          • 積分 - 591515
          • 排名 - 81

          最新評論

          閱讀排行榜

          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 ).

          下面是中文版的異常日志,英文版的如下:

          ! 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 ).


          最后耗了一個下午,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中也能使用。

          posted on 2006-08-09 10:42 陳剛 閱讀(2603) 評論(2)  編輯  收藏 所屬分類: Eclipse

          評論

          # re: Eclipse3.2正式版導出RCP的BUG  回復  更多評論   

          哪里有 3.2 的 20060802 版本下載?我在www.eclipse.org 下載到的仍然是 20060629 版本啊
          2006-08-21 16:08 | guest

          # re: Eclipse3.2正式版導出RCP的BUG  回復  更多評論   

          我的也出現這種情況,添加了依賴項后就會發生類似的錯誤。
          但是將所要的插件導出為jar文件,再通過運行時的classpath添加進去,卻沒有報錯,請問這是什么原因呢?
          跪求其解,謝謝!
          2008-08-25 21:56 | guest2256
          主站蜘蛛池模板: 通道| 昭平县| 图片| 丹寨县| 黎平县| 竹山县| 松原市| 凌海市| 永川市| 莎车县| 寿宁县| 雷州市| 文昌市| 左贡县| 和政县| 家居| 涞水县| 永济市| 佳木斯市| 涡阳县| 吉水县| 东台市| 潞城市| 玛曲县| 永福县| 永定县| 冀州市| 蒙自县| 邓州市| 固阳县| 南木林县| 微山县| 新和县| 庆云县| 长沙县| 肥乡县| 柳江县| 麻栗坡县| 利辛县| 上饶市| 青神县|