Re: FW: [Axis2] What Class is missing from Axis2 1.8.0

robertlazarski <[email protected]> Fri, 22 Apr 2022 15:44:07 -1000
Newsgroups gmane.text.xml.axis.user
Message-ID <CABpPLBUNKOUzCFm5RSJz-qMyifzKHm84GrGXSf3M_G3w_NUnGQ@mail.gmail.com>
The Axis2ClientCodegenCommand class is not from us AFAIK but from
org.eclipse. Never saw it before.

One simple thing to check is if you have any axis2 jars in your classpath
other than 1.8.0, which can give unpredictable results.

axis2-codegen in particular is the jar with the axis2 class
CodeGenConfiguration.

NoSuchMethodException typically indicates the jar is there but not the
correct version expected.

If you are still stuck, you can execute something similar to this command
to verify the jar location.

  System.out.println("CodeGenConfiguration was loaded from: " +
CodeGenConfiguration.class.getProtectionDomain().getCodeSource().getLocation
());

On Wed, Apr 20, 2022 at 9:05 AM Chen, Qiuyu <[email protected]> wrote:

> Hi developer,
>
>
>
>               I am trying to fix log4j vulnerbility issue with Axis2 1.8.0
> and rebuilding my app with it.
>
>
>
> I rebuilt web services successfully; but I have the following error when I
> was trying to recreate web client.  It looks some classes are missing. Can
> you tell what classes are missing? Would you please send me the fixed jar
> file? Or is there any work-out I can use to fix the issue?  Thanks!
>
>
>
>
>
> [image: cid:[email protected]]
>
>
>
> Exception occurred during code generation for WSDL  : null
>
>     java.lang.NoSuchMethodException:
> org.apache.axis2.wsdl.codegen.CodeGenConfiguration.<init>(java.util.Map)
>
>     at java.lang.Class.getConstructor0(Class.java:3082)
>
>     at java.lang.Class.getConstructor(Class.java:1825)
>
>     at
> org.eclipse.jst.ws.axis2.consumption.core.command.Axis2ClientCodegenCommand.execute(Axis2ClientCodegenCommand.java:157)
>
>     at
> org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:421)
>
>     at
> org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:361)
>
>     at
> org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:256)
>
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:296)
>
>     at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:438)
>
>     at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:354)
>
>     at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1035)
>
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:266)
>
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:93)
>
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.performFinish(WizardPageManager.java:264)
>
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.DynamicWizard.performFinish(DynamicWizard.java:384)
>
>     at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:833)
>
>     at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:472)
>
>     at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:622)
>
>     at
> org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
>
>     at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
>
>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
>
>     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
>
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1056)
>
>     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
>
>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
>
>     at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
>
>     at org.eclipse.jface.window.Window.open(Window.java:799)
>
>     at
> org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:260)
>
>     at
> org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:280)
>
>     at
> org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
>
>     at
> org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:95)
>
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>     at java.lang.reflect.Method.invoke(Method.java:498)
>
>     at
> org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
>
>     at
> org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:320)
>
>     at
> org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:254)
>
>     at
> org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
>
>     at
> org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
>
>     at
> org.eclipse.core.commands.Command.executeWithChecks(Command.java:498)
>
>     at
> org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:488)
>
>     at
> org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
>
>     at
> org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:392)
>
>     at
> org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:142)
>
>     at
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)
>
>     at
> org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:412)
>
>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
>
>     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
>
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1056)
>
>     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
>
>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
>
>     at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
>
>     at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
>
>     at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
>
>     at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
>
>     at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:635)
>
>     at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
>
>     at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559)
>
>     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
>
>     at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
>
>     at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
>
>     at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
>
>     at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
>
>     at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
>
>     at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
>
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>     at java.lang.reflect.Method.invoke(Method.java:498)
>
>     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660)
>
>     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
>
>     at org.eclipse.equinox.launcher.Main.run(Main.java:1468)
>
>     at org.eclipse.equinox.launcher.Main.main(Main.java:1441)
>
>
>
> *Julie Chen*
> Infrastructure & Operations, Contact Center Software System Engineer
>
> Information Technology Office (ITO)
>
> tel: 865-481-1050 |  mobile: 865-293-2667
>
> saic.com <http://www.saic.com/>  |  *@SAICinc*
>
> SAICĀ®
>
>
>
image001.png (image/png, 161.1 KB) - not displayed