On 06/26/2017 07:16 PM, Henrik Schmidt wrote:
Hi Adam,

can you explain why your solution was necessary and it did work without
it for me ?

Best

Henrik

Adam Sanchez schrieb am 23.06.2017 um 13:57:
Hi Hugh,

Finally I found my own solution. I am not very proud but it works at least.
Well, I have to compile RDF4J (https://github.com/eclipse/rdf4j)
including the libraries and the templates provided by Virtuoso
(http://vos.openlinksw.com/owiki/wiki/VOS/VirtSesame2HttpRepository)

The steps I followed are described here.

https://github.com/asanchez75/rdf4j/wiki

The changes were implemented in the branch virtuoso-7.2.4.2

Regards,

Adam

On Thu, Jun 22, 2017 at 11:15 AM, Adam Sanchez <a.sanche...@gmail.com> wrote:
Hi Hugh,

I still got the same error I reported. Just in case, these are the
paths and the versions I am using.

- I have downloaded virt_rdf4j.jar from

https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/virt_rdf4j.jar

and the version is

java -jar 
/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-server/WEB-INF/lib/virt_rdf4j.jar

OpenLink Virtuoso(TM) Provider for RDF4J(TM) Version 2.1.4 [Build 1.3]

- I have downloaded virt_rdf4j.jar from

https://opldownload.s3.amazonaws.com/uda/virtuoso/jdbc/virtjdbc4_2.jar

and the version is

java -jar 
/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/WEB-INF/lib/virtjdbc4_2.jar

OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 4.2 [Build 3.100]
[Sergey]
1)
Your(from link above) virt_rdf4j.jar file is Ok,

If you need the latest sources(Gradle based) and jar, you could download it 
from:

http://opldownload.s3.amazonaws.com/uda/virtuoso/7.2/rdfproviders/rdf4j/2/rdf4j_provider.zip

2)
You must place virt_rdf4j.jar and virtjdbc4_2.jar to both web apps to 
rdf4j-server and to rdf4j-workbench

/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-server/WEB-INF/lib/virt_rdf4j.jar
/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-server/WEB-INF/lib/virtjdbc4_2.jar

/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/WEB-INF/lib/virt_rdf4j.jar
/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/WEB-INF/lib/virtjdbc4_2.jar

The virt_rdf4j.jar could not work without virtjdbc4_2.jar

I have tested Virtuoso RDF4J provider with my local Tomcat server and it works 
without Nullpointer exceptions.


- I have downloaded create.xsl from

https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/create.xsl

and the path is

/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/transformations/create.xsl

- I have downloaded create-virtuoso.xsl from

https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/create-virtuoso.xsl

and the path is

/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/transformations/create-virtuoso.xsl

- The java version is

java version "1.8.0_73", Java(TM) SE Runtime Environment (build
1.8.0_73-b02), Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02,
mixed mode)

- The Virtuoso version is

Virtuoso Version: 07.20.3217, Build: Jun 22 2017.
I compiled the branch stable/7, latest commit -> 0468195 Merge branch
'hotfix/7.2.4.2' into stable/7

- The RDF4J version is

RDF4J Workbench Version 2.1.6
(http://www.eclipse.org/downloads/download.php?file=/rdf4j/eclipse-rdf4j-2.1.6-sdk.zip)

- The operating system is

Operating System  Mac OS X 10.12.5 (x86_64)

- The error message that shows up after I try to create a repository
connected with Virtuoso is

=============================================================================

HTTP Status 500 - java.lang.NullPointerException

type Exception report

message java.lang.NullPointerException

description The server encountered an internal error that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.NullPointerException
org.eclipse.rdf4j.workbench.commands.CreateServlet.doPost(CreateServlet.java:68)
org.eclipse.rdf4j.workbench.base.TransformationServlet.service(TransformationServlet.java:96)
org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
org.eclipse.rdf4j.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:109)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:213)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.handleRequest(WorkbenchServlet.java:141)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:109)
org.eclipse.rdf4j.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:120)
org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.eclipse.rdf4j.workbench.proxy.CacheFilter.doFilter(CacheFilter.java:62)
org.eclipse.rdf4j.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:53)

root cause

java.lang.NullPointerException
org.eclipse.rdf4j.workbench.commands.CreateServlet.getConfigTemplate(CreateServlet.java:153)
org.eclipse.rdf4j.workbench.commands.CreateServlet.createRepositoryConfig(CreateServlet.java:120)
org.eclipse.rdf4j.workbench.commands.CreateServlet.doPost(CreateServlet.java:65)
org.eclipse.rdf4j.workbench.base.TransformationServlet.service(TransformationServlet.java:96)
org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
org.eclipse.rdf4j.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:109)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:213)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.handleRequest(WorkbenchServlet.java:141)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:109)
org.eclipse.rdf4j.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:120)
org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.eclipse.rdf4j.workbench.proxy.CacheFilter.doFilter(CacheFilter.java:62)
org.eclipse.rdf4j.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:53)

note The full stack trace of the root cause is available in the Apache
Tomcat/8.0.39 logs.

=============================================================================



Any idea?

Regards,

Adam



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


--
Best Regards,
Sergey Malinin



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to