You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by "Neubert, Joachim" <J....@zbw.eu> on 2018/07/11 10:48:27 UTC
java.lang.ClassCastException: org.apache.jena.tdb.store.GraphTxnTDB
cannot be cast to org.apache.jena.tdb.store.GraphNonTxnTDB
With Fuseki 3.8.0 and the command line
java -cp /opt/fuseki/fuseki-server.jar tdb.tdbloader --loc=/zbw/var/lib/fuseki/databases/temp --graph=http://zbw.eu/beta/ebds/ng ../var/ebds/latest/rdf/ebds.nt
I get
java.lang.ClassCastException: org.apache.jena.tdb.store.GraphTxnTDB cannot be cast to org.apache.jena.tdb.store.GraphNonTxnTDB
at tdb.cmdline.CmdTDBGraph.getGraph(CmdTDBGraph.java:69)
at tdb.tdbloader.loadNamedGraph(tdbloader.java:127)
at tdb.tdbloader.exec(tdbloader.java:117)
at jena.cmd.CmdMain.mainMethod(CmdMain.java:93)
at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
at tdb.tdbloader.main(tdbloader.java:48)
The same call and the same kind of input seems to have worked with Fuseki 3.6.0.
Help highly appreciated - cheers, Joachim
AW: java.lang.ClassCastException:
org.apache.jena.tdb.store.GraphTxnTDB cannot be cast to
org.apache.jena.tdb.store.GraphNonTxnTDB
Posted by "Neubert, Joachim" <J....@zbw.eu>.
Hi Andy,
Thanks a lot!
Cheers, Joachim
> -----Ursprüngliche Nachricht-----
> Von: Andy Seaborne [mailto:andy@apache.org]
> Gesendet: Donnerstag, 12. Juli 2018 21:52
> An: users@jena.apache.org
> Betreff: Re: java.lang.ClassCastException:
> org.apache.jena.tdb.store.GraphTxnTDB cannot be cast to
> org.apache.jena.tdb.store.GraphNonTxnTDB
>
> Hi Joachim,
>
> I've recorded this as
>
> https://issues.apache.org/jira/browse/JENA-1575
>
> Workarounds:
>
> * Using a different version of Jena other than 3.8.0 will work.
>
> * Convert to quads and load the N-Quiads or Trig file.
>
> Andy
>
>
> On 11/07/18 11:48, Neubert, Joachim wrote:
> > With Fuseki 3.8.0 and the command line
> >
> > java -cp /opt/fuseki/fuseki-server.jar tdb.tdbloader --
> loc=/zbw/var/lib/fuseki/databases/temp --graph=http://zbw.eu/beta/ebds/ng
> ../var/ebds/latest/rdf/ebds.nt
> >
> > I get
> >
> > java.lang.ClassCastException: org.apache.jena.tdb.store.GraphTxnTDB cannot
> be cast to org.apache.jena.tdb.store.GraphNonTxnTDB
> > at tdb.cmdline.CmdTDBGraph.getGraph(CmdTDBGraph.java:69)
> > at tdb.tdbloader.loadNamedGraph(tdbloader.java:127)
> > at tdb.tdbloader.exec(tdbloader.java:117)
> > at jena.cmd.CmdMain.mainMethod(CmdMain.java:93)
> > at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
> > at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
> > at tdb.tdbloader.main(tdbloader.java:48)
> >
> > The same call and the same kind of input seems to have worked with Fuseki
> 3.6.0.
> >
> > Help highly appreciated - cheers, Joachim
> >
Re: java.lang.ClassCastException:
org.apache.jena.tdb.store.GraphTxnTDB cannot be cast to
org.apache.jena.tdb.store.GraphNonTxnTDB
Posted by Andy Seaborne <an...@apache.org>.
Hi Joachim,
I've recorded this as
https://issues.apache.org/jira/browse/JENA-1575
Workarounds:
* Using a different version of Jena other than 3.8.0 will work.
* Convert to quads and load the N-Quiads or Trig file.
Andy
On 11/07/18 11:48, Neubert, Joachim wrote:
> With Fuseki 3.8.0 and the command line
>
> java -cp /opt/fuseki/fuseki-server.jar tdb.tdbloader --loc=/zbw/var/lib/fuseki/databases/temp --graph=http://zbw.eu/beta/ebds/ng ../var/ebds/latest/rdf/ebds.nt
>
> I get
>
> java.lang.ClassCastException: org.apache.jena.tdb.store.GraphTxnTDB cannot be cast to org.apache.jena.tdb.store.GraphNonTxnTDB
> at tdb.cmdline.CmdTDBGraph.getGraph(CmdTDBGraph.java:69)
> at tdb.tdbloader.loadNamedGraph(tdbloader.java:127)
> at tdb.tdbloader.exec(tdbloader.java:117)
> at jena.cmd.CmdMain.mainMethod(CmdMain.java:93)
> at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
> at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
> at tdb.tdbloader.main(tdbloader.java:48)
>
> The same call and the same kind of input seems to have worked with Fuseki 3.6.0.
>
> Help highly appreciated - cheers, Joachim
>