org.fcrepo.server.errors.StreamIOException: [DatastreamManagedContent] returned the error: "org.fcrepo.server.errors.HttpServiceNotFoundException". Reason: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " .

Sakai JIRA | Chris Beer | 6 years ago
  1. 0

    I ingested some objects with the pid namespace "file" with a managed content datastream. As far as I can tell, the ingest was successful (perhaps because of the patch for https://jira.duraspace.org/browse/FCREPO-696), but when I try to access the datastream using either the API-A-LITE or REST API (e.g. http://localhost:8180/fedora/objects/file%3Abarcode111480/datastreams/Exiftool.rdf/content) , I receive an HTTP 500 error and this message: javax.ws.rs.WebApplicationException: org.fcrepo.server.errors.StreamIOException: [DatastreamManagedContent] returned the error: "org.fcrepo.server.errors.HttpServiceNotFoundException". Reason: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " . [ Full stack trace from fedora.log at bottom ]. If I re-ingest the object in a different namespace, I do not receive the error. ======= ERROR 2011-04-13 13:23:09.047 [MainThread] (DefaultExternalContentManager) URI is not hierarchical java.lang.IllegalArgumentException: URI is not hierarchical at java.io.File.<init>(File.java:363) [na:1.6.0_22] at org.fcrepo.server.storage.DefaultExternalContentManager.getFromFilesystem(DefaultExternalContentManager.java:235) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.DefaultExternalContentManager.getExternalContent(DefaultExternalContentManager.java:146) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:175) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:129) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.access.DefaultAccess.getDatastreamDissemination(DefaultAccess.java:1165) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.rest.DatastreamResource.getDatastream(DatastreamResource.java:232) [fcrepo-server-3.4.2.jar:na] at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:175) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:163) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:689) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:647) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:638) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:590) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servlet-api-2.5-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098) [jetty-6.1.3.jar:6.1.3] at org.fcrepo.server.security.servletfilters.FilterRestApiFlash.doFilter(FilterRestApiFlash.java:79) [fcrepo-server-3.4.2.jar:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) [jetty-6.1.3.jar:6.1.3] at org.fcrepo.server.security.jaas.AuthFilterJAAS.doFilter(AuthFilterJAAS.java:295) [fcrepo-security-jaas-3.4.2.jar:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.Server.handle(Server.java:285) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) [jetty-6.1.3.jar:6.1.3] at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) [jetty-util-6.1.3.jar:6.1.3] ERROR 2011-04-13 13:23:09.052 [MainThread] (DatastreamResource) Unexpected error fulfilling REST API request org.fcrepo.server.errors.StreamIOException: [DatastreamManagedContent] returned the error: "org.fcrepo.server.errors.HttpServiceNotFoundException". Reason: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " . at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:193) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:129) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.access.DefaultAccess.getDatastreamDissemination(DefaultAccess.java:1165) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.rest.DatastreamResource.getDatastream(DatastreamResource.java:232) [fcrepo-server-3.4.2.jar:na] at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:175) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:163) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:689) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:647) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:638) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:590) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servlet-api-2.5-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098) [jetty-6.1.3.jar:6.1.3] at org.fcrepo.server.security.servletfilters.FilterRestApiFlash.doFilter(FilterRestApiFlash.java:79) [fcrepo-server-3.4.2.jar:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) [jetty-6.1.3.jar:6.1.3] at org.fcrepo.server.security.jaas.AuthFilterJAAS.doFilter(AuthFilterJAAS.java:295) [fcrepo-security-jaas-3.4.2.jar:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.Server.handle(Server.java:285) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) [jetty-6.1.3.jar:6.1.3] at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) [jetty-util-6.1.3.jar:6.1.3] Caused by: org.fcrepo.server.errors.HttpServiceNotFoundException: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " . at org.fcrepo.server.storage.DefaultExternalContentManager.getExternalContent(DefaultExternalContentManager.java:155) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:175) [fcrepo-server-3.4.2.jar:na] ... 42 common frames omitted Caused by: org.fcrepo.server.errors.HttpServiceNotFoundException: [FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . at org.fcrepo.server.storage.DefaultExternalContentManager.getFromFilesystem(DefaultExternalContentManager.java:266) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.DefaultExternalContentManager.getExternalContent(DefaultExternalContentManager.java:146) [fcrepo-server-3.4.2.jar:na] ... 43 common frames omitted Caused by: java.lang.IllegalArgumentException: URI is not hierarchical at java.io.File.<init>(File.java:363) [na:1.6.0_22] at org.fcrepo.server.storage.DefaultExternalContentManager.getFromFilesystem(DefaultExternalContentManager.java:235) [fcrepo-server-3.4.2.jar:na] ... 44 common frames omitted ERROR 2011-04-13 13:23:09.056 [MainThread] (WebApplicationImpl) Internal server error javax.ws.rs.WebApplicationException: org.fcrepo.server.errors.StreamIOException: [DatastreamManagedContent] returned the error: "org.fcrepo.server.errors.HttpServiceNotFoundException". Reason: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " . at org.fcrepo.server.rest.BaseRestResource.handleException(BaseRestResource.java:168) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.rest.DatastreamResource.getDatastream(DatastreamResource.java:250) [fcrepo-server-3.4.2.jar:na] at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:175) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:163) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:689) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:647) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:638) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:590) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servlet-api-2.5-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098) [jetty-6.1.3.jar:6.1.3] at org.fcrepo.server.security.servletfilters.FilterRestApiFlash.doFilter(FilterRestApiFlash.java:79) [fcrepo-server-3.4.2.jar:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) [jetty-6.1.3.jar:6.1.3] at org.fcrepo.server.security.jaas.AuthFilterJAAS.doFilter(AuthFilterJAAS.java:295) [fcrepo-security-jaas-3.4.2.jar:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.Server.handle(Server.java:285) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) [jetty-6.1.3.jar:6.1.3] at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) [jetty-util-6.1.3.jar:6.1.3] Caused by: org.fcrepo.server.errors.StreamIOException: [DatastreamManagedContent] returned the error: "org.fcrepo.server.errors.HttpServiceNotFoundException". Reason: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " . at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:193) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:129) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.access.DefaultAccess.getDatastreamDissemination(DefaultAccess.java:1165) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.rest.DatastreamResource.getDatastream(DatastreamResource.java:232) [fcrepo-server-3.4.2.jar:na] ... 39 common frames omitted Caused by: org.fcrepo.server.errors.HttpServiceNotFoundException: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " . at org.fcrepo.server.storage.DefaultExternalContentManager.getExternalContent(DefaultExternalContentManager.java:155) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:175) [fcrepo-server-3.4.2.jar:na] ... 42 common frames omitted Caused by: org.fcrepo.server.errors.HttpServiceNotFoundException: [FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . at org.fcrepo.server.storage.DefaultExternalContentManager.getFromFilesystem(DefaultExternalContentManager.java:266) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.DefaultExternalContentManager.getExternalContent(DefaultExternalContentManager.java:146) [fcrepo-server-3.4.2.jar:na] ... 43 common frames omitted Caused by: java.lang.IllegalArgumentException: URI is not hierarchical at java.io.File.<init>(File.java:363) [na:1.6.0_22] at org.fcrepo.server.storage.DefaultExternalContentManager.getFromFilesystem(DefaultExternalContentManager.java:235) [fcrepo-server-3.4.2.jar:na] ... 44 common frames omitted

    Sakai JIRA | 6 years ago | Chris Beer
    org.fcrepo.server.errors.StreamIOException: [DatastreamManagedContent] returned the error: "org.fcrepo.server.errors.HttpServiceNotFoundException". Reason: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " .
  2. 0

    I ingested some objects with the pid namespace "file" with a managed content datastream. As far as I can tell, the ingest was successful (perhaps because of the patch for https://jira.duraspace.org/browse/FCREPO-696), but when I try to access the datastream using either the API-A-LITE or REST API (e.g. http://localhost:8180/fedora/objects/file%3Abarcode111480/datastreams/Exiftool.rdf/content) , I receive an HTTP 500 error and this message: javax.ws.rs.WebApplicationException: org.fcrepo.server.errors.StreamIOException: [DatastreamManagedContent] returned the error: "org.fcrepo.server.errors.HttpServiceNotFoundException". Reason: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " . [ Full stack trace from fedora.log at bottom ]. If I re-ingest the object in a different namespace, I do not receive the error. ======= ERROR 2011-04-13 13:23:09.047 [MainThread] (DefaultExternalContentManager) URI is not hierarchical java.lang.IllegalArgumentException: URI is not hierarchical at java.io.File.<init>(File.java:363) [na:1.6.0_22] at org.fcrepo.server.storage.DefaultExternalContentManager.getFromFilesystem(DefaultExternalContentManager.java:235) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.DefaultExternalContentManager.getExternalContent(DefaultExternalContentManager.java:146) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:175) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:129) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.access.DefaultAccess.getDatastreamDissemination(DefaultAccess.java:1165) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.rest.DatastreamResource.getDatastream(DatastreamResource.java:232) [fcrepo-server-3.4.2.jar:na] at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:175) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:163) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:689) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:647) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:638) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:590) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servlet-api-2.5-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098) [jetty-6.1.3.jar:6.1.3] at org.fcrepo.server.security.servletfilters.FilterRestApiFlash.doFilter(FilterRestApiFlash.java:79) [fcrepo-server-3.4.2.jar:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) [jetty-6.1.3.jar:6.1.3] at org.fcrepo.server.security.jaas.AuthFilterJAAS.doFilter(AuthFilterJAAS.java:295) [fcrepo-security-jaas-3.4.2.jar:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.Server.handle(Server.java:285) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) [jetty-6.1.3.jar:6.1.3] at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) [jetty-util-6.1.3.jar:6.1.3] ERROR 2011-04-13 13:23:09.052 [MainThread] (DatastreamResource) Unexpected error fulfilling REST API request org.fcrepo.server.errors.StreamIOException: [DatastreamManagedContent] returned the error: "org.fcrepo.server.errors.HttpServiceNotFoundException". Reason: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " . at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:193) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:129) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.access.DefaultAccess.getDatastreamDissemination(DefaultAccess.java:1165) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.rest.DatastreamResource.getDatastream(DatastreamResource.java:232) [fcrepo-server-3.4.2.jar:na] at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:175) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:163) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:689) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:647) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:638) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:590) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servlet-api-2.5-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098) [jetty-6.1.3.jar:6.1.3] at org.fcrepo.server.security.servletfilters.FilterRestApiFlash.doFilter(FilterRestApiFlash.java:79) [fcrepo-server-3.4.2.jar:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) [jetty-6.1.3.jar:6.1.3] at org.fcrepo.server.security.jaas.AuthFilterJAAS.doFilter(AuthFilterJAAS.java:295) [fcrepo-security-jaas-3.4.2.jar:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.Server.handle(Server.java:285) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) [jetty-6.1.3.jar:6.1.3] at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) [jetty-util-6.1.3.jar:6.1.3] Caused by: org.fcrepo.server.errors.HttpServiceNotFoundException: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " . at org.fcrepo.server.storage.DefaultExternalContentManager.getExternalContent(DefaultExternalContentManager.java:155) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:175) [fcrepo-server-3.4.2.jar:na] ... 42 common frames omitted Caused by: org.fcrepo.server.errors.HttpServiceNotFoundException: [FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . at org.fcrepo.server.storage.DefaultExternalContentManager.getFromFilesystem(DefaultExternalContentManager.java:266) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.DefaultExternalContentManager.getExternalContent(DefaultExternalContentManager.java:146) [fcrepo-server-3.4.2.jar:na] ... 43 common frames omitted Caused by: java.lang.IllegalArgumentException: URI is not hierarchical at java.io.File.<init>(File.java:363) [na:1.6.0_22] at org.fcrepo.server.storage.DefaultExternalContentManager.getFromFilesystem(DefaultExternalContentManager.java:235) [fcrepo-server-3.4.2.jar:na] ... 44 common frames omitted ERROR 2011-04-13 13:23:09.056 [MainThread] (WebApplicationImpl) Internal server error javax.ws.rs.WebApplicationException: org.fcrepo.server.errors.StreamIOException: [DatastreamManagedContent] returned the error: "org.fcrepo.server.errors.HttpServiceNotFoundException". Reason: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " . at org.fcrepo.server.rest.BaseRestResource.handleException(BaseRestResource.java:168) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.rest.DatastreamResource.getDatastream(DatastreamResource.java:250) [fcrepo-server-3.4.2.jar:na] at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:175) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:163) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:689) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:647) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:638) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:590) [jersey-bundle-1.0.3.1.jar:1.0.3.1] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servlet-api-2.5-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098) [jetty-6.1.3.jar:6.1.3] at org.fcrepo.server.security.servletfilters.FilterRestApiFlash.doFilter(FilterRestApiFlash.java:79) [fcrepo-server-3.4.2.jar:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) [jetty-6.1.3.jar:6.1.3] at org.fcrepo.server.security.jaas.AuthFilterJAAS.doFilter(AuthFilterJAAS.java:295) [fcrepo-security-jaas-3.4.2.jar:na] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.Server.handle(Server.java:285) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) [jetty-6.1.3.jar:6.1.3] at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) [jetty-6.1.3.jar:6.1.3] at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) [jetty-util-6.1.3.jar:6.1.3] Caused by: org.fcrepo.server.errors.StreamIOException: [DatastreamManagedContent] returned the error: "org.fcrepo.server.errors.HttpServiceNotFoundException". Reason: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " . at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:193) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:129) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.access.DefaultAccess.getDatastreamDissemination(DefaultAccess.java:1165) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.rest.DatastreamResource.getDatastream(DatastreamResource.java:232) [fcrepo-server-3.4.2.jar:na] ... 39 common frames omitted Caused by: org.fcrepo.server.errors.HttpServiceNotFoundException: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " . at org.fcrepo.server.storage.DefaultExternalContentManager.getExternalContent(DefaultExternalContentManager.java:155) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:175) [fcrepo-server-3.4.2.jar:na] ... 42 common frames omitted Caused by: org.fcrepo.server.errors.HttpServiceNotFoundException: [FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . at org.fcrepo.server.storage.DefaultExternalContentManager.getFromFilesystem(DefaultExternalContentManager.java:266) [fcrepo-server-3.4.2.jar:na] at org.fcrepo.server.storage.DefaultExternalContentManager.getExternalContent(DefaultExternalContentManager.java:146) [fcrepo-server-3.4.2.jar:na] ... 43 common frames omitted Caused by: java.lang.IllegalArgumentException: URI is not hierarchical at java.io.File.<init>(File.java:363) [na:1.6.0_22] at org.fcrepo.server.storage.DefaultExternalContentManager.getFromFilesystem(DefaultExternalContentManager.java:235) [fcrepo-server-3.4.2.jar:na] ... 44 common frames omitted

    Sakai JIRA | 6 years ago | Chris Beer
    org.fcrepo.server.errors.StreamIOException: [DatastreamManagedContent] returned the error: "org.fcrepo.server.errors.HttpServiceNotFoundException". Reason: [DefaultExternalContentManager] returned an error. The underlying error was a org.fcrepo.server.errors.HttpServiceNotFoundException The message was "[FileExternalContentManager] returned an error. The underlying error was a java.lang.IllegalArgumentException The message was "URI is not hierarchical" . " .
  3. 0

    Rerunning of one expectation within a xt file causes a NPE

    GitHub | 3 years ago | akosyakov
    java.lang.IllegalArgumentException: URI is not hierarchical
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Scans 总是抛异常

    GitHub | 5 years ago | zozoh
    java.lang.IllegalArgumentException: URI is not hierarchical

    20 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      URI is not hierarchical

      at java.io.File.<init>()
    2. Java RT
      File.<init>
      1. java.io.File.<init>(File.java:363)[na:1.6.0_22]
      1 frame
    3. org.fcrepo.server
      DatastreamResource.getDatastream
      1. org.fcrepo.server.storage.DefaultExternalContentManager.getFromFilesystem(DefaultExternalContentManager.java:235)[fcrepo-server-3.4.2.jar:na]
      2. org.fcrepo.server.storage.DefaultExternalContentManager.getExternalContent(DefaultExternalContentManager.java:146)[fcrepo-server-3.4.2.jar:na]
      3. org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:175)[fcrepo-server-3.4.2.jar:na]
      4. org.fcrepo.server.storage.types.DatastreamManagedContent.getContentStream(DatastreamManagedContent.java:129)[fcrepo-server-3.4.2.jar:na]
      5. org.fcrepo.server.access.DefaultAccess.getDatastreamDissemination(DefaultAccess.java:1165)[fcrepo-server-3.4.2.jar:na]
      6. org.fcrepo.server.rest.DatastreamResource.getDatastream(DatastreamResource.java:232)[fcrepo-server-3.4.2.jar:na]
      6 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_22]
      3. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_22]
      3 frames
    5. Jersey
      WebApplicationImpl.handleRequest
      1. com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:175)[jersey-bundle-1.0.3.1.jar:1.0.3.1]
      2. com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)[jersey-bundle-1.0.3.1.jar:1.0.3.1]
      3. com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:163)[jersey-bundle-1.0.3.1.jar:1.0.3.1]
      4. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)[jersey-bundle-1.0.3.1.jar:1.0.3.1]
      5. com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)[jersey-bundle-1.0.3.1.jar:1.0.3.1]
      6. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)[jersey-bundle-1.0.3.1.jar:1.0.3.1]
      7. com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)[jersey-bundle-1.0.3.1.jar:1.0.3.1]
      8. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:689)[jersey-bundle-1.0.3.1.jar:1.0.3.1]
      9. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:647)[jersey-bundle-1.0.3.1.jar:1.0.3.1]
      10. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:638)[jersey-bundle-1.0.3.1.jar:1.0.3.1]
      10 frames
    6. Jersey
      ServletContainer.service
      1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309)[jersey-bundle-1.0.3.1.jar:1.0.3.1]
      2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425)[jersey-bundle-1.0.3.1.jar:1.0.3.1]
      3. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:590)[jersey-bundle-1.0.3.1.jar:1.0.3.1]
      3 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)[servlet-api-2.5-6.1.3.jar:6.1.3]
      1 frame
    8. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)[jetty-6.1.3.jar:6.1.3]
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)[jetty-6.1.3.jar:6.1.3]
      2 frames
    9. org.fcrepo.server
      FilterRestApiFlash.doFilter
      1. org.fcrepo.server.security.servletfilters.FilterRestApiFlash.doFilter(FilterRestApiFlash.java:79)[fcrepo-server-3.4.2.jar:na]
      1 frame
    10. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)[jetty-6.1.3.jar:6.1.3]
      1 frame
    11. org.fcrepo.server
      AuthFilterJAAS.doFilter
      1. org.fcrepo.server.security.jaas.AuthFilterJAAS.doFilter(AuthFilterJAAS.java:295)[fcrepo-security-jaas-3.4.2.jar:na]
      1 frame
    12. Jetty Server
      SocketConnector$Connection.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)[jetty-6.1.3.jar:6.1.3]
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)[jetty-6.1.3.jar:6.1.3]
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)[jetty-6.1.3.jar:6.1.3]
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)[jetty-6.1.3.jar:6.1.3]
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)[jetty-6.1.3.jar:6.1.3]
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)[jetty-6.1.3.jar:6.1.3]
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)[jetty-6.1.3.jar:6.1.3]
      8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)[jetty-6.1.3.jar:6.1.3]
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)[jetty-6.1.3.jar:6.1.3]
      10. org.mortbay.jetty.Server.handle(Server.java:285)[jetty-6.1.3.jar:6.1.3]
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)[jetty-6.1.3.jar:6.1.3]
      12. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)[jetty-6.1.3.jar:6.1.3]
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)[jetty-6.1.3.jar:6.1.3]
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)[jetty-6.1.3.jar:6.1.3]
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)[jetty-6.1.3.jar:6.1.3]
      16. org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)[jetty-6.1.3.jar:6.1.3]
      16 frames
    13. Jetty Util
      BoundedThreadPool$PoolThread.run
      1. org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)[jetty-util-6.1.3.jar:6.1.3]
      1 frame