我的代码是:
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/