Uploaded image for project: 'Marmotta'
  1. Marmotta
  2. MARMOTTA-247

URNs are not properly handled by the Linked Data Explorer

    XMLWordPrintableJSON

    Details

      Description

      When URNs are used by resources, the Linked Data Explorer is not able to handle requests like:

      http://178.22.69.86/resource?uri=urn%3Afoo

      It crashes with the following exception:

      org.jboss.resteasy.spi.UnhandledException: java.lang.reflect.UndeclaredThrowableException
      org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:365)
      org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:233)
      org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:209)
      org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:557)
      org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524)
      org.jboss.resteasy.core.SynchronousDispatcher.invokePropagateNotFound(SynchronousDispatcher.java:169)
      org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:212)
      org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:59)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:186)
      org.apache.marmotta.platform.core.filters.ModuleResourceFilter.doFilter(ModuleResourceFilter.java:163)
      org.apache.marmotta.platform.core.filters.ModuleResourceFilter$Proxy$$$_WeldClientProxy.doFilter(ModuleResourceFilter$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183)
      org.apache.marmotta.platform.core.filters.MarmottaServerNameFilter.doFilter(MarmottaServerNameFilter.java:104)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.core.filters.TemplatingFilter.doFilter(TemplatingFilter.java:176)
      org.apache.marmotta.platform.core.filters.TemplatingFilter$Proxy$$$_WeldClientProxy.doFilter(TemplatingFilter$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183)
      org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter.doFilter(MarmottaAccessControlFilter.java:142)
      org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter$Proxy$$$_WeldClientProxy.doFilter(MarmottaAccessControlFilter$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter.doFilter(MarmottaAuthenticationFilter.java:163)
      org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter$Proxy$$$_WeldClientProxy.doFilter(MarmottaAuthenticationFilter$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter.doFilter(MarmottaResourceFilter.java:132)
      org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter.doFilter(MarmottaPreStartupFilter.java:110)
      com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:179)
      com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:241)
      root cause

      java.lang.reflect.UndeclaredThrowableException
      com.sun.proxy.$Proxy132.getContentPath(Unknown Source)
      org.apache.marmotta.platform.core.services.content.FileSystemContentReader.getContentType(FileSystemContentReader.java:234)
      org.apache.marmotta.platform.core.services.content.FileSystemContentReader$Proxy$$$_WeldClientProxy.getContentType(FileSystemContentReader$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.services.content.ContentServiceImpl.getContentType(ContentServiceImpl.java:290)
      org.apache.marmotta.platform.core.services.content.ContentServiceImpl$Proxy$$$_WeldClientProxy.getContentType(ContentServiceImpl$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.webservices.resource.ResourceWebService.get(ResourceWebService.java:377)
      org.apache.marmotta.platform.core.webservices.resource.ResourceWebService.getRemote(ResourceWebService.java:347)
      org.apache.marmotta.platform.core.webservices.resource.ResourceWebService$Proxy$$$_WeldClientProxy.getRemote(ResourceWebService$Proxy$$$_WeldClientProxy.java)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      java.lang.reflect.Method.invoke(Method.java:601)
      org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167)
      org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269)
      org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227)
      org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216)
      org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542)
      org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524)
      org.jboss.resteasy.core.SynchronousDispatcher.invokePropagateNotFound(SynchronousDispatcher.java:169)
      org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:212)
      org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:59)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:186)
      org.apache.marmotta.platform.core.filters.ModuleResourceFilter.doFilter(ModuleResourceFilter.java:163)
      org.apache.marmotta.platform.core.filters.ModuleResourceFilter$Proxy$$$_WeldClientProxy.doFilter(ModuleResourceFilter$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183)
      org.apache.marmotta.platform.core.filters.MarmottaServerNameFilter.doFilter(MarmottaServerNameFilter.java:104)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.core.filters.TemplatingFilter.doFilter(TemplatingFilter.java:176)
      org.apache.marmotta.platform.core.filters.TemplatingFilter$Proxy$$$_WeldClientProxy.doFilter(TemplatingFilter$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183)
      org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter.doFilter(MarmottaAccessControlFilter.java:142)
      org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter$Proxy$$$_WeldClientProxy.doFilter(MarmottaAccessControlFilter$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter.doFilter(MarmottaAuthenticationFilter.java:163)
      org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter$Proxy$$$_WeldClientProxy.doFilter(MarmottaAuthenticationFilter$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter.doFilter(MarmottaResourceFilter.java:132)
      org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter.doFilter(MarmottaPreStartupFilter.java:110)
      com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:179)
      com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:241)
      root cause

      java.lang.IllegalAccessException: no active transaction, cannot access triple-store.
      org.apache.marmotta.commons.sesame.facading.impl.FacadingInvocationHandler.invoke(FacadingInvocationHandler.java:230)
      com.sun.proxy.$Proxy132.getContentPath(Unknown Source)
      org.apache.marmotta.platform.core.services.content.FileSystemContentReader.getContentType(FileSystemContentReader.java:234)
      org.apache.marmotta.platform.core.services.content.FileSystemContentReader$Proxy$$$_WeldClientProxy.getContentType(FileSystemContentReader$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.services.content.ContentServiceImpl.getContentType(ContentServiceImpl.java:290)
      org.apache.marmotta.platform.core.services.content.ContentServiceImpl$Proxy$$$_WeldClientProxy.getContentType(ContentServiceImpl$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.webservices.resource.ResourceWebService.get(ResourceWebService.java:377)
      org.apache.marmotta.platform.core.webservices.resource.ResourceWebService.getRemote(ResourceWebService.java:347)
      org.apache.marmotta.platform.core.webservices.resource.ResourceWebService$Proxy$$$_WeldClientProxy.getRemote(ResourceWebService$Proxy$$$_WeldClientProxy.java)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      java.lang.reflect.Method.invoke(Method.java:601)
      org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167)
      org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269)
      org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227)
      org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216)
      org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542)
      org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524)
      org.jboss.resteasy.core.SynchronousDispatcher.invokePropagateNotFound(SynchronousDispatcher.java:169)
      org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:212)
      org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:59)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:186)
      org.apache.marmotta.platform.core.filters.ModuleResourceFilter.doFilter(ModuleResourceFilter.java:163)
      org.apache.marmotta.platform.core.filters.ModuleResourceFilter$Proxy$$$_WeldClientProxy.doFilter(ModuleResourceFilter$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183)
      org.apache.marmotta.platform.core.filters.MarmottaServerNameFilter.doFilter(MarmottaServerNameFilter.java:104)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.core.filters.TemplatingFilter.doFilter(TemplatingFilter.java:176)
      org.apache.marmotta.platform.core.filters.TemplatingFilter$Proxy$$$_WeldClientProxy.doFilter(TemplatingFilter$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183)
      org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter.doFilter(MarmottaAccessControlFilter.java:142)
      org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter$Proxy$$$_WeldClientProxy.doFilter(MarmottaAccessControlFilter$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter.doFilter(MarmottaAuthenticationFilter.java:163)
      org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter$Proxy$$$_WeldClientProxy.doFilter(MarmottaAuthenticationFilter$Proxy$$$_WeldClientProxy.java)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter.doFilter(MarmottaResourceFilter.java:132)
      org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter.doFilter(MarmottaPreStartupFilter.java:110)
      com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:179)
      com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:241)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                wikier Sergio Fernández
                Reporter:
                wikier Sergio Fernández
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: