Created
July 29, 2014 17:33
-
-
Save jcoyne/ed9f3596454ffd289176 to your computer and use it in GitHub Desktop.
500 error creating content after creating DS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D, [2014-07-29T12:27:35.204099 #86978] DEBUG -- : HTTP PUT (13.25ms) http://localhost:8983/fedora/rest/test | |
D, [2014-07-29T12:27:35.204188 #86978] DEBUG -- : Response status Net::HTTPCreated (201) | |
D, [2014-07-29T12:27:35.204299 #86978] DEBUG -- : Response body http://localhost:8983/fedora/rest/test | |
D, [2014-07-29T12:27:35.484881 #86978] DEBUG -- : HTTP POST (18.13ms) http://localhost:8983/fedora/rest/test | |
D, [2014-07-29T12:27:35.484965 #86978] DEBUG -- : Request body | |
<> <http://fedora.info/definitions/v4/rels-ext#hasModel> "ActiveFedora::Base"; | |
<http://fedora.info/definitions/v4/repository#created> ""; | |
<http://fedora.info/definitions/v4/repository#lastModified> "" . | |
D, [2014-07-29T12:27:35.485005 #86978] DEBUG -- : Response status Net::HTTPCreated (201) | |
D, [2014-07-29T12:27:35.485044 #86978] DEBUG -- : Response body http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189 | |
D, [2014-07-29T12:27:35.491614 #86978] DEBUG -- : HTTP HEAD (3.04ms) http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189 | |
D, [2014-07-29T12:27:35.491740 #86978] DEBUG -- : Response status Net::HTTPOK (200) | |
D, [2014-07-29T12:27:35.496827 #86978] DEBUG -- : HTTP GET (3.95ms) http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189 | |
D, [2014-07-29T12:27:35.496923 #86978] DEBUG -- : Response status Net::HTTPOK (200) | |
D, [2014-07-29T12:27:35.496964 #86978] DEBUG -- : Response body | |
<http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189> <http://fedora.info/definitions/v4/rest-api#hasAccessRoles> <http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189/fcr:accessroles> ; | |
<http://fedora.info/definitions/v4/rest-api#exportsAs> <http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189/fcr:export?format=jcr/xml> ; | |
<http://fedora.info/definitions/v4/repository#hasParent> <http://localhost:8983/fedora/rest/test/9a/4f/79/d4> ; | |
a <http://www.w3.org/ns/ldp#Container> , <http://www.w3.org/ns/ldp#DirectContainer> ; | |
<http://www.w3.org/ns/ldp#membershipResource> <http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189> ; | |
<http://www.w3.org/ns/ldp#hasMemberRelation> <http://fedora.info/definitions/v4/repository#hasChild> ; | |
<http://fedora.info/definitions/v4/rest-api#writable> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ; | |
a <http://www.jcp.org/jcr/nt/1.0folder> , <http://www.jcp.org/jcr/nt/1.0hierarchyNode> , <http://www.jcp.org/jcr/nt/1.0base> , <http://www.jcp.org/jcr/mix/1.0created> , <http://fedora.info/definitions/v4/rest-api#resource> , <http://fedora.info/definitions/v4/rest-api#object> , <http://fedora.info/definitions/v4/rest-api#relations> , <http://www.jcp.org/jcr/mix/1.0created> , <http://www.jcp.org/jcr/mix/1.0lastModified> , <http://www.jcp.org/jcr/mix/1.0lockable> , <http://www.jcp.org/jcr/mix/1.0referenceable> , <http://purl.org/dc/elements/1.1/describable> , <http://fedora.info/definitions/v4/rest-api#resource> ; | |
<http://fedora.info/definitions/v4/repository#primaryType> "nt:folder"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/rels-ext#hasModel> "ActiveFedora::Base"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/repository#created> "2014-07-29T17:27:35.472Z"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/repository#lastModified> "2014-07-29T17:27:35.469Z"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/repository#mixinTypes> "fedora:resource"^^<http://www.w3.org/2001/XMLSchema#string> , "fedora:object"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/repository#lastModifiedBy> "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/repository#uuid> "1a7db088-f489-43e3-8435-724e6786598b"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/repository#createdBy> "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/rest-api#writable> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ; | |
a <http://www.jcp.org/jcr/nt/1.0folder> , <http://www.jcp.org/jcr/nt/1.0hierarchyNode> , <http://www.jcp.org/jcr/nt/1.0base> , <http://www.jcp.org/jcr/mix/1.0created> , <http://fedora.info/definitions/v4/rest-api#resource> , <http://fedora.info/definitions/v4/rest-api#object> , <http://fedora.info/definitions/v4/rest-api#relations> , <http://www.jcp.org/jcr/mix/1.0created> , <http://www.jcp.org/jcr/mix/1.0lastModified> , <http://www.jcp.org/jcr/mix/1.0lockable> , <http://www.jcp.org/jcr/mix/1.0referenceable> , <http://purl.org/dc/elements/1.1/describable> , <http://fedora.info/definitions/v4/rest-api#resource> . | |
D, [2014-07-29T12:27:35.719103 #86978] DEBUG -- : HTTP HEAD (1.61ms) http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189/DS1 | |
D, [2014-07-29T12:27:35.719169 #86978] DEBUG -- : Response status Net::HTTPNotFound (404) | |
D, [2014-07-29T12:27:35.735819 #86978] DEBUG -- : HTTP PUT (15.25ms) http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189/DS1 | |
D, [2014-07-29T12:27:35.735926 #86978] DEBUG -- : Response status Net::HTTPCreated (201) | |
D, [2014-07-29T12:27:35.735995 #86978] DEBUG -- : Response body http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189/DS1 | |
D, [2014-07-29T12:27:35.778883 #86978] DEBUG -- : HTTP HEAD (3.67ms) http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189/DS1 | |
D, [2014-07-29T12:27:35.778984 #86978] DEBUG -- : Response status Net::HTTPOK (200) | |
D, [2014-07-29T12:27:35.784586 #86978] DEBUG -- : HTTP GET (4.18ms) http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189/DS1 | |
D, [2014-07-29T12:27:35.784661 #86978] DEBUG -- : Response status Net::HTTPOK (200) | |
D, [2014-07-29T12:27:35.784707 #86978] DEBUG -- : Response body | |
<http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189/DS1> <http://fedora.info/definitions/v4/rest-api#hasAccessRoles> <http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189/DS1/fcr:accessroles> ; | |
<http://fedora.info/definitions/v4/rest-api#exportsAs> <http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189/DS1/fcr:export?format=jcr/xml> ; | |
<http://fedora.info/definitions/v4/repository#hasParent> <http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189> ; | |
a <http://www.w3.org/ns/ldp#Container> , <http://www.w3.org/ns/ldp#DirectContainer> ; | |
<http://www.w3.org/ns/ldp#membershipResource> <http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189/DS1> ; | |
<http://www.w3.org/ns/ldp#hasMemberRelation> <http://fedora.info/definitions/v4/repository#hasChild> ; | |
<http://fedora.info/definitions/v4/rest-api#writable> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ; | |
a <http://www.jcp.org/jcr/nt/1.0folder> , <http://www.jcp.org/jcr/nt/1.0hierarchyNode> , <http://www.jcp.org/jcr/nt/1.0base> , <http://www.jcp.org/jcr/mix/1.0created> , <http://fedora.info/definitions/v4/rest-api#resource> , <http://fedora.info/definitions/v4/rest-api#object> , <http://fedora.info/definitions/v4/rest-api#relations> , <http://www.jcp.org/jcr/mix/1.0created> , <http://www.jcp.org/jcr/mix/1.0lastModified> , <http://www.jcp.org/jcr/mix/1.0lockable> , <http://www.jcp.org/jcr/mix/1.0referenceable> , <http://purl.org/dc/elements/1.1/describable> , <http://fedora.info/definitions/v4/rest-api#resource> ; | |
<http://fedora.info/definitions/v4/repository#primaryType> "nt:folder"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/repository#created> "2014-07-29T17:27:35.727Z"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/repository#lastModified> "2014-07-29T17:27:35.722Z"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/repository#mixinTypes> "fedora:resource"^^<http://www.w3.org/2001/XMLSchema#string> , "fedora:object"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/repository#lastModifiedBy> "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/repository#uuid> "ed16fc9d-d11e-4b34-add6-fb39c5468e5c"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/repository#createdBy> "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
<http://fedora.info/definitions/v4/rest-api#writable> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ; | |
a <http://www.jcp.org/jcr/nt/1.0folder> , <http://www.jcp.org/jcr/nt/1.0hierarchyNode> , <http://www.jcp.org/jcr/nt/1.0base> , <http://www.jcp.org/jcr/mix/1.0created> , <http://fedora.info/definitions/v4/rest-api#resource> , <http://fedora.info/definitions/v4/rest-api#object> , <http://fedora.info/definitions/v4/rest-api#relations> , <http://www.jcp.org/jcr/mix/1.0created> , <http://www.jcp.org/jcr/mix/1.0lastModified> , <http://www.jcp.org/jcr/mix/1.0lockable> , <http://www.jcp.org/jcr/mix/1.0referenceable> , <http://purl.org/dc/elements/1.1/describable> , <http://fedora.info/definitions/v4/rest-api#resource> . | |
D, [2014-07-29T12:27:35.821922 #86978] DEBUG -- : HTTP PUT (2.71ms) http://localhost:8983/fedora/rest/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189/DS1/fcr:content | |
D, [2014-07-29T12:27:35.822003 #86978] DEBUG -- : Request body foo | |
D, [2014-07-29T12:27:35.822043 #86978] DEBUG -- : Response status Net::HTTPInternalServerError (500) | |
D, [2014-07-29T12:27:35.822090 #86978] DEBUG -- : Response body javax.jcr.nodetype.ConstraintViolationException: Unable to determine a valid node definition for the node "/test/9a/4f/79/d4/9a4f79d4-e1a8-437a-8dc9-4ade62648189/DS1/jcr:content" in workspace "default" of "repo" | |
at org.modeshape.jcr.AbstractJcrNode.validateChildNodeDefinition(AbstractJcrNode.java:1329) | |
at org.modeshape.jcr.AbstractJcrNode.addChildNode(AbstractJcrNode.java:1158) | |
at org.modeshape.jcr.AbstractJcrNode.addNode(AbstractJcrNode.java:1105) | |
at org.modeshape.jcr.AbstractJcrNode.addNode(AbstractJcrNode.java:1019) | |
at org.modeshape.jcr.AbstractJcrNode.addNode(AbstractJcrNode.java:108) | |
at org.modeshape.jcr.api.JcrTools.findOrCreateNode(JcrTools.java:432) | |
at org.modeshape.jcr.api.JcrTools.findOrCreateChild(JcrTools.java:467) | |
at org.fcrepo.kernel.impl.DatastreamImpl.setContent(DatastreamImpl.java:168) | |
at org.fcrepo.kernel.impl.services.DatastreamServiceImpl.createDatastream(DatastreamServiceImpl.java:128) | |
at org.fcrepo.http.api.FedoraContent.modifyContent(FedoraContent.java:192) | |
at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:601) | |
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) | |
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) | |
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) | |
at com.codahale.metrics.jersey.InstrumentedResourceMethodDispatchProvider$TimedRequestDispatcher.dispatch(InstrumentedResourceMethodDispatchProvider.java:30) | |
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) | |
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) | |
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) | |
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) | |
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511) | |
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442) | |
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391) | |
at com.sun.jersey.server.im | |
<some data truncated> | |
on.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381) | |
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) | |
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538) | |
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716) | |
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) | |
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669) | |
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) | |
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) | |
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) | |
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) | |
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072) | |
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382) | |
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) | |
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006) | |
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) | |
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) | |
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) | |
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) | |
at org.eclipse.jetty.server.Server.handle(Server.java:365) | |
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485) | |
at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) | |
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937) | |
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998) | |
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856) | |
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) | |
at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) | |
at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264) | |
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) | |
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) | |
at java.lang.Thread.run(Thread.java:722) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment