隨筆-159  評論-114  文章-7  trackbacks-0

          安裝Eclipse 3.1.2 + WTP 1.0.1以后,就可以進行相應的webservice。


          建立一個動態web項目,建立一個Javabean,想封裝一個webservice

          會報異常!

          IWAB0014E Unexpected exception occured.
          ? 0
          ????? java.lang.ArrayIndexOutOfBoundsException: 0
          ????? at org.eclipse.jst.ws.internal.consumption.ui.wsrt.WebServiceRuntimeExtensionUtils2.getDefaultServerValueFor(WebServiceRuntimeExtensionUtils2.java:511)
          ????? at org.eclipse.jst.ws.internal.creation.ui.widgets.ServerWizardWidgetDefaultingCommand.execute(ServerWizardWidgetDefaultingCommand.java:33)
          ????? at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:387)
          ????? at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:327)
          ????? at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:226)
          ????? at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$5.run(SimpleCommandEngineManager.java:247)
          ????? at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:211)
          ????? at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:79)
          ????? at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:125)
          ????? at org.eclipse.wst.command.internal.env.ui.widgets.DynamicWizard.getStartingPage(DynamicWizard.java:314)
          ????? at org.eclipse.jface.wizard.WizardDialog.showStartingPage(WizardDialog.java:1041)
          ????? at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:504)
          ????? at org.eclipse.jface.window.Window.create(Window.java:418)
          ????? at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996)
          ????? at org.eclipse.wst.command.internal.env.ui.widgets.popup.DynamicPopupWizard.run(DynamicPopupWizard.java:122)
          ????? at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
          ????? at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
          ????? at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
          ????? at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
          ????? at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
          ????? at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
          ????? at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
          ????? at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
          ????? at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
          ????? at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
          ????? at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
          ????? at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
          ????? at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
          ????? at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
          ????? at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
          ????? at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
          ????? at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          ????? at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          ????? at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          ????? at java.lang.reflect.Method.invoke(Unknown Source)
          ????? at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
          ????? at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
          ????? at org.eclipse.core.launcher.Main.run(Main.java:973)
          ????? at org.eclipse.core.launcher.Main.main(Main.java:948)

          其實是一個簡單的問題,可是Eclipse 這位大爺他不說人話。


          11.gif

          然后你在試試,就好了。



          posted on 2006-08-03 09:36 北國狼人的BloG 閱讀(6963) 評論(7)  編輯  收藏

          評論:
          # re: IWAB0014E Unexpected exception occured 該死的問題,就是因為Eclipse + WTP 需要先配置Server,再生成webservice 2007-01-12 17:36 | killer
          thinks  回復  更多評論
            
          # re: IWAB0014E Unexpected exception occured 該死的問題,就是因為Eclipse + WTP 需要先配置Server,再生成webservice 2007-11-29 15:15 | lilm
          thank you  回復  更多評論
            
          # re: IWAB0014E Unexpected exception occured 該死的問題,就是因為Eclipse + WTP 需要先配置Server,再生成webservice[未登錄] 2007-12-17 17:49 | 小樹
          真的太感謝你了....哈哈..真的很希望你能加我的QQ23433291
          要不是看到你的這個文章我還不知道如何解決
          IWAB0014E Unexpected exception occured
          這個問題.還有tomcat的連接問題  回復  更多評論
            
          # re: IWAB0014E Unexpected exception occured 該死的問題,就是因為Eclipse + WTP 需要先配置Server,再生成webservice 2008-07-07 10:06 | thank
          謝謝!
          原來是沒有安裝tomcat的服務  回復  更多評論
            
          # re: IWAB0014E Unexpected exception occured 該死的問題,就是因為Eclipse + WTP 需要先配置Server,再生成webservice 2009-03-10 10:58 | baishou520
          謝謝!
          原來是沒有安裝tomcat的服務
          我的eclipse竟然報空指針錯誤,  回復  更多評論
            
          # re: IWAB0014E Unexpected exception occured 該死的問題,就是因為Eclipse + WTP 需要先配置Server,再生成webservice 2011-06-03 18:46 | zf
          太感謝了!救了我一命呵~  回復  更多評論
            
          # re: IWAB0014E Unexpected exception occured 該死的問題,就是因為Eclipse + WTP 需要先配置Server,再生成webservice 2012-10-08 17:22 | Small Ying
          不錯,解決問題了!   回復  更多評論
            

          只有注冊用戶登錄后才能發表評論。


          網站導航:
          博客園   IT新聞   Chat2DB   C++博客   博問  
           
          主站蜘蛛池模板: 醴陵市| 阳春市| 澄城县| 太原市| 阿克苏市| 博罗县| 商南县| 刚察县| 澜沧| 皮山县| 湟源县| 连南| 乳源| 紫阳县| 东源县| 分宜县| 巴林左旗| 共和县| 遂昌县| 田林县| 德格县| 灌南县| 莱西市| 邹城市| 霍邱县| 广宗县| 泸西县| 淮南市| 云龙县| 隆德县| 垦利县| 临夏县| 曲阳县| 内乡县| 宣汉县| 个旧市| 柳河县| 灵石县| 晋城| 茶陵县| 定远县|