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

Error while running the plugin which uses axis2-1.4.1 api

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • None
    • codegen
    • Windows XP, eclipse Version: 3.4.2

    Description

      Hi,
      I am trying to create my own plugin based on the AXIS2 Code Generator 1.3.0. Which uses axis2-1.4.1 api . I have built my plugin on similar line with the code generator. When i run my plugin i get the following error.

      org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
      at com.tibco.mdm.wsdlgen.wizards.WSDLGenWizard$2.execute(WSDLGenWizard.java:254)
      at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:104)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
      at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:116)
      at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
      at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
      at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
      at com.tibco.mdm.wsdlgen.wizards.WSDLGenWizard.generateWSDL2Java(WSDLGenWizard.java:268)
      at com.tibco.mdm.wsdlgen.wizards.WSDLGenWizard.performFinish(WSDLGenWizard.java:143)
      at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
      at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
      at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
      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:253)
      at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:273)
      at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:281)
      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:247)
      at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
      at org.eclipse.ui.internal.actions.CommandAction.run(CommandAction.java:171)
      at org.eclipse.ui.actions.NewWizardDropDownAction.run(NewWizardDropDownAction.java:174)
      at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
      at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
      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:386)
      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:549)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
      Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53)
      at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
      ... 58 more
      Caused by: java.lang.reflect.InvocationTargetException
      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.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
      ... 59 more
      Caused by: org.apache.axis2.schema.SchemaCompilationException: can not find the element

      {http://www.tibco.com/cim/services/personservice/wsdl/2.0}

      UserName from the parent schema http://www.tibco.com/cim/services/personservice/wsdl/2.0
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:697)
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:552)
      at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1991)
      at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1874)
      at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1081)
      at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:1017)
      at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:931)
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592)
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:552)
      at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1991)After codegen

      at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1874)
      at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1081)
      at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:1017)
      at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:931)
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592)
      at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:563)
      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:370)
      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:356)
      at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:280)
      at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:103)
      ... 64 more

      These are the following System.out.println outputs

      WSDL URI2: C:\Documents and Settings\hacharya\Desktop\eclipse_carsten\runtime-EclipseApplication\person_webservice\services\PersonService.wsdl
      url: file:C:\Documents and Settings\hacharya\Desktop\eclipse_carsten\runtime-EclipseApplication\person_webservice\services\PersonService.wsdl
      BASE URI file:/C:/Documents%20and%20Settings/hacharya/Desktop/eclipse_carsten/runtime-EclipseApplication/person_webservice/services/
      BASE URI22 file:/C:/Documents%20and%20Settings/hacharya/Desktop/eclipse_carsten/runtime-EclipseApplication/person_webservice/services/

      Retrieving document at 'C:\Documents and Settings\hacharya\Desktop\eclipse_carsten\runtime-EclipseApplication\person_webservice\services\PersonService.wsdl'.
      Retrieving schema at 'generictypes.xsd', relative to 'file:/C:/Documents and Settings/hacharya/Desktop/eclipse_carsten/runtime-EclipseApplication/person_webservice/services/PersonService.wsdl'.
      Retrieving schema at 'Person_Request.xsd', relative to 'file:/C:/Documents and Settings/hacharya/Desktop/eclipse_carsten/runtime-EclipseApplication/person_webservice/services/PersonService.wsdl'.
      Retrieving schema at 'Person_Response.xsd', relative to 'file:/C:/Documents and Settings/hacharya/Desktop/eclipse_carsten/runtime-EclipseApplication/person_webservice/services/PersonService.wsdl'.

      WSDL URI2: C:\Documents and Settings\hacharya\Desktop\eclipse_carsten\runtime-EclipseApplication\person_webservice\services\PersonService.wsdl
      url: file:C:\Documents and Settings\hacharya\Desktop\eclipse_carsten\runtime-EclipseApplication\person_webservice\services\PersonService.wsdl
      BASE URI file:/C:/Documents%20and%20Settings/hacharya/Desktop/eclipse_carsten/runtime-EclipseApplication/person_webservice/services/

      Please help me resolve this issue..

      Attachments

        1. PersonService.wsdl
          5 kB
          Herat Acharya

        Activity

          People

            Unassigned Unassigned
            herat Herat Acharya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: