为什么我收到java.lang.AbstractMethodError错误? [英] Why I am getting java.lang.AbstractMethodError errors?

查看:5716
本文介绍了为什么我收到java.lang.AbstractMethodError错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ABstractMethodError的可能原因是什么?

What are the possible causes for ABstractMethodError?

线程pool-1-thread-1中的异常java.lang.AbstractMethodError:

Exception in thread "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 的方法。抽象方法没有主体,无法执行。由于您提供的信息很少,因此我无法详细说明如何发生这种情况,因为编译器通常会解决这个问题 - 如此处所述,这意味着该类必须在运行时更改。

The simple answer is this: some code is trying to call a method which is declared abstract. Abstract methods have no body and cannot be executed. Since you have provided so little information I can't really elaborate more on how this can happen since the compiler usually catches this problem - as described here, this means the class must have changed at runtime.

这篇关于为什么我收到java.lang.AbstractMethodError错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆