我正尝试使用以下代码从Java + jIntegra连接到HP QC 10:
System.setProperty("JINTEGRA_NATIVE_MODE", "");
TDConnection connection = new TDConnection();
System.out.println("TDConnection object created");
connection.initConnectionEx("http://myserver:8080/qcbin/");
System.out.println("Connection initialized");
connection.login("user", "pass");
System.out.println("Logged in");
connection.connect("domain", "project");
System.out.println("Connected");
System.out.println(connection.isConnected());
所有看起来都很好,直到我调用connection.isConnected(),这会导致JVM崩溃:
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0b1d3cfc, pid=24452, tid=24052
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode windows-x86)
# Problematic frame:
# C [ntvinv.dll+0x13cfc]
就我所见,错误报告文件没有显示任何有意义的内容。 不幸的是我无法使用QC11,因此无法使用RESTful API。
知道如何解决这个问题吗?
谢谢, 马可