On Sat, Aug 30, 2014 at 9:46 AM, Louis-Martin Gagne <[email protected]>
 wrote:

> My question is in two folds:
> 1) What is the process used to transmit parameters and data types between
> client (eg. web browsers) and server (eg. app engine)? It seems like
> certain data types are treated differently and would like to put my head
> around this process.
> 2) What needs to be done for Dates? My class has a date field and the app
> engine returns me the following error message: 
> com.google.appengine.repackaged.org.codehaus.jackson.map.JsonMappingException:
> Invalid date/time format: 2014/08/29
> <http://stackoverflow.com/questions/25578430/com-google-appengine-repackaged-org-codehaus-jackson-map-jsonmappingexception-i>
>



1. As Nick said, the short answer is HTTP. But if you're looking for a
longer answer, that would depend on a few questions:

*A.* Are you using App Engine Endpoints?

*B.* If you're not using Endpoints, can you post your server code or
code/tutorial/documents that your server code is based on?

*C.* I assume you're using App Engine Endpoints since you referred to
Android Studio and the fact the exception comes from a
App-Engine-repackaged JSON library. Can you describe how your application
works in general (what information does it transfer, what's the use case of
the app, etc)?

*D.* Does this error show up in App Engine logging, or in the HTTP response
of App Engine? If the error does show up in App Engine logging, what
response comes from App Engine, or is there no response at all?

*E.* Can you post the entire stack trace of the exception?



2. Instead of representing dates as YYYY/MM/DD, it would be better if you
represent dates as the number of seconds since epoch. It's easier to
transfer because it's a simple number instead of a string, and can be
retrieved easily within all languages. For example, in Java you can use
getTime()
<http://docs.oracle.com/javase/7/docs/api/java/util/Date.html#getTime()>.


-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to