0

RAD7.5 サービス生成ユーティリティを使用して Web サービスを生成しようとしています。

サービスクラスのアノテーションを次のように使用しています

@MTOM
@WebService(serviceName = "WebServiceFileXfr_10", name = "WebServiceFileXfr")

およびWebサービスメソッドで

@WebMethod(operationName = "servOrderAttchFile")

WSDL ファイルを使用して Web サービスをプロジェクトと Web サービス デプロイメント記述子に生成したい

プロジェクトのチェック ボックスに WSDL ファイルを選択しているときに、次のエラーが発生します。

  java.lang.NullPointerException
  at com.ibm.ast.ws.jaxws.creation.command.CopyWSDLToProjectCommand.correctEndpointAddressesInWSDL(Unknown Source)
  at com.ibm.ast.ws.jaxws.creation.command.CopyWSDLToProjectCommand.execute(Unknown Source)
  at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(Unknown Source)
  at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(Unknown Source)
  at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(Unknown Source)
  at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(Unknown Source)
  at org.eclipse.jface.operation.ModalContext.runInCurrentThread(Unknown Source)
  at org.eclipse.jface.operation.ModalContext.run(Unknown Source)
  at org.eclipse.jface.wizard.WizardDialog.run(Unknown Source)
  at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(Unknown Source)
  at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(Unknown Source)
  at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(Unknown Source)
  at org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(Unknown Source)
  at org.eclipse.jface.wizard.WizardDialog.nextPressed(Unknown Source)
  at org.eclipse.jface.wizard.WizardDialog.buttonPressed(Unknown Source)
  at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Unknown Source)
  at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
  at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
  at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
  at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
  at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
  at org.eclipse.jface.window.Window.runEventLoop(Unknown Source)
  at org.eclipse.jface.window.Window.open(Unknown Source)
  at org.eclipse.wst.command.internal.env.ui.widgets.popup.DynamicPopupWizard.run(Unknown Source)
  at org.eclipse.ui.internal.PluginAction.runWithEvent(Unknown Source)
  at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Unknown Source)
  at org.eclipse.jface.action.ActionContributionItem.access$2(Unknown Source)
  at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(Unknown Source)
  at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
  at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
  at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
  at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
  at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
  at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
  at org.eclipse.ui.internal.Workbench.access$4(Unknown Source)
  at org.eclipse.ui.internal.Workbench$5.run(Unknown Source)
  at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source)
  at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
  at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
  at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source)
  at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
  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.equinox.launcher.Main.invokeFramework(Unknown Source)
  at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
  at org.eclipse.equinox.launcher.Main.run(Unknown Source)
  at org.eclipse.equinox.launcher.Main.main(Unknown Source)

どんな助けも非常に高く評価されます

4

1 に答える 1

0

サービスを実装するクラスにはアンダースコア文字を含めないでください。IRAD のバグのようです。サービスの名前を WebServiceFileXfr に変更すると、問題が解決します。

于 2016-02-18T18:08:01.860 に答える