Uploaded image for project: 'Marmotta (Retired)'
  1. Marmotta (Retired)
  2. MARMOTTA-136

SPARQL HTML results not working

    Details

      Description

      Since e always use snorql for such kind of operations, we didn't realized of this bug. But working on MARMOTTA-135 I got it. I already fixed an issue regarding the location of the XSLT file, but requesting the select endpoint directly with a query we got the following exception:

      ERROR: 'A DocType cannot be added after the root element'
      14:35:09.974 WARN - Rolling back transaction due to connection close
      java.lang.Throwable: null
      at org.openrdf.sail.helpers.SailConnectionBase.close(SailConnectionBase.java:241) [sesame-sail-api-2.7.0-beta2.jar:na]
      at org.openrdf.sail.helpers.SailConnectionWrapper.close(SailConnectionWrapper.java:88) [sesame-sail-api-2.7.0-beta2.jar:na]
      at org.openrdf.sail.helpers.SailConnectionWrapper.close(SailConnectionWrapper.java:88) [sesame-sail-api-2.7.0-beta2.jar:na]
      at org.openrdf.repository.sail.SailRepositoryConnection.close(SailRepositoryConnection.java:129) [sesame-repository-sail-2.7.0-beta2.jar:na]
      at org.apache.marmotta.platform.sparql.services.sparql.SparqlServiceImpl.query(SparqlServiceImpl.java:105) [marmotta-sparql-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.sparql.services.sparql.SparqlServiceImpl$Proxy$$$_WeldClientProxy.query(SparqlServiceImpl$Proxy$$$_WeldClientProxy.java) [marmotta-sparql-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.sparql.webservices.SparqlWebService$1.write(SparqlWebService.java:485) [marmotta-sparql-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.jboss.resteasy.plugins.providers.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:32) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.plugins.providers.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:17) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl.proceed(MessageBodyWriterContextImpl.java:117) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.plugins.interceptors.encoding.GZIPEncodingInterceptor.write(GZIPEncodingInterceptor.java:104) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl.proceed(MessageBodyWriterContextImpl.java:123) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.core.ServerResponse.writeTo(ServerResponse.java:250) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.core.SynchronousDispatcher.writeJaxrsResponse(SynchronousDispatcher.java:602) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:528) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.core.SynchronousDispatcher.invokePropagateNotFound(SynchronousDispatcher.java:169) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:212) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:59) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:186) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.filters.ModuleResourceFilter.doFilter(ModuleResourceFilter.java:163) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.filters.ModuleResourceFilter$Proxy$$$_WeldClientProxy.doFilter(ModuleResourceFilter$Proxy$$$_WeldClientProxy.java) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.filters.MarmottaServerNameFilter.doFilter(MarmottaServerNameFilter.java:104) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.filters.TemplatingFilter.doFilter(TemplatingFilter.java:175) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.filters.TemplatingFilter$Proxy$$$_WeldClientProxy.doFilter(TemplatingFilter$Proxy$$$_WeldClientProxy.java) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter.doFilter(MarmottaAccessControlFilter.java:142) [marmotta-security-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter$Proxy$$$_WeldClientProxy.doFilter(MarmottaAccessControlFilter$Proxy$$$_WeldClientProxy.java) [marmotta-security-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter.doFilter(MarmottaAuthenticationFilter.java:163) [marmotta-user-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter$Proxy$$$_WeldClientProxy.doFilter(MarmottaAuthenticationFilter$Proxy$$$_WeldClientProxy.java) [marmotta-user-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter.doFilter(MarmottaResourceFilter.java:132) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.marmotta.platform.core.servlet.MarmottaOptionsFilter.doFilter(MarmottaOptionsFilter.java:96) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter.doFilter(MarmottaPreStartupFilter.java:110) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) [na:1.6.0_27]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.6.0_27]
      at java.lang.Thread.run(Thread.java:679) [na:1.6.0_27]
      14:35:10.148 WARN - failed to execute
      javax.ws.rs.WebApplicationException: org.openrdf.query.TupleQueryResultHandlerException: error while transforming XML results to HTML
      at org.apache.marmotta.platform.sparql.webservices.SparqlWebService$1.write(SparqlWebService.java:487) ~[marmotta-sparql-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.jboss.resteasy.plugins.providers.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:32) ~[resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.plugins.providers.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:17) ~[resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl.proceed(MessageBodyWriterContextImpl.java:117) ~[resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.plugins.interceptors.encoding.GZIPEncodingInterceptor.write(GZIPEncodingInterceptor.java:104) ~[resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl.proceed(MessageBodyWriterContextImpl.java:123) ~[resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.core.ServerResponse.writeTo(ServerResponse.java:250) ~[resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.core.SynchronousDispatcher.writeJaxrsResponse(SynchronousDispatcher.java:602) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:528) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.core.SynchronousDispatcher.invokePropagateNotFound(SynchronousDispatcher.java:169) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:212) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:59) [resteasy-jaxrs-2.3.5.Final.jar:na]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:186) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.filters.ModuleResourceFilter.doFilter(ModuleResourceFilter.java:163) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.filters.ModuleResourceFilter$Proxy$$$_WeldClientProxy.doFilter(ModuleResourceFilter$Proxy$$$_WeldClientProxy.java) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.filters.MarmottaServerNameFilter.doFilter(MarmottaServerNameFilter.java:104) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.filters.TemplatingFilter.doFilter(TemplatingFilter.java:175) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.filters.TemplatingFilter$Proxy$$$_WeldClientProxy.doFilter(TemplatingFilter$Proxy$$$_WeldClientProxy.java) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter.doFilter(MarmottaAccessControlFilter.java:142) [marmotta-security-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter$Proxy$$$_WeldClientProxy.doFilter(MarmottaAccessControlFilter$Proxy$$$_WeldClientProxy.java) [marmotta-security-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter.doFilter(MarmottaAuthenticationFilter.java:163) [marmotta-user-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter$Proxy$$$_WeldClientProxy.doFilter(MarmottaAuthenticationFilter$Proxy$$$_WeldClientProxy.java) [marmotta-user-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter.doFilter(MarmottaResourceFilter.java:132) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.marmotta.platform.core.servlet.MarmottaOptionsFilter.doFilter(MarmottaOptionsFilter.java:96) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter.doFilter(MarmottaPreStartupFilter.java:110) [marmotta-core-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) [tomcat-embed-core-7.0.30.jar:7.0.30]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) [na:1.6.0_27]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.6.0_27]
      at java.lang.Thread.run(Thread.java:679) [na:1.6.0_27]
      Caused by: org.openrdf.query.TupleQueryResultHandlerException: error while transforming XML results to HTML
      at org.apache.marmotta.platform.sparql.services.sparqlio.sparqlhtml.SPARQLResultsHTMLWriter.endQueryResult(SPARQLResultsHTMLWriter.java:126) ~[marmotta-sparql-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.openrdf.query.QueryResults.report(QueryResults.java:150) ~[sesame-query-2.7.0-beta2.jar:na]
      at org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:74) ~[sesame-repository-sail-2.7.0-beta2.jar:na]
      at org.apache.marmotta.platform.sparql.services.sparql.SparqlServiceImpl.query(SparqlServiceImpl.java:91) ~[marmotta-sparql-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.sparql.services.sparql.SparqlServiceImpl$Proxy$$$_WeldClientProxy.query(SparqlServiceImpl$Proxy$$$_WeldClientProxy.java) ~[marmotta-sparql-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      at org.apache.marmotta.platform.sparql.webservices.SparqlWebService$1.write(SparqlWebService.java:485) ~[marmotta-sparql-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      ... 52 common frames omitted
      Caused by: javax.xml.transform.TransformerException: org.jdom2.IllegalAddException: A DocType cannot be added after the root element
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:720) ~[na:1.6.0_27]
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:317) ~[na:1.6.0_27]
      at org.apache.marmotta.platform.sparql.services.sparqlio.sparqlhtml.SPARQLResultsHTMLWriter.endQueryResult(SPARQLResultsHTMLWriter.java:118) ~[marmotta-sparql-3.0.0-incubating-SNAPSHOT.jar:3.0.0-incubating-SNAPSHOT]
      ... 57 common frames omitted
      Caused by: org.jdom2.IllegalAddException: A DocType cannot be added after the root element
      at org.jdom2.Document.canContainContent(Document.java:819) ~[jdom2-2.0.4.jar:2.0.4]
      at org.jdom2.ContentList.add(ContentList.java:246) ~[jdom2-2.0.4.jar:2.0.4]
      at org.jdom2.ContentList.add(ContentList.java:79) ~[jdom2-2.0.4.jar:2.0.4]
      at java.util.AbstractList.add(AbstractList.java:108) ~[na:1.6.0_27]
      at org.jdom2.Document.addContent(Document.java:320) ~[jdom2-2.0.4.jar:2.0.4]
      at org.jdom2.DefaultJDOMFactory.addContent(DefaultJDOMFactory.java:310) ~[jdom2-2.0.4.jar:2.0.4]
      at org.jdom2.input.sax.SAXHandler.startDTD(SAXHandler.java:907) ~[jdom2-2.0.4.jar:na]
      at org.jdom2.transform.JDOMResult$DocumentBuilder.startDTD(JDOMResult.java:608) ~[jdom2-2.0.4.jar:2.0.4]
      at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.startElement(ToXMLSAXHandler.java:661) ~[na:1.6.0_27]
      at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.startElement(ToXMLSAXHandler.java:512) ~[na:1.6.0_27]
      at GregorSamsa.http$colon$$slash$$slash$www$dot$w3$dot$org$slash$1999$slash$xhtml$colon$template$dot$7() ~[na:na]
      at GregorSamsa.applyTemplates() ~[na:na]
      at GregorSamsa.applyTemplates() ~[na:na]
      at GregorSamsa.transform() ~[na:na]
      at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:607) ~[na:1.6.0_27]
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:713) ~[na:1.6.0_27]
      ... 59 common frames omitted
      Mar 11, 2013 2:35:10 PM org.apache.catalina.core.StandardWrapperValve invoke
      SEVERE: Servlet.service() for servlet [default] in context with path [] threw exception
      org.jboss.resteasy.spi.UnhandledException: Request was committed couldn't handle exception
      at org.jboss.resteasy.core.SynchronousDispatcher.handleWebApplicationException(SynchronousDispatcher.java:467)
      at org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:379)
      at org.jboss.resteasy.core.SynchronousDispatcher.handleWriterException(SynchronousDispatcher.java:415)
      at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:238)
      at org.jboss.resteasy.core.SynchronousDispatcher.handleWriteResponseException(SynchronousDispatcher.java:222)
      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:532)
      at org.jboss.resteasy.core.SynchronousDispatcher.invokePropagateNotFound(SynchronousDispatcher.java:169)
      at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:212)
      at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:59)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:186)
      at org.apache.marmotta.platform.core.filters.ModuleResourceFilter.doFilter(ModuleResourceFilter.java:163)
      at org.apache.marmotta.platform.core.filters.ModuleResourceFilter$Proxy$$$_WeldClientProxy.doFilter(ModuleResourceFilter$Proxy$$$_WeldClientProxy.java)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183)
      at org.apache.marmotta.platform.core.filters.MarmottaServerNameFilter.doFilter(MarmottaServerNameFilter.java:104)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      at org.apache.marmotta.platform.core.filters.TemplatingFilter.doFilter(TemplatingFilter.java:175)
      at org.apache.marmotta.platform.core.filters.TemplatingFilter$Proxy$$$_WeldClientProxy.doFilter(TemplatingFilter$Proxy$$$_WeldClientProxy.java)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      at org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter.doFilter(MarmottaAccessControlFilter.java:142)
      at org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter$Proxy$$$_WeldClientProxy.doFilter(MarmottaAccessControlFilter$Proxy$$$_WeldClientProxy.java)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      at org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter.doFilter(MarmottaAuthenticationFilter.java:163)
      at org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter$Proxy$$$_WeldClientProxy.doFilter(MarmottaAuthenticationFilter$Proxy$$$_WeldClientProxy.java)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter.doFilter(MarmottaResourceFilter.java:132)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.marmotta.platform.core.servlet.MarmottaOptionsFilter.doFilter(MarmottaOptionsFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter.doFilter(MarmottaPreStartupFilter.java:110)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:679)
      Caused by: javax.ws.rs.WebApplicationException: org.openrdf.query.TupleQueryResultHandlerException: error while transforming XML results to HTML
      at org.apache.marmotta.platform.sparql.webservices.SparqlWebService$1.write(SparqlWebService.java:487)
      at org.jboss.resteasy.plugins.providers.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:32)
      at org.jboss.resteasy.plugins.providers.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:17)
      at org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl.proceed(MessageBodyWriterContextImpl.java:117)
      at org.jboss.resteasy.plugins.interceptors.encoding.GZIPEncodingInterceptor.write(GZIPEncodingInterceptor.java:104)
      at org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl.proceed(MessageBodyWriterContextImpl.java:123)
      at org.jboss.resteasy.core.ServerResponse.writeTo(ServerResponse.java:250)
      at org.jboss.resteasy.core.SynchronousDispatcher.writeJaxrsResponse(SynchronousDispatcher.java:602)
      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:528)
      ... 44 more
      Caused by: org.openrdf.query.TupleQueryResultHandlerException: error while transforming XML results to HTML
      at org.apache.marmotta.platform.sparql.services.sparqlio.sparqlhtml.SPARQLResultsHTMLWriter.endQueryResult(SPARQLResultsHTMLWriter.java:126)
      at org.openrdf.query.QueryResults.report(QueryResults.java:150)
      at org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:74)
      at org.apache.marmotta.platform.sparql.services.sparql.SparqlServiceImpl.query(SparqlServiceImpl.java:91)
      at org.apache.marmotta.platform.sparql.services.sparql.SparqlServiceImpl$Proxy$$$_WeldClientProxy.query(SparqlServiceImpl$Proxy$$$_WeldClientProxy.java)
      at org.apache.marmotta.platform.sparql.webservices.SparqlWebService$1.write(SparqlWebService.java:485)
      ... 52 more
      Caused by: javax.xml.transform.TransformerException: org.jdom2.IllegalAddException: A DocType cannot be added after the root element
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:720)
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:317)
      at org.apache.marmotta.platform.sparql.services.sparqlio.sparqlhtml.SPARQLResultsHTMLWriter.endQueryResult(SPARQLResultsHTMLWriter.java:118)
      ... 57 more
      Caused by: org.jdom2.IllegalAddException: A DocType cannot be added after the root element
      at org.jdom2.Document.canContainContent(Document.java:819)
      at org.jdom2.ContentList.add(ContentList.java:246)
      at org.jdom2.ContentList.add(ContentList.java:79)
      at java.util.AbstractList.add(AbstractList.java:108)
      at org.jdom2.Document.addContent(Document.java:320)
      at org.jdom2.DefaultJDOMFactory.addContent(DefaultJDOMFactory.java:310)
      at org.jdom2.input.sax.SAXHandler.startDTD(SAXHandler.java:907)
      at org.jdom2.transform.JDOMResult$DocumentBuilder.startDTD(JDOMResult.java:608)
      at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.startElement(ToXMLSAXHandler.java:661)
      at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.startElement(ToXMLSAXHandler.java:512)
      at GregorSamsa.http$colon$$slash$$slash$www$dot$w3$dot$org$slash$1999$slash$xhtml$colon$template$dot$7()
      at GregorSamsa.applyTemplates()
      at GregorSamsa.applyTemplates()
      at GregorSamsa.transform()
      at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:607)
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:713)
      ... 59 more

        Attachments

          Activity

            People

            • Assignee:
              wikier Sergio Fernández
              Reporter:
              wikier Sergio Fernández

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Issue deployment