Hi Julien,
So this is a JDBC program indicating the JDBC driver (virtjdbc4_1.jar) is
causing the issue, did you compile this from source also ?
Running against the latest develop/7 build you sample program does run without
error for me:
[virtuoso@masala vos]# javac -cp
"/2d2/git/virt-develop7/libsrc/JDBCDriverType4/virtjdbc4_1.jar:." Test.java
[virtuoso@masala vos]# java -cp
"/2d2/git/virt-develop7/libsrc/JDBCDriverType4/virtjdbc4_1.jar:." Test
[virtuoso@masala vos]#
[virtuoso@masala vos]# more Test.java
import java.sql.*;
import java.sql.DriverManager;
import java.sql.Connection;
public class Test {
public static void main(String[] args) {
try {
Connection conn =
DriverManager.getConnection("jdbc:virtuoso://localhost:1234/", "dba", "dba");
} catch (SQLException ex) {
ex.printStackTrace();
}
}
}
[root@masala vos]#
[root@masala vos]# isql 1234
Connected to OpenLink Virtuoso
Driver: 07.10.3211 OpenLink Virtuoso ODBC Driver
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.
SQL> status('');
REPORT
VARCHAR
_______________________________________________________________________________
OpenLink Virtuoso Server
Version 07.10.3211-pthreads for Linux as of Jul 12 2014
Started on: 2014-07-13 01:14 GMT+2
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 11 Jul 2014, at 17:14, Julien Plu <[email protected]>
wrote:
> Hi Hugh,
>
> I use virtjdbc4_1.jar :
>
> java -jar
> ~/.m2/repository/com/openlinksw/virtuoso/virtjdbc/4.1/virtjdbc-4.1.jar
>
> And for virtjena, I recompiled it myself, I just changed the Jena version
> from 2.10.1 to 2.11.2. The classpath line that I used looks like this :
>
> JENA_CLASSPATH =
> .:lib/junit-4.5.jar:lib/jena-arq-2.11.2.jar:lib/jena-iri-1.0.2.jar:lib/jena-core-2.11.2.jar:lib/jena-core-2.11.2-tests.jar:$(top_srcdir)/libsrc/JDBCDriverType4/virtjdbc4_1.jar:lib/jcl-over-slf4j-1.7.6.jar:lib/log4j-1.2.17.jar:lib/slf4j-api-1.7.6.jar:lib/slf4j-log4j12-1.7.6.jar:lib/xercesImpl-2.11.0.jar:lib/xml-apis-1.4.01.jar
>
> And here a really simple piece of code which doesn't works :
>
> import java.sql.DriverManager;
> import java.sql.Connection;
>
> public class Test {
> public static void main(String[] args) {
> try {
> Connection conn =
> DriverManager.getConnection("jdbc:virtuoso://localhost:1111/", "user",
> "pass");
> } catch (SQLException ex) {
> ex.printStackTrace();
> }
> }
> }
>
> I have the exception :
>
> Exception in thread "main" virtuoso.jdbc4.VirtuosoException: Communications
> Link Failure (timeout):Connection to the server lost
>
> Only on the Virtuoso instance from develop branch.
>
> Best.
>
> Julien.
>
>
> -------------------------------------------------------------------------------------------------------------------------------
> Julien Plu
>
> PhD Student at Eurecom.
> Personal webpage: http://jplu.developpez.com
> FOAF file : http://jplu.developpez.com/julien
> Email address : [email protected]
> Phone : +33493008200
> Twitter : @julienplu
>
>
> 2014-07-11 18:17 GMT+02:00 Hugh Williams <[email protected]>:
>
> Hi Julien,
>
> Where did you get the "OpenLink Virtuoso(TM) Provider for Jena(TM) Version
> 2.10.1 [Build 1.10]" virt_jena2.jar from as when I check the in the git
> stable and develop 7 branches the version is 1.9:
>
> [virtuoso@masala git]# java -jar virt-develop7/binsrc/jena2/virt_jena2.jar
> OpenLink Virtuoso(TM) Provider for Jena(TM) Version 2.10.1 [Build 1.9]
> [virtuoso@masala git]# java -jar virt-stable7/binsrc/jena2/virt_jena2.jar
> OpenLink Virtuoso(TM) Provider for Jena(TM) Version 2.10.1 [Build 1.9]
>
> and the JDBC Driver versions are:
>
> [virtuoso@masala git]# java -jar
> virt-stable7/libsrc/JDBCDriverType4/virtjdbc4.jar
> OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 4.x [Build 3.65]
> [virtuoso@masala git]# java -jar
> virt-develop7/libsrc/JDBCDriverType4/virtjdbc4.jar
> OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 4.x [Build 3.70]
>
> Also, if you could a compilable/runnable program it would be useful for
> recreation attempt ...
>
> 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 11 Jul 2014, at 15:45, Julien Plu <[email protected]>
> wrote:
>
> > Hi Hugh,
> >
> > Apparently, yes, it appears with Jena and the Virtuoso wrapper. I have also
> > another problem with virtjena2, with my main Virtuoso instance (Virtuoso
> > 7.1 stable), I can connect me via JDBC without any problems, but if I use
> > another one (Virtuoso 7.1.1-dev, last version of the develo/7 branch), the
> > server disconnect me with the message :
> >
> > Malformed data received from IP [127.0.0.1] : Box length too large.
> > Disconnecting the client
> >
> > Here the versions that I use, for JDBC :
> >
> > OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 4.1 [Build 3.70]
> >
> > For virtjena2 :
> >
> > OpenLink Virtuoso(TM) Provider for Jena(TM) Version 2.10.1 [Build 1.10]
> >
> > I use these same jars for the connection on my stable version and on my
> > develop version of Virtuoso.
> >
> > Is-it a bug of the develop version or I use these jars badly ?
> >
> > Best.
> >
> > Julien.
> >
> >
> > 2014-07-11 16:58 GMT+02:00 Hugh Williams <[email protected]>:
> > HI Julien,
> >
> > I see you reposted this question on the jena mailing list this I assume the
> > problem occurs with the Jena storage engine also and is thus most likely in
> > the Jena layer and Virtuoso ?
> >
> > 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 11 Jul 2014, at 14:48, Julien Plu <[email protected]>
> > wrote:
> >
> >> Sorry a little mistake in the code :
> >>
> >> Model md = VirtModel.openDatabaseModel("http://example.com", URL, USER,
> >> PASS);
> >>
> >> RDFDataMgr.read(md, Files.newInputStream(Paths.
> >> get("data.nq")), Lang.NQUADS);
> >>
> >>
> >>
> >> 2014-07-11 15:47 GMT+02:00 Julien Plu
> >> <[email protected]>:
> >> Hi,
> >>
> >> I'm trying to load a N-Quad file into Virtuoso but with the "virtjena"
> >> wrapper. What I'm doing is as simple as this :
> >>
> >> Model md = VirtModel.openDatabaseModel("http://example.com", URL, USER,
> >> PASS);
> >>
> >> RDFDataMgr.read(md,
> >> Files.newInputStream(Paths.get(PrivacyDeployment.FILE)), Lang.NQUADS);
> >>
> >> But when I do this query inside the isql command prompt :
> >>
> >> SPARQL SELECT * FROM <http://example.com> WHERE {?s ?p ?o};
> >>
> >> Nothing is provided to me, 0 rows.
> >>
> >> Do-I something badly ?
> >>
> >> Best.
> >>
> >> Julien.
> >>
> >> ------------------------------------------------------------------------------
> >> Open source business process management suite built on Java and Eclipse
> >> Turn processes into business applications with Bonita BPM Community Edition
> >> Quickly connect people, data, and systems into organized workflows
> >> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> >> http://p.sf.net/sfu/Bonitasoft_______________________________________________
> >> Virtuoso-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
> >
> >
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Virtuoso-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users