I have the following code running in my project as i am trying to access the repositories in the sesame server:
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();
}
I have even used the debug to locate where the error comes from but it seesm its coming from:
RepositoryConnection con= myRepository.getConnection();
When i run the code the get the following error.
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.