我有以下代码用于创建连接和启动事务:
org.openrdf.repository.RepositoryConnection con = repo.getConnection();
con.begin();con.begin()行产生以下错误:
No signature of method: org.openrdf.repository.http.HTTPRepositoryConnection.begin() is applicable for argument types: () values: []
Possible solutions: wait(), find(), wait(long), is(java.lang.Object), print(java.io.PrintWriter), print(java.lang.Object)这个电话是合法的,我不知道该怎么解决这个问题。我考虑不使用调用,但被告知调用是必要的,以防止自动提交。我不确定这里最好的解决方案是什么,任何帮助都是非常感谢的。
发布于 2015-07-07 07:23:55
我使用def con =修复了它,而不是org.openrdf.repository.RepositoryConnection。
另外,我对三个不同的jar文件(httpclient、httpcore、httpmime)有冲突,删除它们的较旧副本解决了问题。
https://stackoverflow.com/questions/31193647
复制相似问题