问题描述
ERROR[localhost-startStop-1]-Unabletoreadclass[.action.LoginActionTest]java.lang.AbstractMethodError:com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingVisitor.visitFrame(II[Ljava/lang/Object;I[Ljava/lang/Object;)Vatorg.objectweb.asm.ClassReader.accept(UnknownSource)atorg.objectweb.asm.ClassReader.accept(UnknownSource)atcom.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:780)atcom.opensymphony.xwork2.util.finder.ClassFinder.access$500(ClassFinder.java:59)atcom.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingVisitor.extractSuperInterfaces(ClassFinder.java:830)atcom.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingVisitor.visit(ClassFinder.java:817)atorg.objectweb.asm.ClassReader.accept(UnknownSource)atorg.objectweb.asm.ClassReader.accept(UnknownSource)atcom.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:780)atcom.opensymphony.xwork2.util.finder.ClassFinder.<init>(ClassFinder.java:165)atorg.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:376)atorg.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:334)atorg.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215)atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)atorg.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)atorg.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)atorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)atorg.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)atorg.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)atorg.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)atorg.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)atorg.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)atjava.util.concurrent.FutureTask.run(FutureTask.java:262)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)atjava.lang.Thread.run(Thread.java:744)
解决方案
解决方案二:
这个是什么错误。。。。。
解决方案三:
光看异常是抽象方法异常
解决方案四:
你传入的方法参数类型有问题吧~action.LoginActionTest看下这个方法的名称、参数以及参数类型是否正确
解决方案五:
引用3楼shijing266的回复:
你传入的方法参数类型有问题吧~action.LoginActionTest看下这个方法的名称、参数以及参数类型是否正确
只要加了action就会重复一遍这个问题。。。。
解决方案六:
.action.LoginActionTest为什么你的action前面还有一个.