Я следующий код работает в моем проекте, как я пытаюсь получить доступ к хранилищам на сервере кунжута:NoSuchMethodError при попытке подключиться к Сезам Repository
try{
String serverUrl = "http://localhost:8080/openrdf-sesame";
String repositoryID ="200";
RepositoryProvider.getRepositoryManager(serverUrl);
Repository myRepository =new HTTPRepository(serverUrl,repositoryID);
myRepository.initialize();
RepositoryConnection con= myRepository.getConnection();
}
Я даже использовал отладку, чтобы найти, где ошибка исходит из:
RepositoryConnection con= myRepository.getConnection();
Когда я запустил код, получите следующую ошибку.
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error() that prevented it from fulfilling this request.
exception
java.lang.NoSuchMethodError: org.openrdf.model.impl.ValueFactoryImpl.getInstance()Lorg/openrdf/model/impl/ValueFactoryImpl;
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.1 logs.
Возможный дубликат [Как исправить NoSuchMethodError?] (Http://stackoverflow.com/questions/35186/how-do-fix-a-nosuchmethoderror) –