Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5344

NPE when selecting custom service.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6.2
    • None
    • ide plugins
    • None

    Description

      This issue concerns Axis2 Service Archiver (Eclipse plug-in).
      When selecting custom service.xml file (generated by Axis2 Code Generator Wizard) exception is thrown:

      java.lang.NullPointerException
      	at javax.xml.validation.SchemaFactory.newSchema(Unknown Source)
      	at org.apache.axis2.tool.util.ServicePluginUtils.isServicesXMLValid(ServicePluginUtils.java:32)
      	at org.apache.axis2.tool.service.eclipse.ui.ServiceXMLFileSelectionPage.handleModify(ServiceXMLFileSelectionPage.java:179)
      	at org.apache.axis2.tool.service.eclipse.ui.ServiceXMLFileSelectionPage.access$000(ServiceXMLFileSelectionPage.java:42)
      	at org.apache.axis2.tool.service.eclipse.ui.ServiceXMLFileSelectionPage$1.modifyText(ServiceXMLFileSelectionPage.java:85)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
      	at org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:2610)
      	at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:4669)
      	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4531)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
      	at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
      	at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2425)
      	at org.eclipse.swt.widgets.Text.callWindowProc(Text.java:255)
      	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
      	at org.eclipse.swt.widgets.Text.windowProc(Text.java:2254)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
      	at org.eclipse.swt.internal.win32.OS.SetWindowTextW(Native Method)
      	at org.eclipse.swt.internal.win32.OS.SetWindowText(OS.java:3446)
      	at org.eclipse.swt.widgets.Text.setText(Text.java:1977)
      	at org.apache.axis2.tool.service.eclipse.ui.ServiceXMLFileSelectionPage.handleBrowse(ServiceXMLFileSelectionPage.java:140)
      	at org.apache.axis2.tool.service.eclipse.ui.ServiceXMLFileSelectionPage.access$100(ServiceXMLFileSelectionPage.java:42)
      	at org.apache.axis2.tool.service.eclipse.ui.ServiceXMLFileSelectionPage$2.mouseUp(ServiceXMLFileSelectionPage.java:93)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:219)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
      	at org.eclipse.jface.window.Window.open(Window.java:801)
      	at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:257)
      	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:277)
      	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
      	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
      	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
      	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
      	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
      	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
      	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
      	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
      	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
      	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      	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(Main.java:622)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            iso Kamil SoboĊ„
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: