Hi Luke,

Have you run the sample programs provided with the Jena RDF provider to confirm these work as detailed at:

http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/ VirtJenaProvider#Testing

These all use the VirtGraph class, but VirtModel should work also.

The other point to check is that you are using the specific Virtuoso JDBC Driver (virtjdbc3.jar) shipped with your release. This is especially true if you've had previous Virtuoso installations installed and they may be an old version being picked up, so check to ensure the CLASSPATH is set to pickup the correct driver, the version of which can be checked by running the following command:

        $ java virtuoso.jdbc3.Driver
        OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 3.x [Build 3.25]

Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support



On 28 Oct 2008, at 22:38, Luke McCarthy wrote:

Hi there,

I am attempting to query a Virtuoso server using Jena.  For maximum
compatibility with the existing code base, I'd like to end up with a
com.hp.hpl.jena.rdf.model.Model implementation.

The code I've got looks like this:

        Model model = VirtModel.createDatabaseModel(
                "test_1",
                "jdbc:virtuoso://localhost:1111",
                "dba",
                "dba"
        );

This dies immediately with the following exception:

"virtuoso.jdbc3.VirtuosoException: Virtuoso Communications Link Failure
(timeout) : Connection to the server lost"

Inspection of the server logs reveals the following message:

"Malformed data received from IP [127.0.0.1] : Box length too large.
Disconnecting the client"

Does anyone know how to fix this? Is it a server configuration problem?
Something I'm missing in the code?  I'm running
virtuoso-opensource-5.0.8 on 64-bit Ubuntu, using the default
virtuoso.ini unmodified.

Please let me know if any more information would help, and thanks in
advance.  Cheers,

Luke


---------------------------------------------------------------------- --- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to