Hi Jeff The error seems to be due to Fedora being unable to retrieve the URL: http://chaucer.lib.umn.edu:8080/axis2/services/UMN_CMA_Service/rest//addChil d?args0=http%3A%2F%2Fchaucer.lib.umn.edu%3A8080%2Ffedora%2Fget%2Fcollection% 3Adata%2FFAMILY_TYPE%2F2008-07-02T05%3A09%3A43.234Z <http://chaucer.lib.umn.edu:8080/axis2/services/UMN_CMA_Service/rest//addChi ld?args0=http%3A%2F%2Fchaucer.lib.umn.edu%3A8080%2Ffedora%2Fget%2Fcollection %3Adata%2FFAMILY_TYPE%2F2008-07-02T05%3A09%3A43.234Z&args1=3.5> &args1=3.5 However when I call that URL I am getting content returned - have you made some progress on this? Regards Steve
-----Original Message----- From: Jeff Silvis [mailto:[email protected]] Sent: 21 April 2010 16:21 To: [email protected] Subject: [Fedora-commons-developers] HttpServiceNotFoundException error andaxis2 Hi, I am trying to write an axis2 service that calls the fedora APIM. In this code, there is a line to create a Fedora Client: FedoraClient fc = new FedoraClient(baseURL, usr, pwd); If this is commented out I get reasonable results. However when I make this line active, to reach the APIM, I get the error below. In addition, I can run the class that creates the FedoraClient from the command line and it works. Also I am using fedora 3.3. If any one can help me out that would be great. Thank you, Jeff Silvis The error I get is: javax.ws.rs.WebApplicationException: fedora.server.errors.HttpServiceNotFoundException: [DefaultExternalContentManager] returned an error. The underlying error was a fedora.server.errors.GeneralException The message was "Error getting http://chaucer.lib.umn.edu:8080/axis2/services/UMN_CMA_Service/rest//addChil d?args0=http%3A%2F%2Fchaucer.lib.umn.edu%3A8080%2Ffedora%2Fget%2Fcollection% 3Adata%2FFAMILY_TYPE%2F2008-07-02T05%3A09%3A43.234Z <http://chaucer.lib.umn.edu:8080/axis2/services/UMN_CMA_Service/rest//addChi ld?args0=http%3A%2F%2Fchaucer.lib.umn.edu%3A8080%2Ffedora%2Fget%2Fcollection %3Adata%2FFAMILY_TYPE%2F2008-07-02T05%3A09%3A43.234Z&args1=3.5> &args1=3.5" . at fedora.server.rest.BaseRestResource.handleException(BaseRestResource.java:16 2) at fedora.server.rest.MethodResource.invokeSDefMethodUsingGET(MethodResource.ja va:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider $ResponseOutInvoker._dispatch(EntityParamDispatchProvider.java:157) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatche r.dispatch(ResourceJavaMethodDispatcher.java:67) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.ja va:124) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathR ule.java:111) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassR ule.java:71) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathR ule.java:111) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootReso urceClassesRule.java:63) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(Web ApplicationImpl.java:555) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebA pplicationImpl.java:514) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebA pplicationImpl.java:505) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContain er.java:359) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) at fedora.server.security.servletfilters.FilterRestApiFlash.doFilter(FilterRest ApiFlash.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java: 234) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java: 234) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java: 234) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java: 234) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java: 234) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:175) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http 11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: fedora.server.errors.HttpServiceNotFoundException: [DefaultExternalContentManager] returned an error. The underlying error was a fedora.server.errors.GeneralException The message was "Error getting http://chaucer.lib.umn.edu:8080/axis2/services/UMN_CMA_Service/rest//addChil d?args0=http%3A%2F%2Fchaucer.lib.umn.edu%3A8080%2Ffedora%2Fget%2Fcollection% 3Adata%2FFAMILY_TYPE%2F2008-07-02T05%3A09%3A43.234Z <http://chaucer.lib.umn.edu:8080/axis2/services/UMN_CMA_Service/rest//addChi ld?args0=http%3A%2F%2Fchaucer.lib.umn.edu%3A8080%2Ffedora%2Fget%2Fcollection %3Adata%2FFAMILY_TYPE%2F2008-07-02T05%3A09%3A43.234Z&args1=3.5> &args1=3.5" . at fedora.server.storage.DefaultExternalContentManager.getExternalContent(Defau ltExternalContentManager.java:145) at fedora.server.access.dissemination.DisseminationService.assembleDisseminatio n(DisseminationService.java:735) at fedora.server.access.DefaultAccess.getDissemination(DefaultAccess.java:424) at fedora.server.rest.MethodResource.invokeSDefMethodUsingGET(MethodResource.ja va:94) ... 47 more Caused by: fedora.server.errors.GeneralException: Error getting http://chaucer.lib.umn.edu:8080/axis2/services/UMN_CMA_Service/rest//addChil d?args0=http%3A%2F%2Fchaucer.lib.umn.edu%3A8080%2Ffedora%2Fget%2Fcollection% 3Adata%2FFAMILY_TYPE%2F2008-07-02T05%3A09%3A43.234Z <http://chaucer.lib.umn.edu:8080/axis2/services/UMN_CMA_Service/rest//addChi ld?args0=http%3A%2F%2Fchaucer.lib.umn.edu%3A8080%2Ffedora%2Fget%2Fcollection %3Adata%2FFAMILY_TYPE%2F2008-07-02T05%3A09%3A43.234Z&args1=3.5> &args1=3.5 at fedora.server.storage.DefaultExternalContentManager.get(DefaultExternalConte ntManager.java:170) at fedora.server.storage.DefaultExternalContentManager.getFromWeb(DefaultExtern alContentManager.java:319) at fedora.server.storage.DefaultExternalContentManager.getExternalContent(Defau ltExternalContentManager.java:139) ... 50 more Caused by: java.io.IOException: Request failed [500 Internal Server Error] at fedora.common.http.WebClient.get(WebClient.java:209) at fedora.common.http.WebClient.get(WebClient.java:135) at fedora.server.storage.DefaultExternalContentManager.get(DefaultExternalConte ntManager.java:162) ... 52 more
------------------------------------------------------------------------------
_______________________________________________ Fedora-commons-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers
