dvtelles

Error RestKit

Nov 5th, 2013
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.00 KB | None | 0 0
  1. 2013-11-05 10:26:57.472 MTGApp[3556:60b] I restkit.network:RKObjectRequestOperation.m:180 POST 'http://192.168.0.200:8080/MTGAppWS/webresources/Collection'
  2. 2013-11-05 10:26:57.701 MTGApp[3556:4a03] E restkit.network:RKObjectRequestOperation.m:576 Object request failed: Underlying HTTP request operation failed with error: Error Domain=org.restkit.RestKit.ErrorDomain Code=-1016 "Expected content type {(
  3. "application/x-www-form-urlencoded",
  4. "application/json"
  5. )}, got text/html" UserInfo=0x166a7650 {NSLocalizedRecoverySuggestion=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>GlassFish Server Open Source Edition 3.1.1 - Error report</title><style type="text/css"><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 405 - Method Not Allowed</h1><hr/><p><b>type</b> Status report</p><p><b>message</b>Method Not Allowed</p><p><b>description</b>The specified HTTP method is not allowed for the requested resource (Method Not Allowed).</p><hr/><h3>GlassFish Server Open Source Edition 3.1.1</h3></body></html>, AFNetworkingOperationFailingURLRequestErrorKey=<NSMutableURLRequest: 0x1651f3a0> { URL: http://192.168.0.200:8080/MTGAppWS/webresources/Collection }, NSErrorFailingURLKey=http://192.168.0.200:8080/MTGAppWS/webresources/Collection, NSLocalizedDescription=Expected content type {(
  6. "application/x-www-form-urlencoded",
  7. "application/json"
  8. )}, got text/html, AFNetworkingOperationFailingURLResponseErrorKey=<NSHTTPURLResponse: 0x1651f3e0> { URL: http://192.168.0.200:8080/MTGAppWS/webresources/Collection } { status code: 405, headers {
  9. Allow = "OPTIONS,PUT";
  10. "Content-Length" = 1149;
  11. "Content-Type" = "text/html";
  12. Date = "Tue, 05 Nov 2013 12:26:58 GMT";
  13. "Proxy-Connection" = "Keep-alive";
  14. Server = "GlassFish Server Open Source Edition 3.1.1";
  15. "X-Powered-By" = "Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.1 Java/Oracle Corporation/1.7)";
  16. } }}
  17. 2013-11-05 10:26:57.728 MTGApp[3556:4a03] E restkit.network:RKObjectRequestOperation.m:243 POST 'http://192.168.0.200:8080/MTGAppWS/webresources/Collection' (405 Method Not Allowed / 0 objects) [request=0.2381s mapping=0.0000s total=0.2663s]: Error Domain=org.restkit.RestKit.ErrorDomain Code=-1016 "Expected content type {(
  18. "application/x-www-form-urlencoded",
  19. "application/json"
  20. )}, got text/html" UserInfo=0x166a7650 {NSLocalizedRecoverySuggestion=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>GlassFish Server Open Source Edition 3.1.1 - Error report</title><style type="text/css"><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 405 - Method Not Allowed</h1><hr/><p><b>type</b> Status report</p><p><b>message</b>Method Not Allowed</p><p><b>description</b>The specified HTTP method is not allowed for the requested resource (Method Not Allowed).</p><hr/><h3>GlassFish Server Open Source Edition 3.1.1</h3></body></html>, AFNetworkingOperationFailingURLRequestErrorKey=<NSMutableURLRequest: 0x1651f3a0> { URL: http://192.168.0.200:8080/MTGAppWS/webresources/Collection }, NSErrorFailingURLKey=http://192.168.0.200:8080/MTGAppWS/webresources/Collection, NSLocalizedDescription=Expected content type {(
  21. "application/x-www-form-urlencoded",
  22. "application/json"
  23. )}, got text/html, AFNetworkingOperationFailingURLResponseErrorKey=<NSHTTPURLResponse: 0x1651f3e0> { URL: http://192.168.0.200:8080/MTGAppWS/webresources/Collection } { status code: 405, headers {
  24. Allow = "OPTIONS,PUT";
  25. "Content-Length" = 1149;
  26. "Content-Type" = "text/html";
  27. Date = "Tue, 05 Nov 2013 12:26:58 GMT";
  28. "Proxy-Connection" = "Keep-alive";
  29. Server = "GlassFish Server Open Source Edition 3.1.1";
  30. "X-Powered-By" = "Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.1 Java/Oracle Corporation/1.7)";
  31. } }}
Advertisement
Add Comment
Please, Sign In to add comment