REST client curl errors


c:\>curl -v -u admin:Admin123 -i http://localhost:8881/openmrs-standalone/ws/rest/concept?limit=2 -XGET -H "Accept: Application/xml"

* Adding handle: conn: 0x4a2380
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x4a2380) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 8881 (#0)
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8881 (#0)
* Server auth using Basic with user 'admin'
> GET /openmrs-standalone/ws/rest/concept?limit=2 HTTP/1.1
> Authorization: Basic YWRtaW46QWRtaW4xMjM=
> User-Agent: curl/7.33.0
> Host: localhost:8881
> Accept: Application/xml
>
< HTTP/1.1 404 Not Found
HTTP/1.1 404 Not Found
* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1
Server: Apache-Coyote/1.1
< Set-Cookie: JSESSIONID=B8850C01D5B9512618E75DC0FBB4CE70; Path=/openmrs-standalone
Set-Cookie: JSESSIONID=B8850C01D5B9512618E75DC0FBB4CE70; Path=/openmrs-standalone
< Content-Type: application/xml;charset=UTF-8
Content-Type: application/xml;charset=UTF-8
< Content-Length: 6336
Content-Length: 6336
< Date: Wed, 14 May 2014 06:25:18 GMT
Date: Wed, 14 May 2014 06:25:18 GMT

<
<object><error><message>Resource does not exist. Please check documentation for implemented resources and their paths</message><code>org.openmrs.module.webservices.rest.web.v1_0.controller.UnknownResourceController:39</code><detail>org.openmrs.module.webservices.rest.web.response.UnknownResourceException&#xd;
        at org.openmrs.module.webservices.rest.web.v1_0.controller.UnknownResourceController.handleUnknownResource(UnknownResourceController.java:39)&#xd;
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&#xd;
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)&#xd;
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)&#xd;
        at java.lang.reflect.Method.invoke(Unknown Source)&#xd;
        at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)&#xd;
        at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)&#xd;
        at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)&#xd;
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)&#xd;
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)&#xd;
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)&#xd;
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)&#xd;
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)&#xd;
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&#xd;
        at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:65)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&#xd;
        at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:76)&#xd;
        at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:59)&#xd;
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)&#xd;
        at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:74)&#xd;
        at org.openmrs.module.webservices.rest.web.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:100)&#xd;
        at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:74)&#xd;
        at org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:58)&#xd;
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)&#xd;
        at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:74)&#xd;
        at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:58)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&#xd;
        at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:111)&#xd;
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&#xd;
        at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)&#xd;
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&#xd;
        at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:109)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&#xd;
        at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:109)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&#xd;
        at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:109)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&#xd;
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)&#xd;
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&#xd;
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)&#xd;
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)&#xd;
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)&#xd;
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)&#xd;
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)&#xd;
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)&#xd;
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)&#xd;
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)&#xd;
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)&#xd;
        at java.lang.Thread.run(Unknown Source)&#xd;
</detail></error></object>* Connection #0 to host localhost left intact
Comments