java - Google Cloud Endpoints - APIs not updating -
i've been playing around google cloud endpoints (java) , i'm having trouble getting apis update after deploy app engine (using both eclipse + google plugin , android studio).
i created endpoint based on class called process (annotated jpa). sits in package (let's say: com.example). first time deployed had accidentally imported wrong class (java.lang.process instead of com.example.process). got error when tested 1 of methods in api explorer:
com.google.api.server.spi.systemservice invokeservicemethod: cause={0} javax.persistence.persistenceexception: no meta data java.lang.process. perhaps need run enhancer on class?
i have corrected import, re-generated client libraries , re-deployed app app engine, keep getting same error. if app engine still thinks i'm using java.lang.process instead of process class.
i made other changes. class member variable types , method names , re-deployed. app engine doesn't seem notice these changes.
i read how api explorer "violently caches" tried clearing cache, opened in browser , on pc. still nothing.
also, opened discovery files api located in https://.appspot.com/_ah/api/discovery/v1/apis//v1/rest noticed variables types had changed still listed old types.
i checked logs deploys. ok:
2013-07-06 18:59:59.960 /_ah/spi/backendservice.getapiconfigs 200 291ms 14kb 2013-07-06 18:59:59.706 com.google.api.server.spi.backendservice getapiconfigs: apiconfigdir=/base/data/home/apps/s~<my-app>/1.368601601499931812/web-inf 2013-07-06 18:59:59.707 com.google.api.server.spi.backendservice getapiconfigs: apiconfigfile=/base/data/home/apps/s~<my-app>/1.368601601499931812/web-inf/<my-api-name>-v1.api 2013-07-06 18:59:59.713 com.google.api.server.spi.backendservice getapiconfigs: apiconfigfile=/base/data/home/apps/s~<my-app>/1.368601601499931812/web-inf/messageendpoint-v1 2013-07-06 18:59:59.740 com.google.api.server.spi.backendservice getapiconfigs: apiconfigfile=/base/data/home/apps/s~<my-app>/1.368601601499931812/web-inf/deviceinfoendpoint
and in admin logs:
2013-07-06 18:59:35 <me> updated api configuration version=1 2013-07-06 18:59:35 <me> completed update of new default version version=1.2013-07-06t21:59:30z 2013-07-06 18:59:32 <me> deployed new version version=1.2013-07-06t21:59:30z
anyone has idea? in advance.
it doesn't seem .api files regenerating properly. if delete .api files, regenerate upon loading either in dev or app engine?
common reasons why .api files re-created updated information (i.e., mistakes made in past):
- primitives , enums not allowed. must pass bean.
- api methods not annotated
- api methods "private" instead of "public"
Comments
Post a Comment