- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这很难。
我们有一个用于创建顶点的 xlsx
解析器。然而,最近在 Maven 中重构原始自由格式项目后,这种情况开始发生(我还没准备好责怪重构......)。
但是,我们无法看到此错误,因为我们没有执行任何通常会生成此错误的操作。
我们使用的是 v2.1.8 OrientJars、tinkerpop 2.6.0,有一个 OrientDB 2.1.8 数据库正在运行,并且通过控制台进行连接,例如,连接数据库用户密码
有效。
从 JAR 传递中读取 xlsx
传递的所有测试用例。含义
InputStream is = ReadAndPopulateList.class.getResourceAsStream(filepath);
从 JAR 中读取文件。
事实上,我们通常会看到加载 xlsx
的调试输出
错误之后是下面的第一个内部错误:
Exception in thread "main" java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
com/orientechnologies/orient/core/Orient.startup()Lcom/orientechnologies/orient/core/Orient; @78: putfield
Reason:
Type 'com/orientechnologies/common/profiler/OProfilerStub' (current frame, stack[1]) is not assignable to 'com/orientechnologies/common/profiler/OProfiler'
Current Frame:
bci: @78
flags: { }
locals: { 'com/orientechnologies/orient/core/Orient' }
stack: { 'com/orientechnologies/orient/core/Orient', 'com/orientechnologies/common/profiler/OProfilerStub' }
Bytecode:
0x0000000: 2ab4 0015 b900 3801 00b9 0039 0100 2ab4
0x0000010: 0024 9900 152a 4c2a b400 15b9 0038 0100
0x0000020: b900 3a01 002b b02a 123b b800 2cb6 003c
0x0000030: b500 3d2a b400 3ec7 000f 2abb 003f 5904
0x0000040: b700 40b5 003e 2abb 0041 59b7 0042 b500
0x0000050: 432a bb00 4459 b700 45b5 0046 2ab4 0047
0x0000060: c700 152a bb00 4859 b700 49b5 0047 2ab4
0x0000070: 0047 b600 4ab8 004b b600 4c3c 2abb 004d
0x0000080: 591b 1b06 6814 004e b200 50bb 0051 592a
0x0000090: 1b11 01f4 68b7 0052 b700 53b5 0054 2abb
0x00000a0: 0055 59b7 0056 b600 572a bb00 5859 b700
0x00000b0: 59b6 0057 2a12 5ab7 005b b200 5cb6 005d
0x00000c0: 9900 09b2 005e b800 5f2a 04b5 0024 2ab4
0x00000d0: 001e b900 6001 004d 2cb9 0061 0100 9900
0x00000e0: 2e2c b900 6201 00c0 0063 4e2d c600 092d
0x00000f0: b900 6401 00a7 0014 3a04 b800 662a 1267
0x0000100: 1904 03bd 0068 b600 69a7 ffcf 2ab7 006a
0x0000110: 2ab4 001f b900 6001 004d 2cb9 0061 0100
0x0000120: 9900 3d2c b900 6201 00c0 006b 4e2d c600
0x0000130: 182d b600 6cc0 0063 3a04 1904 c600 0a19
0x0000140: 04b9 0064 0100 a700 143a 04b8 0066 2a12
0x0000150: 6719 0403 bd00 68b6 0069 a7ff c02a b400
0x0000160: 15b9 0038 0100 b900 3a01 00a7 0016 3a05
0x0000170: 2ab4 0015 b900 3801 00b9 003a 0100 1905
0x0000180: bf2a b0
Exception Handler Table:
bci [235, 245] => handler: 248
bci [301, 326] => handler: 329
bci [14, 23] => handler: 366
bci [39, 349] => handler: 366
bci [366, 368] => handler: 366
Stackmap Table:
same_frame(@39)
same_frame(@70)
same_frame(@117)
append_frame(@201,Integer)
append_frame(@216,Object[#351])
append_frame(@245,Object[#352])
same_locals_1_stack_item_frame(@248,Object[#353])
chop_frame(@265,1)
chop_frame(@268,1)
append_frame(@282,Object[#351])
append_frame(@326,Object[#354])
same_locals_1_stack_item_frame(@329,Object[#353])
chop_frame(@346,1)
chop_frame(@349,2)
same_locals_1_stack_item_frame(@366,Object[#355])
same_frame(@385)
at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerStringAbstract.<clinit>(ORecordSerializerStringAbstract.java:52)
at com.orientechnologies.orient.core.serialization.serializer.record.ORecordSerializerFactory.<init>(ORecordSerializerFactory.java:47)
at com.orientechnologies.orient.core.serialization.serializer.record.ORecordSerializerFactory.<clinit>(ORecordSerializerFactory.java:37)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.<clinit>(ODatabaseDocumentTx.java:129)
at com.orientechnologies.orient.core.db.OPartitionedDatabasePool.initQueue(OPartitionedDatabasePool.java:386)
at com.orientechnologies.orient.core.db.OPartitionedDatabasePool.<init>(OPartitionedDatabasePool.java:186)
at com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.setupPool(OrientGraphFactory.java:161)
at com.company.orientdb.dataimport.DBConnectionFactory.createOrientGraphFactory(DBConnectionFactory.java:13)
at com.company.orientdb.dataimport.CreateAgentVertex.createAgentVertex(CreateAgentVertex.java:13)
at com.company.orientdb.dataimport.ReadAndPopulateList.createAgentResource(ReadAndPopulateList.java:172)
at com.company.orientdb.dataimport.ReadAndPopulateList.main(ReadAndPopulateList.java:24)
com.company.orientdb.dataimport.CreateAgentVertex.createAgentVertex(CreateAgentVertex.java:13
如下:
...
import com.orientechnologies.orient.core.metadata.schema.OClass;
import com.orientechnologies.orient.core.metadata.schema.OType;
import com.tinkerpop.blueprints.impls.orient.OrientGraph;
import com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx;
import com.tinkerpop.blueprints.impls.orient.OrientVertex;
public class CreateAgentVertex {
public void createAgentVertex(List<Resource> resourceList){
OrientGraphNoTx graph=DBConnectionFactory.createOrientGraphFactory().getNoTx();
...
<dependencies>
<dependency>
<groupId>com.tinkerpop.blueprints</groupId>
<artifactId>blueprints-core</artifactId>
<version>2.6.0</version>
</dependency>
<dependency>
<groupId>com.googlecode.concurrentlinkedhashmap</groupId>
<artifactId>concurrentlinkedhashmap-lru</artifactId>
<version>1.4.2</version>
</dependency>
<dependency>
<groupId>org.lucee</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>4.2.1</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna-platform</artifactId>
<version>4.2.1</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orient-commons</artifactId>
<version>1.7.10</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-client</artifactId>
<version>2.1.8</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-core</artifactId>
<version>2.1.8</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-enterprise</artifactId>
<version>2.1.8</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-graphdb</artifactId>
<version>2.1.8</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.13</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.13</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>3.13</version>
</dependency>
<dependency>
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans</artifactId>
<version>2.6.0</version>
</dependency>
</dependencies>
最佳答案
嗯,2.1.8 已经很老了,我们上周刚刚发布了 2.1.20 和 2.2.6。我看到“嗯,2.1.8 已经很旧了,我们上周刚刚发布了 2.1.20 和 2.2.6”。顺便说一句,我看到一个
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orient-commons</artifactId>
<version>1.7.10</version>
</dependency>
与版本保持一致!最好的方法是在 pom 的属性部分定义一个属性,然后在依赖项中引用它:
<properties>
<orientdb.version>2.1.8</orientdb.version>
</properties>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orient-commons</artifactId>
<version>${orientdb.version}</version>
</dependency>
此外,我建议摆脱
<dependency>
<groupId>com.tinkerpop.blueprints</groupId>
<artifactId>blueprints-core</artifactId>
<version>2.6.0</version>
</dependency>
<dependency>
<groupId>com.googlecode.concurrentlinkedhashmap</groupId>
<artifactId>concurrentlinkedhashmap-lru</artifactId>
<version>1.4.2</version>
</dependency>
因为这些是 orient 的图和核心模块的传递依赖。您可以在注释这些依赖项之前和之后使用“mvn dependency:tree”命令检查是否没有任何变化。
关于java - OrientDB验证错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38799744/
我对 OrientDB 中的多重继承很好奇...假设我创建了以下顶点类: CREATE CLASS A EXTENDS V CREATE PROPERTY A.label STRING CREATE
generic 类和vertex 或edge 类有什么区别?你为什么要用一个而不是另一个? 最佳答案 OrientDB 是一个多模型数据库。文档中介绍了数据建模: http://orientdb.co
如何在 Orientdb 中使 Edge 独一无二。 我想出的解决方案: 删除边 重新创建 但这并不好。 Edge 没有任何属性。 示例: create edge is_friend from #12
这是我现在使用的查询: INSERT INTO details SET name = "INITIALIZE",actionMap ={"1":12:1,"2":12:2}; 这里 12:1,12:2
考虑我们有 Vertex User 和 Edge FriendsWith。FriendsWith 可以在两个方向上进出(通常是在 2 个用户之间或在 2 个用户之间)。 重复是指从一个用户到另一个用户
是否可以删除 OrientDB 文档中嵌入列表中的一项?我有一个“个人数据”文档,其中包含“查询”列表。例如 { name: "Marco", inquiries: [{date: 2014-11-2
我想查询具有特定属性的文档。 我尝试了以下方法: select * from Foo where not bar is null 但这会返回我的文档,即使它们没有该属性。即使它可以工作,但如果存在以
我的问题是,我如何查询“聊天”表以检索个人资料表中的人员详细信息。 ParticipatinIn edge 从 Person 开始聊天。HasProfile Edge 开始了个人资料。 请帮我解决这个
我想查询具有特定属性的文档。 我尝试了以下方法: select * from Foo where not bar is null 但这会返回我的文档,即使它们没有该属性。即使它可以工作,但如果存在以
是否有可能得到一个例子来在 orientdb 中插入一条边。如果它不存在,有没有办法检查边是否存在,如果存在则只更新边,否则创建新边。我使用的是 Orientdb 2.1.13 版本。谢谢 最佳答案
我试图让 OrientDB Studio 显示一个字符串作为每个节点的标签,就像 Susheel Kumar 的这个截图一样 但是,当我运行 Susheel 的代码(为后代发布在下面)时,节点全部显示
我有一个相当复杂的查询 SELECT FROM ( SELECT EXPAND(INV()) FROM ( SELECT FROM ( SELECT EXPAND(OUTE('
我猜这是一个令人尴尬的初学者问题,无论如何... 在“服务器安全”下的 OrientDB 文档中,我们发现: While OrientDB Server can function as a regul
我有一个 CSV 文件,有 Id1 和 Id2。 Id1 和 Id2 是两个不同类的顶点。我想在 Id1 和 Id2 之间取得优势。这可以通过ETL实现吗? 我们可以在变压器的边缘配置中添加一些东西来
我正在研究 OrientDB 进行学术研究。我们应该关注的一个重要部分是 ACID 范式。 OrienDB 手册说: OrientDB is an ACID compliant DBMS. 它还说:
我正在使用 OrientDB 2.1.9 并创建了名为“TimespentEvents”的 plocal 图数据库。 当尝试在同一台机器上使用 JDBC 驱动程序从 Java 连接 URL 'jdbc
我想在 OrientDB 中使用蓝图和管道。 方法是什么?还有 TinkerPop3 或 TinkerPop2?哪个更适合我的学习体验? 最佳答案 OrientDB 的最新版本在本地实现了 Bluep
我一直在尝试使用 OrientDB 提供的“工作室”将 gremlin 与 OrientDB (V 3.0.30) 一起使用,但每次我尝试运行 gremlin 查询,例如 g.V我收到错误:com.o
昨天我们的 nexus 存储库实例由于磁盘已满事件而横盘整理。释放一些空间并尝试重新启动后,nexus 不再可用。结果,数据库损坏(大概)并且无法连接。当我运行 nexus-orient-consol
我正在使用带有 OrientDb Studio 2.2.8 的车辆历史数据库,并且我想要投影 automobile 类由 起亚。 数据库的架构如下所示: (汽车)--isModel-->(型号)--i
我是一名优秀的程序员,十分优秀!