ABstractMethodError的可能原因是什么?
线程“pool-1-thread-1”中的异常java.lang.AbstractMethodError:
org.apache.thrift.ProcessFunction.isOneway()Z
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:51)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
at com.gemfire.gemstone.thrift.hbase.ThreadPoolServer$ClientConnnection.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
解决方法:
简单的答案是这样的:一些代码试图调用一个声明为abstract的方法.抽象方法没有主体,无法执行.由于您提供的信息很少,我无法详细说明如何发生这种情况,因为编译器通常会解决这个问题 – as described here, this means the class must have changed at runtime.