I have a query with some counts for statistics (only way I got them working)

     { SELECT ?ls_id (count(distinct ?pl_fi) as ?fi_count) WHERE { GRAPH ?ls_id {
          ?c skos:prefLabel ?pl_fi FILTER(LANG(?pl_fi) = "fi")
        }}  GROUP BY ?ls_id   }

    OPTIONAL {
    { SELECT ?ls_id (count(distinct ?pl_en) as ?en_count)WHERE { GRAPH ?ls_id {
          ?c skos:prefLabel ?pl_en FILTER(LANG(?pl_en) = "en")
        }}  GROUP BY ?ls_id   }
    }

    OPTIONAL {
    { SELECT ?ls_id (count(distinct ?pl_sv) as ?sv_count)WHERE { GRAPH ?ls_id {
          ?c skos:prefLabel ?pl_sv FILTER(LANG(?pl_sv) = "sv")
        }}  GROUP BY ?ls_id   }
    }

With en and fi languages this works, but adding sv it fails with Server Error and 12000+ lines of log for one exception. Log is truncated so beginning of the log is missing. How could I proceed with debugging this? Jena is 4.6.1 and I'm running queries in Fuseki web GUI.

Last lines of exception log:

Apr 20 15:08:40 x.lingsoft.fi java[832674]:         at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497) ~[fuseki-server.jar:4.6.1] Apr 20 15:08:40 x.lingsoft.fi java[832674]:         at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282) ~[fuseki-server.jar:4.6.1] Apr 20 15:08:40 x.lingsoft.fi java[832674]:         at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:319) ~[fuseki-server.jar:4.6.1] Apr 20 15:08:40 x.lingsoft.fi java[832674]:         at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) ~[fuseki-server.jar:4.6.1] Apr 20 15:08:40 x.lingsoft.fi java[832674]:         at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) ~[fuseki-server.jar:4.6.1] Apr 20 15:08:40 x.lingsoft.fi java[832674]:         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:412) ~[fuseki-server.jar:4.6.1] Apr 20 15:08:40 x.lingsoft.fi java[832674]:         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:381) ~[fuseki-server.jar:4.6.1] Apr 20 15:08:40 x.lingsoft.fi java[832674]:         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:268) ~[fuseki-server.jar:4.6.1] Apr 20 15:08:40 x.lingsoft.fi java[832674]:         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:138) ~[fuseki-server.jar:4.6.1] Apr 20 15:08:40 x.lingsoft.fi java[832674]:         at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:407) ~[fuseki-server.jar:4.6.1] Apr 20 15:08:40 x.lingsoft.fi java[832674]:         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:894) ~[fuseki-server.jar:4.6.1] Apr 20 15:08:40 x.lingsoft.fi java[832674]:         at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1038) ~[fuseki-server.jar:4.6.1] Apr 20 15:08:40 x.lingsoft.fi java[832674]: [2023-04-20 15:08:40] Fuseki     INFO  [6607] 500 Server Error (40.263 s) Apr 20 15:08:40 x.lingsoft.fi java[832674]: [2023-04-20 15:08:40] Fuseki     INFO  [6606] 500 Server Error (40.279 s)

Reply via email to