dvtelles

RestKit Error

Nov 4th, 2013
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2013-11-04 17:31:13.013 MTGApp[45898:3803] I restkit.network:RKObjectRequestOperation.m:250 GET 'http://192.168.0.200:8080/MTGAppWS/webresources/Collection/user/1' (200 OK / 3 objects) [request=0.0000s mapping=0.0019s total=1.9819s]
  2. 2013-11-04 17:31:13.057 MTGApp[45898:a0b] log method
  3. 2013-11-04 17:31:16.421 MTGApp[45898:a0b] ..
  4. 2013-11-04 17:31:16.424 MTGApp[45898:a0b] I restkit.network:RKObjectRequestOperation.m:180 POST 'http://192.168.0.200:8080/Collection'
  5. 2013-11-04 17:31:16.437 MTGApp[45898:571f] 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 {(
  6.    "application/x-www-form-urlencoded",
  7.    "application/json"
  8. )}, got text/html" UserInfo=0x9b5aec0 {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 404 - </h1><hr/><p><b>type</b> Status report</p><p><b>message</b></p><p><b>description</b>The requested resource () is not available.</p><hr/><h3>GlassFish Server Open Source Edition 3.1.1</h3></body></html>, AFNetworkingOperationFailingURLRequestErrorKey=<NSMutableURLRequest: 0x9930bb0> { URL: http://192.168.0.200:8080/Collection }, NSErrorFailingURLKey=http://192.168.0.200:8080/Collection, NSLocalizedDescription=Expected content type {(
  9.     "application/x-www-form-urlencoded",
  10.     "application/json"
  11. )}, got text/html, AFNetworkingOperationFailingURLResponseErrorKey=<NSHTTPURLResponse: 0x8b38410> { URL: http://192.168.0.200:8080/Collection } { status code: 404, headers {
  12.     "Content-Length" = 1067;
  13.     "Content-Type" = "text/html";
  14.     Date = "Mon, 04 Nov 2013 19:31:16 GMT";
  15.     Server = "GlassFish Server Open Source Edition 3.1.1";
  16.     "X-Powered-By" = "Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.1 Java/Oracle Corporation/1.7)";
  17. } }}
  18. 2013-11-04 17:31:16.438 MTGApp[45898:571f] E restkit.network:RKObjectRequestOperation.m:243 POST 'http://192.168.0.200:8080/Collection' (404 Not Found / 0 objects) [request=0.0125s mapping=0.0000s total=0.0143s]: Error Domain=org.restkit.RestKit.ErrorDomain Code=-1016 "Expected content type {(
  19.    "application/x-www-form-urlencoded",
  20.    "application/json"
  21. )}, got text/html" UserInfo=0x9b5aec0 {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 404 - </h1><hr/><p><b>type</b> Status report</p><p><b>message</b></p><p><b>description</b>The requested resource () is not available.</p><hr/><h3>GlassFish Server Open Source Edition 3.1.1</h3></body></html>, AFNetworkingOperationFailingURLRequestErrorKey=<NSMutableURLRequest: 0x9930bb0> { URL: http://192.168.0.200:8080/Collection }, NSErrorFailingURLKey=http://192.168.0.200:8080/Collection, NSLocalizedDescription=Expected content type {(
  22.     "application/x-www-form-urlencoded",
  23.     "application/json"
  24. )}, got text/html, AFNetworkingOperationFailingURLResponseErrorKey=<NSHTTPURLResponse: 0x8b38410> { URL: http://192.168.0.200:8080/Collection } { status code: 404, headers {
  25.     "Content-Length" = 1067;
  26.     "Content-Type" = "text/html";
  27.     Date = "Mon, 04 Nov 2013 19:31:16 GMT";
  28.     Server = "GlassFish Server Open Source Edition 3.1.1";
  29.     "X-Powered-By" = "Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.1 Java/Oracle Corporation/1.7)";
  30. } }}
  31. 2013-11-04 17:31:16.439 MTGApp[45898:a0b] Error
Advertisement
Add Comment
Please, Sign In to add comment