Working on iPhone app that takes a photo and then uploads it to a server. The server is in working condition, tested the same by uploading image from android app.
Below is the code snippet
NSString *contentType = [NSString stringWithFormat:@"multipart/form-data; boundary=%@", FORM_BOUNDARY];
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url];
[request setHTTPShouldHandleCookies:NO];
[request setHTTPMethod:@"POST"];
[request setValue:contentType forHTTPHeaderField:@"Content-Type"];
[request setValue:[NSString stringWithFormat:@"%d", [data length]] forHTTPHeaderField:@"Content-Length"]
[request setHTTPBody:data];`
////
But i get following response from the sever
HTTP Status 600 - java.lang.NullPointerException
type Status report
message java.lang.NullPointerException
description Cannot find message associated with key http.600
Apache Tomcat/6.0.18
////
I suppose error 600 might be user defined. Is there some tag being missed? Please suggest.