Hi Adam, What is the version of the Virtuoso RDF4J Provider and JDBC driver being used:
java -jar virt_rdf4j.jar
java -jar virt_jdbc4_2.jar
as the components where updated last week and work for Henrik, thus want to
check you are using these ?
Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc. // http://www.openlinksw.com/
Weblog -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter -- http://twitter.com/OpenLink
Google+ -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers
> On 14 Jun 2017, at 21:03, Adam Sanchez <[email protected]> wrote:
>
> Hi,
>
> I wanted to add a virtuoso repository with the rdf4j workbench too but
> it did not work.
>
> I'm running virtuoso 7.2.4 open source on Mac Sierra with rdf4j 2.2.1,
> tomcat 8.0.39 (the same versions that Henrik used) and java version
> 1.8.0_73.
>
> I also followed the steps described in
>
> https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2HttpRepository
>
> Virtuoso is listed as an available repository and after I provided the
> connection details (I accepted all values given by default), I got the
> following message:
>
> ======================================================================================================
>
> there are potentially incompatible characters in the repository id
>
> ======================================================================================================
>
>
>
> and next, I got the next error message
>
>
>
> ======================================================================================================
>
> 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.
>
> ======================================================================================================
>
> However, when I used the RDF4J console it works.
>
> ======================================================================================================
>
> MacOSX:bin asanchez75$ sh console.sh
>
> 21:56:29.482 [main] DEBUG o.e.r.c.platform.PlatformFactory - os.name = mac os
> x
>
> 21:56:29.486 [main] DEBUG o.e.r.c.platform.PlatformFactory - Detected
> Mac OS X platform
>
> Connected to default data directory
>
> RDF4J Console 2.1.6
>
>
> 2.1.6
>
> Type 'help' for help.
>
>> create virtuoso
>
> Please specify values for the following variables:
>
> Repository ID [virtuoso]:
>
> Repository title [Virtuoso repository]:
>
> Host list [localhost:1111]:
>
> Username [dba]:
>
> Password [dba]:
>
> Default graph name [sesame:nil]:
>
> Enable using batch optimization (false|true) [false]:
>
> Use RoundRobin for connection (false|true) [false]:
>
> Insert BNode as Virtuoso IRI (false|true) [false]:
>
> Buffer fetch size [100]:
>
> Inference RuleSet name [null]:
>
> Inference MacroLib name [null]:
>
> ConcurrencyMode [0]:
>
> WARNING: you are about to overwrite the configuration of an existing
> repository!
>
> Proceed? (yes|no) [no]: yes
>
> Repository created
>
>> open virtuoso
>
> Opened repository 'virtuoso'
>
> virtuoso> show n .
>
> +----------
>
> |bif bif:
>
> |dawgt http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#
>
> |dbpedia http://dbpedia.org/resource/
>
> |dbpprop http://dbpedia.org/property/
>
>
> ======================================================================================================
>
> Any idea?
>
> Regards
>
> Adam
>
>
> On Tue, Jun 13, 2017 at 11:29 PM, Hugh Williams
> <[email protected]> wrote:
>> Hi Henrik,
>>
>> That is true, the sources are included as well such that gradle can
>> recompile if need be, but a compiled jar is provided also, so this is not
>> necessary unless the sources are changed. Anyway the source files have also
>> been updated and the zip file replaced ...
>>
>> Best Regards
>> Hugh Williams
>> Professional Services
>> OpenLink Software, Inc. // http://www.openlinksw.com/
>> Weblog -- http://www.openlinksw.com/blogs/
>> LinkedIn -- http://www.linkedin.com/company/openlink-software/
>> Twitter -- http://twitter.com/OpenLink
>> Google+ -- http://plus.google.com/100570109519069333827/
>> Facebook -- http://www.facebook.com/OpenLinkSoftware
>> Universal Data Access, Integration, and Management Technology Providers
>>
>>
>>
>> On 13 Jun 2017, at 16:28, Henrik Schmidt <[email protected]> wrote:
>>
>> Hi Hugh
>>
>> are you sure “rdf4j_virtuoso.zip” is not building it ?
>>
>> I can delete virt_rdf4j.jar and when executing
>>
>> ./gradlew clean Build -x test
>>
>> afterwards I get a new file with the current date stamp.
>>
>> The source is also included in the zip archive.
>>
>> So either it is downloading it or building it or its magic :-)
>>
>> Thanks for your support
>>
>> Henrik
>>
>> Hugh Williams schrieb am 13.06.2017 um 17:14:
>>
>> Hi Henrik,
>>
>> The “rdf4j_virtuoso.zip” does not compile the virt_rdf4j.jar provider which
>> is included as a prebuilt jar ...
>>
>> It appears the the Version 2.1.4 [Build 1.2] jar is problematic as when I
>> used that one I got the error you report. There is a later build:
>>
>> De-iMac:rdf4j hwilliams$ java -jar ./virt_rdf4j.jar
>> OpenLink Virtuoso(TM) Provider for RDF4J(TM) Version 2.1.4 [Build 1.3]
>> De-iMac:rdf4j hwilliams$
>>
>> which is in the git develop/7 branch, and testing with that build I can then
>> create a New Repo and insert & query data ...
>>
>> Thus I have updated the “rdf4j_virtuoso.zip” and the virt_rdf4j.jar provider
>> available for online download and referenced in the documentation, which
>> should now work whether the jar or zip is downloaded for use ...
>>
>> Best Regards
>> Hugh Williams
>> Professional Services
>> OpenLink Software, Inc. // http://www.openlinksw.com/
>> Weblog -- http://www.openlinksw.com/blogs/
>> LinkedIn -- http://www.linkedin.com/company/openlink-software/
>> Twitter -- http://twitter.com/OpenLink
>> Google+ -- http://plus.google.com/100570109519069333827/
>> Facebook -- http://www.facebook.com/OpenLinkSoftware
>> Universal Data Access, Integration, and Management Technology Providers
>>
>>
>>
>> On 13 Jun 2017, at 13:48, Henrik Schmidt <[email protected]> wrote:
>>
>> Hi,
>>
>> I succeeded by replacing the virt_rdf4j.jar Version 2.1.4 [Build 1.2] which
>> I downloaded as explained here :
>>
>> https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2HttpRepository
>>
>> I instead downloaded and extracted rdf4j_virtuoso.zip as explained here
>>
>> https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2Provider
>>
>> I compiled a new virt_rdf4j.jar after adding the latest rdf4j 2.2.2 in
>> build.gradle
>>
>> Though the result is an older build, reporting Version 2.0.1 [Build 1.1], it
>> is now matching and working with rdf4j 2.2.2 for me.
>>
>> Perhaps it is a good idea to update rdf4j_virtuoso.zip with the latest build
>> so one can compile a version which is the latest on all ends.
>>
>> Summary : virt_rdf4j.jar must be manually build to match a recent rdf4j.
>>
>> Best,
>>
>> Henrik
>>
>> Hugh Williams schrieb am 13.06.2017 um 01:10:
>>
>> Hi Henrik,
>>
>> We had originally tested with rdf4j 2.0.1 which works. I have just updated
>> my local installation to use the rdf4j 2.2.1 war files and it continues to
>> work and I can create and query new repositories.
>>
>> Note I am using Tomcat 9 but would expect it to work with other versions
>> ...
>>
>> Best Regards
>> Hugh Williams
>> Professional Services
>> OpenLink Software, Inc. // http://www.openlinksw.com/
>> Weblog -- http://www.openlinksw.com/blogs/
>> LinkedIn -- http://www.linkedin.com/company/openlink-software/
>> Twitter -- http://twitter.com/OpenLink
>> Google+ -- http://plus.google.com/100570109519069333827/
>> Facebook -- http://www.facebook.com/OpenLinkSoftware
>> Universal Data Access, Integration, and Management Technology Providers
>>
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>>
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>>
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/virtuoso-users
