Hi Andy, thank you for the prompt reply.
I'm using version 3.12.0. Currently, I managed to enable logging and checking if I can fix the problem myself. I could not fix the problem myself, I'll get back with further questions. Kind regards, Mohamed Morsey On Mon, Jan 6, 2020 at 12:22 PM Andy Seaborne <[email protected]> wrote: > Hi there, > > Which version are you running? > > What does the server log say? It logs all requests - you may need > > static { FusekiLogging.setLogging(); } > > in your test class and make sure you haven't turned off logginbg by > level with log4j.properties somewhere. > > Andy > > On 06/01/2020 11:05, Mohamed Morsey wrote: > > Hi all, > > > > I have a problem with getting Fuseki server working with unit tests. > > > > What I do is the following: > > 1- Create and start Fuseki server via the following piece of code: > > > > > > > > > > *fusekiServer = FusekiServer.create().add("/sparql", > > > DatasetFactory.create(ModelFactory.createDefaultModel())).port(9090).build();fusekiServer.start();* > > > > 2- Load data as follows: > > > > > > *try (RDFConnection conn = > > RDFConnectionFactory.connect("http://localhost:9090/sparql > > <http://localhost:9090/sparql>")) {* > > *conn.load(dataModel);**}* > > > > 3- I can then send SPARQL queries to that endpoint. > > > > This works fine in runtime. However, in unit tests mode I get > > "org.apache.jena.atlas.web.HttpException" exception with message "500 - > > Server Error" when loading the data. > > Further, if I try to send a query I get > > "org.apache.jena.sparql.engine.http.QueryExceptionHTTP" exception." with > > message "HTTP 500 error making the query: Server Error". > > > > Can you please help me out with this? > > Thank you! > > kind regards, > > Mohamed Morsey > > >
