java - 嵌套的异常是java.lang.VerifyError : Bad return type + getProfiler()Lcom/orientechnologies/common/profiler/OProfiler; @4: areturn

标签 java compiler-errors orientdb

我的代码是:

OrientGraphFactory factory = new OrientGraphFactory(GlobalProperties.orientDB_IP, GlobalProperties.orientDB_user, GlobalProperties.orientDB_pwd);

但是,当我尝试通过API进行调用时,出现了以下问题:

Exception Details: Location: com/orientechnologies/orient/core/Orient.getProfiler()Lcom/orientechnologies/common/profiler/OProfiler; @4: areturn Reason: Type 'com/orientechnologies/common/profiler/OAbstractProfiler' (current frame, stack[0]) is not assignable to 'com/orientechnologies/common/profiler/OProfiler' (from method signature) Current Frame: bci: @4 flags: { } locals: { 'com/orientechnologies/orient/core/Orient' } stack: { 'com/orientechnologies/common/profiler/OAbstractProfiler' } Bytecode: 0x0000000: 2ab4 0003 b0 ] with root cause java.lang.VerifyError: Bad return type Exception Details: Location: com/orientechnologies/orient/core/Orient.getProfiler()Lcom/orientechnologies/common/profiler/OProfiler; @4: areturn Reason: Type 'com/orientechnologies/common/profiler/OAbstractProfiler' (current frame, stack[0]) is not assignable to 'com/orientechnologies/common/profiler/OProfiler' (from method signature) Current Frame: bci: @4 flags: { } locals: { 'com/orientechnologies/orient/core/Orient' } stack: { 'com/orientechnologies/common/profiler/OAbstractProfiler' } Bytecode: 0x0000000: 2ab4 0003 b0

    at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerStringAbstract.<clinit>(ORecordSerializerStringAbstract.java:50)
    at com.orientechnologies.orient.core.serialization.serializer.record.ORecordSerializerFactory.<init>(ORecordSerializerFactory.java:48)


我能做什么?

最佳答案

好吧,对我而言,事实证明orientdb-commons库覆盖了某些内容。我从依赖项中删除了它,现在它就像一个符咒一样工作。

关于java - 嵌套的异常是java.lang.VerifyError : Bad return type + getProfiler()Lcom/orientechnologies/common/profiler/OProfiler; @4: areturn,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53010446/

相关文章:

java - 在 OrientDB 的 shortestPath() 中获取访问过的边

java - Kotlin 接口(interface)上的 lambda 表达式

java - 在 Application 类中使用 SharedPreferences 数据

Flutter:找到这个候选人,但参数不匹配

java - 适用于 Java 的 OrientDB 架构迁移工具

OrientDB:连接组件 OSQL 查询

java - 在java桌面(非Web)中通过浏览器从数据库下载文件

java - JavaFX 中的多个 boolean 值绑定(bind)

java - “int cannot be dereferenced”错误位于k = PIE.gcd(e1)

c++ - 编译器指责 "Error C2065: ' ENOTEMPTY' : undeclared identifier". VS 在 WinSock.h 而不是 errno.h 中寻找它的定义