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//addChild?args0=http%3A%2F%2Fchaucer.lib.umn.edu%3A8080%2Ffedora%2Fget%2Fcollection%3Adata%2FFAMILY_TYPE%2F2008-07-02T05%3A09%3A43.234Z&args1=3.5";
  .  
        at 
fedora.server.rest.BaseRestResource.handleException(BaseRestResource.java:162)
        at 
fedora.server.rest.MethodResource.invokeSDefMethodUsingGET(MethodResource.java: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.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
        at 
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)
        at 
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
        at 
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
        at 
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
        at 
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
        at 
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
        at 
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
        at 
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
        at 
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
fedora.server.security.servletfilters.FilterRestApiFlash.doFilter(FilterRestApiFlash.java:78)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:234)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:234)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:234)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:234)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:234)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: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(Http11Protocol.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//addChild?args0=http%3A%2F%2Fchaucer.lib.umn.edu%3A8080%2Ffedora%2Fget%2Fcollection%3Adata%2FFAMILY_TYPE%2F2008-07-02T05%3A09%3A43.234Z&args1=3.5";
  .  
        at 
fedora.server.storage.DefaultExternalContentManager.getExternalContent(DefaultExternalContentManager.java:145)
        at 
fedora.server.access.dissemination.DisseminationService.assembleDissemination(DisseminationService.java:735)
        at 
fedora.server.access.DefaultAccess.getDissemination(DefaultAccess.java:424)
        at 
fedora.server.rest.MethodResource.invokeSDefMethodUsingGET(MethodResource.java:94)
        ... 47 more
Caused by: fedora.server.errors.GeneralException: Error getting 
http://chaucer.lib.umn.edu:8080/axis2/services/UMN_CMA_Service/rest//addChild?args0=http%3A%2F%2Fchaucer.lib.umn.edu%3A8080%2Ffedora%2Fget%2Fcollection%3Adata%2FFAMILY_TYPE%2F2008-07-02T05%3A09%3A43.234Z&args1=3.5
        at 
fedora.server.storage.DefaultExternalContentManager.get(DefaultExternalContentManager.java:170)
        at 
fedora.server.storage.DefaultExternalContentManager.getFromWeb(DefaultExternalContentManager.java:319)
        at 
fedora.server.storage.DefaultExternalContentManager.getExternalContent(DefaultExternalContentManager.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(DefaultExternalContentManager.java:162)
        ... 52 more

------------------------------------------------------------------------------
_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers

Reply via email to