I just ran this integration test: https://github.com/mediashelf/fedora-client/blob/master/fedora-client-core/src/test/java/com/yourmediashelf/fedora/client/request/AddRelationshipIT.java
against Fedora 3.5 successfully: Running com.yourmediashelf.fedora.client.request.AddRelationshipIT SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.797 sec and that test does include adding a relationship with a URI as the object. On Aug 31, 2012, at 1:12 AM, David Chandek-Stark <david.chandek.st...@duke.edu> wrote: > That case only tests adding a literal value, not a URI as the object of the > relationship. In any case, I tried POSTing the params in the integration > test to my server (/fedora/objects/dcs:1/relationships/new) and got the same > errors as reported. > > Thanks, > David > > -----Original Message----- > From: Benjamin Armintor [mailto:armin...@gmail.com] > Sent: Thursday, August 30, 2012 12:23 PM > To: Support and info exchange list for Fedora users. > Subject: Re: [fcrepo-user] Does addRelationship REST API method work in > Fedora 3.5? > > There's this integration test that suggests it works: > https://github.com/fcrepo/fcrepo/blob/master/fcrepo-integrationtest/fcrepo-integrationtest-core/src/main/java/org/fcrepo/test/api/TestRESTAPI.java#L1417 > > Can you post the uri and method of your rest request? > > On Thu, Aug 30, 2012 at 12:06 PM, David Chandek-Stark > <david.chandek.st...@duke.edu> wrote: >> And if it does work, does it work for both RELS-EXT and RELS-INT? Is >> the documentation accurate? AFAICT I am following it correctly. >> >> >> >> Everything I try results in 500 server error, with this kind of entry >> in Fedora log: >> >> >> >> INFO 2012-08-30 12:00:55.211 [TP-Processor3] (DefaultManagement) >> Completed >> addRelationship(pid: dcs:1, relationship: null, object: null, isLiteral: >> false, datatype: null) >> >> >> >> And this stack trace: >> >> >> >> java.lang.NullPointerException >> >> java.net.URI$Parser.parse(URI.java:3003) >> >> java.net.URI.<init>(URI.java:578) >> >> >> org.fcrepo.server.storage.SimpleDOWriter.createTriple(SimpleDOWriter.j >> ava:489) >> >> >> org.fcrepo.server.storage.SimpleDOWriter.addRelationship(SimpleDOWrite >> r.java:277) >> >> >> org.fcrepo.server.storage.SimpleDOWriter.addRelationship(SimpleDOWrite >> r.java:262) >> >> >> org.fcrepo.server.management.DefaultManagement.addRelationship(Default >> Management.java:1704) >> >> sun.reflect.GeneratedMethodAccessor1006.invoke(Unknown Source) >> >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess >> orImpl.java:25) >> >> java.lang.reflect.Method.invoke(Method.java:597) >> >> >> org.fcrepo.server.messaging.NotificationInvocationHandler.invoke(Notif >> icationInvocationHandler.java:68) >> >> $Proxy6.addRelationship(Unknown Source) >> >> >> org.fcrepo.server.management.ManagementModule.addRelationship(Manageme >> ntModule.java:252) >> >> >> org.fcrepo.server.rest.RelationshipResource.addRelationship(Relationsh >> ipResource.java:135) >> >> sun.reflect.GeneratedMethodAccessor1005.invoke(Unknown Source) >> >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess >> orImpl.java:25) >> >> java.lang.reflect.Method.invoke(Method.java:597) >> >> >> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMetho >> dDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodD >> ispatchProvider.java:175) >> >> >> com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDis >> patcher.dispatch(ResourceJavaMethodDispatcher.java:67) >> >> >> com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodR >> ule.java:163) >> >> >> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHan >> dPathRule.java:111) >> >> >> com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(Resource >> ClassRule.java:71) >> >> >> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHan >> dPathRule.java:111) >> >> >> com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(Ro >> otResourceClassesRule.java:63) >> >> >> com.sun.jersey.server.impl.application.WebApplicationImpl._handleReque >> st(WebApplicationImpl.java:689) >> >> >> com.sun.jersey.server.impl.application.WebApplicationImpl.handleReques >> t(WebApplicationImpl.java:647) >> >> >> com.sun.jersey.server.impl.application.WebApplicationImpl.handleReques >> t(WebApplicationImpl.java:638) >> >> >> com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent >> .java:309) >> >> >> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletC >> ontainer.java:425) >> >> >> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletC >> ontainer.java:590) >> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> >> >> org.fcrepo.server.security.servletfilters.FilterRestApiFlash.doFilter( >> FilterRestApiFlash.java:79) >> >> >> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d >> oFilter(FilterChainProxy.java:368) >> >> >> org.fcrepo.server.security.jaas.AuthFilterJAAS.doFilter(AuthFilterJAAS >> .java:330) >> >> >> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d >> oFilter(FilterChainProxy.java:380) >> >> >> org.springframework.security.web.access.channel.ChannelProcessingFilte >> r.doFilter(ChannelProcessingFilter.java:109) >> >> >> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d >> oFilter(FilterChainProxy.java:380) >> >> >> org.springframework.security.web.FilterChainProxy.doFilter(FilterChain >> Proxy.java:169) >> >> >> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De >> legatingFilterProxy.java:237) >> >> >> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati >> ngFilterProxy.java:167) >> >> >> >> >> >> ---------------------------------------- >> >> David Chandek-Stark >> >> IT Analyst, Sr. - Perkins Library ITS, Discovery and Core Services >> >> Tel. 919-660-5859 >> >> IM: d...@jabber.duke.edu >> >> >> >> >> ---------------------------------------------------------------------- >> -------- >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. >> Discussions will include endpoint security, mobile security and the >> latest in malware threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Fedora-commons-users mailing list >> Fedora-commons-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users >> > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and threat > landscape has changed and how IT managers can respond. Discussions will > include endpoint security, mobile security and the latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Fedora-commons-users mailing list > Fedora-commons-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Fedora-commons-users mailing list > Fedora-commons-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users