[google-appengine] Suggestions for autocomplete feature providing real-time low-latency suggestions......using product catalogue DB
Hello there, New to GCP and trying out a few things Looking for suggestions on high level architecture using App Engine for implement an autocomplete feature providing real-time low-latency suggestions..using product catalogue DB which I in json format. any thoughts would be greatly appreciated. Thanks, Vik S. -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/26956b64-c24d-4051-ba7a-f1a315d88a14%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Fwd: need help on refreshToken null issue
Can someone please help us? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- Forwarded message -- From: Vik vik@gmail.com Date: Mon, Jul 8, 2013 at 9:47 PM Subject: need help on refreshToken null issue To: google-appengine@googlegroups.com Hi Please advise on http://stackoverflow.com/questions/17333726/refreshtoken-is-null Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
[google-appengine] Re: need help on refreshToken null issue
anyone on this plz? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Jul 8, 2013 at 9:47 PM, Vik vik@gmail.com wrote: Hi Please advise on http://stackoverflow.com/questions/17333726/refreshtoken-is-null Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
[google-appengine] need help on refreshToken null issue
Hi Please advise on http://stackoverflow.com/questions/17333726/refreshtoken-is-null Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] Re: on reading from google drive
any help on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Jun 18, 2013 at 6:31 PM, Vik vik@gmail.com wrote: Hi I tried to use the code as below package vik.sakshum.sakshumweb.server.common; import java.io.IOException; import java.io.InputStream; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.google.api.client.auth.oauth2.Credential; import com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets; import com.google.api.client.googleapis.json.GoogleJsonResponseException; import com.google.api.client.http.HttpTransport; import com.google.api.client.http.javanet.NetHttpTransport; import com.google.api.client.json.JsonFactory; import com.google.api.client.json.jackson.JacksonFactory; import com.google.api.services.drive.Drive; import com.google.api.services.oauth2.Oauth2; import com.google.api.services.oauth2.model.Userinfo; import com.google.gson.Gson; import com.google.gwt.user.server.rpc.RemoteServiceServlet; /** * Abstract servlet that sets up credentials and provides some convenience * methods. * * @author vicfry...@google.com (Vic Fryzel) * @author j...@google.com (Burcu Dogan) */ @SuppressWarnings(serial) public abstract class GoogleDriveAuth extends RemoteServiceServlet { /** * Default transportation layer for Google Apis Java client. */ protected static final HttpTransport TRANSPORT = new NetHttpTransport(); /** * Default JSON factory for Google Apis Java client. */ protected static final JsonFactory JSON_FACTORY = new JacksonFactory(); /** * Key to get/set userId from and to the session. */ public static final String KEY_SESSION_USERID = user_id; /** * Default MIME type of files created or handled by DrEdit. * This is also set in the Google APIs Console under the Drive SDK tab. */ public static final String DEFAULT_MIMETYPE = text/plain; /** * Path component under war/ to locate client_secrets.json file. */ public static final String CLIENT_SECRETS_FILE_PATH = /WEB-INF/client_secrets.json; /** * A credential manager to get, set, delete credential objects. */ private CredentialManager credentialManager = null; /** * Initializes the Servlet. * @Override public void init() throws ServletException { super.init(); // init credential manager //credentialManager = new CredentialManager( //getClientSecrets(), TRANSPORT, JSON_FACTORY); }*/ /** * Dumps the given object as JSON and responds with given HTTP status code. * @param resp Response object. * @param code HTTP status code to respond with. * @param obj An object to be dumped as JSON. */ protected void sendJson(HttpServletResponse resp, int code, Object obj) { try { // TODO(burcud): Initialize Gson instance for once. resp.setContentType(application/json); resp.getWriter().print(new Gson().toJson(obj).toString()); } catch (IOException e) { throw new RuntimeException(e); } } /** * Dumps the given object to JSON and responds with HTTP 200. * @param resp Response object. * @param obj An object to be dumped as JSON. */ protected void sendJson(HttpServletResponse resp, Object obj) { sendJson(resp, 200, obj); } /** * Responds with the given HTTP status code and message. * @param resp Response object. * @param code HTTP status code to respond with. * @param message Message body. */ protected void sendError(HttpServletResponse resp, int code, String message) { try { resp.sendError(code, message); } catch (IOException e) { throw new RuntimeException(message); } } /** * Transforms a GoogleJsonResponseException to an HTTP response. * @param resp Response object. * @param e Exception object to transform. */ protected void sendGoogleJsonResponseError(HttpServletResponse resp, GoogleJsonResponseException e) { sendError(resp, e.getStatusCode(), e.getLocalizedMessage()); } /** * Redirects to OAuth2 consent page if user is not logged in. * @param req Request object. * @param resp Response object. */ protected void loginIfRequired(HttpServletRequest req, HttpServletResponse resp) { Credential credential = getCredential(req, resp); if (credential == null) { // redirect to authorization url try { resp.sendRedirect(credentialManager.getAuthorizationUrl()); } catch (IOException e) { throw new RuntimeException(Can't redirect to auth page); } } } /** * If OAuth2 redirect callback is invoked and there is a code query param, * retrieve user credentials and profile. Then, redirect to the home page. * @param req
Re: [google-appengine] Re: on reading from google drive
!= null) { // retrieve new credentials with code Credential credential = credentialManager.retrieve(code); // request userinfo Oauth2 service = getOauth2Service(credential); try { Userinfo about = service.userinfo().get().execute(); String id = about.getId(); credentialManager.save(id, credential); req.getSession().setAttribute(KEY_SESSION_USERID, id); System.out.println(vik:: accessToken: + credential.getAccessToken() + refreshToken: + credential.getRefreshToken()); } catch (IOException e) { throw new RuntimeException(Can't handle the OAuth2 callback, + make sure that code is valid.); } resp.sendRedirect(/); } } @Override public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException { System.out.println(start of GoogleDriveAuth:::); credentialManager = new CredentialManager( getClientSecrets(), TRANSPORT, JSON_FACTORY); handleCallbackIfRequired(req, resp); } /** * Returns the credentials of the user in the session. If user is not in the * session, returns null. * @param req Request object. * @param resp Response object. * @return Credential object of the user in session or null. */ protected Credential getCredential(HttpServletRequest req, HttpServletResponse resp) { String userId = (String) req.getSession().getAttribute(KEY_SESSION_USERID); if (userId != null) { return credentialManager.get(userId); } return null; } /** * Deletes the credentials of the user in the session permanently and removes * the user from the session. * @param req Request object. * @param resp Response object. */ protected void deleteCredential(HttpServletRequest req, HttpServletResponse resp) { String userId = (String) req.getSession().getAttribute(KEY_SESSION_USERID); if (userId != null) { credentialManager.delete(userId); req.getSession().removeAttribute(KEY_SESSION_USERID); } } /** * Build and return a Drive service object based on given request parameters. * @param credential User credentials. * @return Drive service object that is ready to make requests, or null if * there was a problem. */ protected Drive getDriveService(Credential credential) { return new Drive.Builder(TRANSPORT, JSON_FACTORY, credential).build(); } /** * Build and return an Oauth2 service object based on given request parameters. * @param credential User credentials. * @return Drive service object that is ready to make requests, or null if * there was a problem. */ protected Oauth2 getOauth2Service(Credential credential) { return new Oauth2.Builder(TRANSPORT, JSON_FACTORY, credential).build(); } /** * Reads client_secrets.json and creates a GoogleClientSecrets object. * @return A GoogleClientsSecrets object. */ private GoogleClientSecrets getClientSecrets() { // TODO: do not read on each request InputStream stream = getServletContext().getResourceAsStream(CLIENT_SECRETS_FILE_PATH); try { return GoogleClientSecrets.load(JSON_FACTORY, stream); } catch (IOException e) { throw new RuntimeException(No client_secrets.json found); } } } But on running the servlet url as http://www.sakshum.org/GoogleOauth it throws 500 error with below exceptions in the logs 1. javax.servlet.ServletContext log: unavailable java.lang.InstantiationException at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at java.lang.Class.newInstance0(Class.java:370) at java.lang.Class.newInstance(Class.java:323) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:428) at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter.java:141) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157
Re: [google-appengine] Re: on reading from google drive
we dont use maven so how do we get these? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Jun 17, 2013 at 11:44 AM, Vinny P vinny...@gmail.com wrote: On Mon, Jun 17, 2013 at 12:34 AM, Vik vik@gmail.com wrote: Thanks Vinny I am not sure why references for import com.google.api.services.oauth2.Oauth2; import com.google.api.services.oauth2.model.Userinfo; are not getting resolved though I have downloaded all the drive and oauth related jars and they are in my eclipse project class path Those libraries are available through Maven. Add the XML at this page to retrieve the libs: https://code.google.com/p/google-api-java-client/wiki/APIs#Google_OAuth2_API - -Vinny P Technology Media Advisor Chicago, IL My Go side project: http://invalidmail.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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out. -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] Re: on reading from google drive
Vinay You put a redirect URL in the section where it says Authorized Redirect URLs; this way the user will be redirected back to the app after they grant the app permissions to access their (the user's) account information. But the redirect URL will also contain a ?code= parameter, I dont have any users doing any explicit action. Our app sitting in GAE need to access google docs without any user intervention Vik Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Jun 14, 2013 at 8:59 AM, Vinny P vinny...@gmail.com wrote: Hello, On Thursday, June 13, 2013 10:32:11 PM UTC-5, Vivek Kumar wrote: Can someone help us on this please http://stackoverflow.com/**questions/17057978/issues-in-** implementing-server-side-**authorization-to-google-drivehttp://stackoverflow.com/questions/17057978/issues-in-implementing-server-side-authorization-to-google-drive The authorization code is passed back through the redirect URL you provided. For example, here's a picture of the process to create an application: http://imgur.com/a/UUXyI . You put a redirect URL in the section where it says Authorized Redirect URLs; this way the user will be redirected back to the app after they grant the app permissions to access their (the user's) account information. But the redirect URL will also contain a ?code= parameter, which contains the authorization code that you can exchange for access credentials. For instance, if you set a redirect URL of example.com/oauth, then the redirect URL that your app will receive will look like: example.com/oauth?code=Ud3wq8943. Retrieve the authorization code (it's just a standard parameter, use req.getParameter(code) ), and send it back to Google to get back access credentials (that's what the code fragment you posted does). BTW, the Java client library handles all of this automagically. Look through the javadocs. - -Vinny P Technology Media Advisor Chicago, IL My Go side project: http://invalidmail.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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out. -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] Re: on reading from google drive
Well we cant use service account scheme as that one restricts completely to view or modify docs linked to that account using drive UI. So, we still want to read a particular users docs but without user to authenticate explictly Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Jun 14, 2013 at 10:17 AM, Vinny P vinny...@gmail.com wrote: On Friday, June 14, 2013 12:00:59 PM UTC-5, Vivek Kumar wrote: I dont have any users doing any explicit action. Our app sitting in GAE need to access google docs without any user intervention Then you chose the wrong authentication scheme. In your SO post you linked to the web app authentication scheme. If you have no users and need to connect to Google, you need to use the Service Account authentication scheme (it's the second radio option on the second picture in this album: http://imgur.com/a/UUXyI ). The documentation for the service account login is here: https://developers.google.com/accounts/docs/OAuth2ServiceAccount but essentially you have to cryptographically sign yourself. There is a library and code example here: https://code.google.com/p/google-api-java-client/wiki/OAuth2#Service_Accounts - -Vinny P Technology Media Advisor Chicago, IL My Go side project: http://invalidmail.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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out. -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] Re: on reading from google drive
well I dont think so. I did not say that reading any random users account. Facebook, twitter does that all the time where you can read the stream of a user using his accessToken etc. You authenticate the app via settings to let it access the account offline and then your app does not need to user manually authenticate it Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Jun 14, 2013 at 10:51 AM, Vinny P vinny...@gmail.com wrote: On Friday, June 14, 2013 12:43:31 PM UTC-5, Vivek Kumar wrote: So, we still want to read a particular users docs but without user to authenticate explictly Just to be clear, you want to read a user's documents, but not need the user's authentication approval? If that were possible, that would be a huge security hole. Perhaps you should explain more on what you want your application to do. - -Vinny P Technology Media Advisor Chicago, IL My Go side project: http://invalidmail.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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out. -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
[google-appengine] on reading from google drive
Hi Can someone help us on this please http://stackoverflow.com/questions/17057978/issues-in-implementing-server-side-authorization-to-google-drive Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] Re: Resource not found exception thread
Hi Just giving another attempt in case people got free after google I/O. Please help on this issue Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Thu, May 16, 2013 at 9:36 AM, Vik vik@gmail.com wrote: Can someone please help as we are badly affected by this issue and our system data is getting created with lot of info missing. Please reply Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, May 10, 2013 at 3:09 PM, Vik vik@gmail.com wrote: anyone any help on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, May 8, 2013 at 6:30 PM, Vik vik@gmail.com wrote: I tried to print detailed stack trace and seeing following which seems to say either doc does not exist or i am not the owner, and nothing is correct about it vik.sakshum.sakshumweb.server.common.CommonServiceCode getGoogleDoc: com.google.gdata.util.ResourceNotFoundException: OK !DOCTYPE htmlhtml lang=en headmeta name=description content=Web word processing, spreadsheets and presentationslink rel=shortcut icon href=//ssl.gstatic.com/docs/common/drive_favicon1.icotitleGoogle Drive -- Page Not Found/titlelink href=//fonts.googleapis.com/css?family=Open+Sans:300 rel=stylesheet type=text/cssstyle/* Copyright 2013 Google Inc. All Rights Reserved. */ .goog-inline-block{position:relative;display:-moz-inline-box;display:inline-block}* html .goog-inline-block{display:inline}*:first-child+html .goog-inline-block{display:inline}#drive-logo{color:#91959c;font-family:Open Sans,Arial,sans-serif;font-size:27px;font-weight:300;position:absolute;text-shadow:0 1px 1px white;white-space:nowrap}#drive-logo img{padding:0 0.4em 0 0;position:relative;top:2px;vertical-align:middle}#drive-logo a{color:#91959c;text-decoration:none}#drive-logo span.goog-inline-block{margin-top:2px;vertical-align:top}/stylestyle type=text/cssbody {background-color: #fff; font-family: Arial,sans-serif; font-size: 13px; margin: 0; padding: 0;}a, a: link, a: visited {color: #112ABB;}/stylestyle type=text/css.errorMessage {font-size: 12pt; font-weight: bold; line-height: 150%;}/style/headbodydiv style=margin: auto; max-width: 750px;div style=margin: 80px 40px 20px 40px; position:relative; div style=position: absolute; top: -80px;h1 id=drive-logoa href=/img src=//www.google.com/images/logos/google_logo_41.png width=116 height=41 alt=Google logo span class=goog-inline-blockDrive/span/a/h1/divdiv align=centerp class=errorMessage style=padding-top: 50pxSorry, the file you have requested does not exist./ppMake sure that you have the correct URL and that the owner of the file hasn#39;t deleted it./pdiv style=background: #F0F6FF; border: 1px solid black; margin-top: 35px; padding: 10px 125px; width: 300px;pstrongGet stuff done with Google Drive/strong/ppApps in Google Drive make it easy to create, store and share online documents, spreadsheets, presentations and more./ppLearn more at a href=https://drive.google.com/start/apps;drive.google.com/start/apps/a./p/div/div/div/div/body/html at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:591) at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:563) at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:552) at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:530) at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:535) at com.google.gdata.client.media.MediaService.getMediaResource(MediaService.java:234) at com.google.gdata.client.media.MediaService.getMedia(MediaService.java:276) at com.google.gdata.client.media.MediaService.getMedia(MediaService.java:302) at vik.sakshum.sakshumweb.server.common.CommonServiceCode.getGoogleDoc(CommonServiceCode.java:920) at vik.sakshum.sakshumweb.server.PocServiceImpl.activatePOCs(PocServiceImpl.java:1807) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_$1.run(Method_.java:179) at java.security.AccessController.doPrivileged(Native Method) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.privilegedInvoke(Method_.java:176) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.invoke_(Method_.java:137) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.invoke(Method_.java:45
Re: [google-appengine] Re: Resource not found exception thread
anyone any help on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, May 8, 2013 at 6:30 PM, Vik vik@gmail.com wrote: I tried to print detailed stack trace and seeing following which seems to say either doc does not exist or i am not the owner, and nothing is correct about it vik.sakshum.sakshumweb.server.common.CommonServiceCode getGoogleDoc: com.google.gdata.util.ResourceNotFoundException: OK !DOCTYPE htmlhtml lang=en headmeta name=description content=Web word processing, spreadsheets and presentationslink rel=shortcut icon href=//ssl.gstatic.com/docs/common/drive_favicon1.icotitleGoogle Drive -- Page Not Found/titlelink href=//fonts.googleapis.com/css?family=Open+Sans:300 rel=stylesheet type=text/cssstyle/* Copyright 2013 Google Inc. All Rights Reserved. */ .goog-inline-block{position:relative;display:-moz-inline-box;display:inline-block}* html .goog-inline-block{display:inline}*:first-child+html .goog-inline-block{display:inline}#drive-logo{color:#91959c;font-family:Open Sans,Arial,sans-serif;font-size:27px;font-weight:300;position:absolute;text-shadow:0 1px 1px white;white-space:nowrap}#drive-logo img{padding:0 0.4em 0 0;position:relative;top:2px;vertical-align:middle}#drive-logo a{color:#91959c;text-decoration:none}#drive-logo span.goog-inline-block{margin-top:2px;vertical-align:top}/stylestyle type=text/cssbody {background-color: #fff; font-family: Arial,sans-serif; font-size: 13px; margin: 0; padding: 0;}a, a: link, a: visited {color: #112ABB;}/stylestyle type=text/css.errorMessage {font-size: 12pt; font-weight: bold; line-height: 150%;}/style/headbodydiv style=margin: auto; max-width: 750px;div style=margin: 80px 40px 20px 40px; position:relative; div style=position: absolute; top: -80px;h1 id=drive-logoa href=/img src=//www.google.com/images/logos/google_logo_41.png width=116 height=41 alt=Google logo span class=goog-inline-blockDrive/span/a/h1/divdiv align=centerp class=errorMessage style=padding-top: 50pxSorry, the file you have requested does not exist./ppMake sure that you have the correct URL and that the owner of the file hasn#39;t deleted it./pdiv style=background: #F0F6FF; border: 1px solid black; margin-top: 35px; padding: 10px 125px; width: 300px;pstrongGet stuff done with Google Drive/strong/ppApps in Google Drive make it easy to create, store and share online documents, spreadsheets, presentations and more./ppLearn more at a href=https://drive.google.com/start/apps;drive.google.com/start/apps/a./p/div/div/div/div/body/html at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:591) at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:563) at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:552) at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:530) at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:535) at com.google.gdata.client.media.MediaService.getMediaResource(MediaService.java:234) at com.google.gdata.client.media.MediaService.getMedia(MediaService.java:276) at com.google.gdata.client.media.MediaService.getMedia(MediaService.java:302) at vik.sakshum.sakshumweb.server.common.CommonServiceCode.getGoogleDoc(CommonServiceCode.java:920) at vik.sakshum.sakshumweb.server.PocServiceImpl.activatePOCs(PocServiceImpl.java:1807) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_$1.run(Method_.java:179) at java.security.AccessController.doPrivileged(Native Method) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.privilegedInvoke(Method_.java:176) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.invoke_(Method_.java:137) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.invoke(Method_.java:45) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637
Re: [google-appengine] Re: Resource not found exception thread
) at com.google.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter.java:141) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:57) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:266) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:146) at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:439) at com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:480) at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:487) at com.google.tracing.TraceContext.runInContext(TraceContext.java:774) at com.google.tracing.TraceContext$DoInTraceContext.runInContext(TraceContext.java:751) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:342) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:334) at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:484) at com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251) at java.lang.Thread.run(Thread.java:722) Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, May 7, 2013 at 1:51 PM, Vik vik@gmail.com wrote: Thanks for replying. e.printStackTrace() does not print anything in the app engine logs/ All i see is: 1. 2013-05-07 10:01:45.642 vik.sakshum.sakshumweb.server.common.CommonServiceCode getGoogleDoc: Exception in finally of execute of getGoogleDoc 2. E 2013-05-07 10:01:45.642 vik.sakshum.sakshumweb.server.common.CommonServiceCode getGoogleDoc: Exception class is :com.google.gdata.util.ResourceNotFoundException 3. E 2013-05-07 10:01:45.642 vik.sakshum.sakshumweb.server.common.CommonServiceCode getGoogleDoc: Exception is :OK Coming at line: MediaSource ms = client.getMedia(mc); Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, May 7, 2013 at 1:20 PM, Vinny P vinny...@gmail.com wrote: On Tuesday, May 7, 2013 1:06:44 PM UTC-5, Vivek Kumar wrote: Hi Can someone please assist on the thread http://stackoverflow.** com/questions/16329900/com-**google-gdata-util-** resourcenotfoundexceptionhttp://stackoverflow.com/questions/16329900/com-google-gdata-util-resourcenotfoundexception From your Stack Overflow post: I had working code till yesterday and today i am seeing exception com.google.gdata.util.ResourceNotFoundException while reading google doc from my gae code... What is the exact exception message coming from ResourceNotFoundException? That exception can come up for several reasons. Also, a full stack trace would be great. The gdata Java library does a lot of stuff - it's difficult to pinpoint an exact cause without a stack trace and exception message. - -Vinny P Technology Media Advisor Chicago, IL My Go side project: http://invalidmail.com
[google-appengine] Resource not found exception thread
Hi Can someone please assist on the thread http://stackoverflow.com/questions/16329900/com-google-gdata-util-resourcenotfoundexception Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] Re: Resource not found exception thread
Thanks for replying. e.printStackTrace() does not print anything in the app engine logs/ All i see is: 1. 2013-05-07 10:01:45.642 vik.sakshum.sakshumweb.server.common.CommonServiceCode getGoogleDoc: Exception in finally of execute of getGoogleDoc 2. E 2013-05-07 10:01:45.642 vik.sakshum.sakshumweb.server.common.CommonServiceCode getGoogleDoc: Exception class is :com.google.gdata.util.ResourceNotFoundException 3. E 2013-05-07 10:01:45.642 vik.sakshum.sakshumweb.server.common.CommonServiceCode getGoogleDoc: Exception is :OK Coming at line: MediaSource ms = client.getMedia(mc); Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, May 7, 2013 at 1:20 PM, Vinny P vinny...@gmail.com wrote: On Tuesday, May 7, 2013 1:06:44 PM UTC-5, Vivek Kumar wrote: Hi Can someone please assist on the thread http://stackoverflow.** com/questions/16329900/com-**google-gdata-util-** resourcenotfoundexceptionhttp://stackoverflow.com/questions/16329900/com-google-gdata-util-resourcenotfoundexception From your Stack Overflow post: I had working code till yesterday and today i am seeing exception com.google.gdata.util.ResourceNotFoundException while reading google doc from my gae code... What is the exact exception message coming from ResourceNotFoundException? That exception can come up for several reasons. Also, a full stack trace would be great. The gdata Java library does a lot of stuff - it's difficult to pinpoint an exact cause without a stack trace and exception message. - -Vinny P Technology Media Advisor Chicago, IL My Go side project: http://invalidmail.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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[google-appengine] Re: pending on reliability of document service api
Please advise us on this as we are blocked on this issue. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Apr 22, 2013 at 12:42 PM, Vik vik@gmail.com wrote: Hi someone please advise on http://stackoverflow.com/questions/16128876/unreliable-fetching-of-google-docs-using-document-api Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[google-appengine] need advise
Hi Can someone advise us on this please http://stackoverflow.com/questions/16128876/unreliable-fetching-of-google-docs-using-document-api Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[google-appengine] pending on reliability of document service api
Hi someone please advise on http://stackoverflow.com/questions/16128876/unreliable-fetching-of-google-docs-using-document-api Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] Re: need urgent help
Thanks for the knowledge on this. Problem seems to be fixed but I am waiting and monitoring the logs for next couple of days to be sure On Jan 17, 2013 7:05 AM, Thiago Catoto tcat...@gmail.com wrote: Hi Vik, Nice to hear that you fixed your problem. I guess with persistence.xml you have more control of you transactions and operations. Even if you don't need it now, you may need it on the feature. For read consistency or setting custom timeouts for some global queries (with setHint all over the place is hard to maintain I guess). Hope it helps... Cheers, -- Catoto On Tue, Jan 15, 2013 at 2:54 PM, Vik vik@gmail.com wrote: I am sorry Ian about that. Actually I went through it and found that its about entity group or cross group transactions. As our data or operations are not really critical to business being a non profit and do not involve any financial transactions etc so we do not care about atomicity of transactions. And hence are not really using entity groups etc. We query different objects, then persist or delete objects from different entities without caring if things fails then partial operations to the datastore are acceptable to us. So, that's why may be we dont need persistence.xml Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Jan 15, 2013 at 3:29 AM, Ian Marshall ianmarshall...@gmail.com wrote: You are asking for help on this topic repeatedly, but you will probably need to demonstrate a willingness to take action on responses already made before others chip in. For example: someone asked you about your persistence.xml file. You just responded that you didn't have this file and wanted more advice. If a solution is so vital for you, have you examined the GAE/J JDO documentation to find out what this file might do for you? If so, what have you found out? If not, it looks like you are not bothered and just want the quick fix on a plate. Good luck, Ian On 15 Jan, 01:14, Vik vik@gmail.com wrote: Someone please advise on this blocking issue Thankx and Regards Vik Founderhttp://www.sakshum.orghttp://blog.sakshum.org On Thu, Jan 10, 2013 at 10:44 AM, Vik vik@gmail.com wrote: Hello Please advise on the below thread. We are really stuck on this. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- Forwarded message -- From: Vik vik@gmail.com Date: Tue, Jan 1, 2013 at 8:00 PM Subject: need urgent help To: google-appengine@googlegroups.com Hello Happy new year to the members! Can someone please help us on http://stackoverflow.com/questions/14016052/why-do-i-get-persistence-... Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Pagespeed increases load time and index
Logged it as https://code.google.com/p/googleappengine/issues/detail?id=8693thanks=8693ts=1358354947 Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Jan 16, 2013 at 8:25 AM, Robert Schuppenies schu...@google.comwrote: Could you file an issue at https://code.google.com/p/googleappengine/issues/ and describe your experience? Thanks! On Tue, Jan 15, 2013 at 3:39 PM, Adam Sah adam@gmail.com wrote: sadly, this was similar to my experience as well, and we shut it off and simply used public caching (aka Cache-Control: public etc.) adam On Tuesday, January 15, 2013 11:26:33 AM UTC-8, Vivek Kumar wrote: Hello I was going through a page http://www.webpagetest.org/**result/130115_6Y_** 4588cf2a485857ba234dd43129c36d**0c/http://www.webpagetest.org/result/130115_6Y_4588cf2a485857ba234dd43129c36d0c/ whcih is on GAE for java and have a gwt module in it. The pagsepeed optimized page takes 200% time more to load when i tried my page http://www.sakshum.org/ui/**page/DonorRegister.jsphttp://www.sakshum.org/ui/page/DonorRegister.jsp Any bug in pagespeed optimization service? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/YbTAAR8xMScJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Pagespeed increases load time and index
yeah in case of gwt using apps looks like not a solution Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Jan 16, 2013 at 9:22 AM, Brandon Wirtz drak...@digerat.com wrote: Page speed works like Beautiful soup + a CDN ** ** If you don’t have a sucky page template, and you serve mostly unique content, page speed will slow you down a lot. ** ** The request hits the Page Speed Caching Proxy, the caching proxy grabs the page from Appengine, the proxy recalculate the HTML, then serves the user. ** ** For a “miss” to the cache you have the Appengine time, Plus the HTML clean up time. ** ** Unlike “good” cdn solutions Page speed doesn’t do anticipative caching, where the cache of popular content is kept warm automatically so users almost never hit an uncached page. ** ** ** ** ** ** *From:* google-appengine@googlegroups.com [mailto: google-appengine@googlegroups.com] *On Behalf Of *Vik *Sent:* Wednesday, January 16, 2013 9:50 AM *To:* google-appengine@googlegroups.com *Subject:* Re: [google-appengine] Re: Pagespeed increases load time and index ** ** Logged it as https://code.google.com/p/googleappengine/issues/detail?id=8693thanks=8693ts=1358354947 Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org ** ** On Wed, Jan 16, 2013 at 8:25 AM, Robert Schuppenies schu...@google.com wrote: Could you file an issue at https://code.google.com/p/googleappengine/issues/ and describe your experience? ** ** Thanks! ** ** On Tue, Jan 15, 2013 at 3:39 PM, Adam Sah adam@gmail.com wrote: sadly, this was similar to my experience as well, and we shut it off and simply used public caching (aka Cache-Control: public etc.) adam On Tuesday, January 15, 2013 11:26:33 AM UTC-8, Vivek Kumar wrote: Hello I was going through a page http://www.webpagetest.org/result/130115_6Y_4588cf2a485857ba234dd43129c36d0c/ whcih is on GAE for java and have a gwt module in it. The pagsepeed optimized page takes 200% time more to load when i tried my page http://www.sakshum.org/ui/page/DonorRegister.jsp Any bug in pagespeed optimization service? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/YbTAAR8xMScJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. ** ** -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. ** ** -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Pagespeed increases load time and index
so u mean its a big no no to use pagespeed on gwt ? may be that should be mentioned on pagespeed docs Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Jan 16, 2013 at 12:01 PM, Ryan Chazen rya...@gmail.com wrote: If you use all of GWT's client bundle options then you already have the effect (and more) of PageSpeed. Automatic image sprites, embedded resources, embedded css, etc. Running all of this through PageSpeed again is just wasting a lot of work to re-do what is already handled by GWT's compiler. On Wednesday, January 16, 2013 7:41:13 PM UTC+2, Vivek Kumar wrote: yeah in case of gwt using apps looks like not a solution Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Jan 16, 2013 at 9:22 AM, Brandon Wirtz dra...@digerat.comwrote: Page speed works like Beautiful soup + a CDN ** ** If you don’t have a sucky page template, and you serve mostly unique content, page speed will slow you down a lot. ** ** The request hits the Page Speed Caching Proxy, the caching proxy grabs the page from Appengine, the proxy recalculate the HTML, then serves the user. ** ** For a “miss” to the cache you have the Appengine time, Plus the HTML clean up time. ** ** Unlike “good” cdn solutions Page speed doesn’t do anticipative caching, where the cache of popular content is kept warm automatically so users almost never hit an uncached page. ** ** ** ** ** ** *From:* google-a...@googlegroups.**com [mailto:google-a...@** googlegroups.com] *On Behalf Of *Vik *Sent:* Wednesday, January 16, 2013 9:50 AM *To:* google-a...@googlegroups.**com *Subject:* Re: [google-appengine] Re: Pagespeed increases load time and index ** ** Logged it as https://code.google.com/p/**googleappengine/issues/detail?* *id=8693thanks=8693ts=**1358354947https://code.google.com/p/googleappengine/issues/detail?id=8693thanks=8693ts=1358354947 Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org ** ** On Wed, Jan 16, 2013 at 8:25 AM, Robert Schuppenies sch...@google.com wrote: Could you file an issue at https://code.google.com/p/** googleappengine/issues/https://code.google.com/p/googleappengine/issues/and describe your experience? ** ** Thanks! ** ** On Tue, Jan 15, 2013 at 3:39 PM, Adam Sah adam...@gmail.com wrote: sadly, this was similar to my experience as well, and we shut it off and simply used public caching (aka Cache-Control: public etc.) adam On Tuesday, January 15, 2013 11:26:33 AM UTC-8, Vivek Kumar wrote: Hello I was going through a page http://www.webpagetest.org/**result/130115_6Y_** 4588cf2a485857ba234dd43129c36d**0c/http://www.webpagetest.org/result/130115_6Y_4588cf2a485857ba234dd43129c36d0c/ whcih is on GAE for java and have a gwt module in it. The pagsepeed optimized page takes 200% time more to load when i tried my page http://www.sakshum.org/ui/**page/DonorRegister.jsphttp://www.sakshum.org/ui/page/DonorRegister.jsp Any bug in pagespeed optimization service? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/** msg/google-appengine/-/**YbTAAR8xMScJhttps://groups.google.com/d/msg/google-appengine/-/YbTAAR8xMScJ . To post to this group, send email to google-a...@googlegroups.**com. To unsubscribe from this group, send email to google-appengi...@** googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-appengine?hl=enhttp://groups.google.com/group/google-appengine?hl=en . ** ** -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-a...@googlegroups.**com. To unsubscribe from this group, send email to google-appengi...@** googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-appengine?hl=enhttp://groups.google.com/group/google-appengine?hl=en . ** ** -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-a...@googlegroups.**com. To unsubscribe from this group, send email to google-appengi...@** googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-appengine?hl=enhttp://groups.google.com/group/google-appengine?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-a...@googlegroups.**com. To unsubscribe from this group, send email to google-appengi
[google-appengine] Pagespeed increases load time and index
Hello I was going through a page http://www.webpagetest.org/result/130115_6Y_4588cf2a485857ba234dd43129c36d0c/ whcih is on GAE for java and have a gwt module in it. The pagsepeed optimized page takes 200% time more to load when i tried my page http://www.sakshum.org/ui/page/DonorRegister.jsp Any bug in pagespeed optimization service? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Pagespeed increases load time and index
sad google doesnt analyze tools for their own technologies like GWT Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Jan 15, 2013 at 3:39 PM, Adam Sah adam@gmail.com wrote: sadly, this was similar to my experience as well, and we shut it off and simply used public caching (aka Cache-Control: public etc.) adam On Tuesday, January 15, 2013 11:26:33 AM UTC-8, Vivek Kumar wrote: Hello I was going through a page http://www.webpagetest.org/**result/130115_6Y_** 4588cf2a485857ba234dd43129c36d**0c/http://www.webpagetest.org/result/130115_6Y_4588cf2a485857ba234dd43129c36d0c/ whcih is on GAE for java and have a gwt module in it. The pagsepeed optimized page takes 200% time more to load when i tried my page http://www.sakshum.org/ui/**page/DonorRegister.jsphttp://www.sakshum.org/ui/page/DonorRegister.jsp Any bug in pagespeed optimization service? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/YbTAAR8xMScJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: need urgent help
Someone please advise on this blocking issue Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Thu, Jan 10, 2013 at 10:44 AM, Vik vik@gmail.com wrote: Hello Please advise on the below thread. We are really stuck on this. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- Forwarded message -- From: Vik vik@gmail.com Date: Tue, Jan 1, 2013 at 8:00 PM Subject: need urgent help To: google-appengine@googlegroups.com Hello Happy new year to the members! Can someone please help us on http://stackoverflow.com/questions/14016052/why-do-i-get-persistence-manager-has-been-closed-exception Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: need urgent help
Hello Please advise ! We are blocked on this Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Jan 9, 2013 at 4:12 PM, Vik vik@gmail.com wrote: i do not have this file at all in my workspace. plz advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Jan 9, 2013 at 5:28 AM, Thiago Catoto tcat...@gmail.com wrote: Hi Vik, Can you post your persistence.xml? Do you have this line on it? (Or some think like it?) property name=datanucleus.appengine.datastoreEnableXGTransactions value=true/ On Tue, Jan 8, 2013 at 8:19 PM, Vik vik@gmail.com wrote: some please help us on this issue Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Jan 7, 2013 at 4:34 PM, Vik vik@gmail.com wrote: can some one help us on this please? becoming a blocking issue Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Jan 1, 2013 at 8:00 PM, Vik vik@gmail.com wrote: Hello Happy new year to the members! Can someone please help us on http://stackoverflow.com/questions/14016052/why-do-i-get-persistence-manager-has-been-closed-exception Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: need urgent help
i do not have this file at all in my workspace. plz advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Jan 9, 2013 at 5:28 AM, Thiago Catoto tcat...@gmail.com wrote: Hi Vik, Can you post your persistence.xml? Do you have this line on it? (Or some think like it?) property name=datanucleus.appengine.datastoreEnableXGTransactions value=true/ On Tue, Jan 8, 2013 at 8:19 PM, Vik vik@gmail.com wrote: some please help us on this issue Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Jan 7, 2013 at 4:34 PM, Vik vik@gmail.com wrote: can some one help us on this please? becoming a blocking issue Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Jan 1, 2013 at 8:00 PM, Vik vik@gmail.com wrote: Hello Happy new year to the members! Can someone please help us on http://stackoverflow.com/questions/14016052/why-do-i-get-persistence-manager-has-been-closed-exception Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: need urgent help
some please help us on this issue Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Jan 7, 2013 at 4:34 PM, Vik vik@gmail.com wrote: can some one help us on this please? becoming a blocking issue Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Jan 1, 2013 at 8:00 PM, Vik vik@gmail.com wrote: Hello Happy new year to the members! Can someone please help us on http://stackoverflow.com/questions/14016052/why-do-i-get-persistence-manager-has-been-closed-exception Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: need urgent help
can some one help us on this please? becoming a blocking issue Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Jan 1, 2013 at 8:00 PM, Vik vik@gmail.com wrote: Hello Happy new year to the members! Can someone please help us on http://stackoverflow.com/questions/14016052/why-do-i-get-persistence-manager-has-been-closed-exception Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Task doesnt execute and stays forever
anyone on this please ? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Jan 2, 2013 at 4:09 PM, Vik vik@gmail.com wrote: Hi I created a cron job which queues a task in the app engine for java. I can see since yesterday there is a task in the queue but its not executing. The time value for oldest task keep changing on every refresh and goes to 0 and then starts again from some arbitrary value. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Task doesnt execute and stays forever
sakshumweb-hrd Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Thu, Jan 3, 2013 at 6:14 PM, Takashi Matsuo tmat...@google.com wrote: Hi Vik, Can you tell me your app-id so that I can take a look. On Thu, Jan 3, 2013 at 6:06 PM, Vik vik@gmail.com wrote: anyone on this please ? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Jan 2, 2013 at 4:09 PM, Vik vik@gmail.com wrote: Hi I created a cron job which queues a task in the app engine for java. I can see since yesterday there is a task in the queue but its not executing. The time value for oldest task keep changing on every refresh and goes to 0 and then starts again from some arbitrary value. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Takashi Matsuo | Developers Advocate | tmat...@google.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Task doesnt execute and stays forever
thanks that seems to be the issue. cron had doGet but the queue has only doPost . Thanks a lot ! Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Thu, Jan 3, 2013 at 6:27 PM, Takashi Matsuo tmat...@google.com wrote: Hi Vik, It seems to me that your task is just retrying over and over with 405 http error code. Can you check if the handler for that task can handle HTTP GET requests? On Thu, Jan 3, 2013 at 6:15 PM, Vik vik@gmail.com wrote: sakshumweb-hrd Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Thu, Jan 3, 2013 at 6:14 PM, Takashi Matsuo tmat...@google.comwrote: Hi Vik, Can you tell me your app-id so that I can take a look. On Thu, Jan 3, 2013 at 6:06 PM, Vik vik@gmail.com wrote: anyone on this please ? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Jan 2, 2013 at 4:09 PM, Vik vik@gmail.com wrote: Hi I created a cron job which queues a task in the app engine for java. I can see since yesterday there is a task in the queue but its not executing. The time value for oldest task keep changing on every refresh and goes to 0 and then starts again from some arbitrary value. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Takashi Matsuo | Developers Advocate | tmat...@google.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Takashi Matsuo | Developers Advocate | tmat...@google.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Task doesnt execute and stays forever
Hi I created a cron job which queues a task in the app engine for java. I can see since yesterday there is a task in the queue but its not executing. The time value for oldest task keep changing on every refresh and goes to 0 and then starts again from some arbitrary value. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] need urgent help
Hello Happy new year to the members! Can someone please help us on http://stackoverflow.com/questions/14016052/why-do-i-get-persistence-manager-has-been-closed-exception Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] bug in GAE for java code ?
Hi Seems like a bug in GAE 1.7.3 code based on following stack trace java.lang.NullPointerException at org.datanucleus.ObjectManagerImpl.isDelayDatastoreOperationsEnabled(ObjectManagerImpl.java:559) at org.datanucleus.store.query.Query.prepareDatastore(Query.java:1237) at org.datanucleus.store.query.Query.executeQuery(Query.java:1475) at org.datanucleus.store.query.Query.executeWithArray(Query.java:1371) at org.datanucleus.store.query.Query.execute(Query.java:1344) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:221) at vik.sakshum.sakshumweb.server.AdminDashBoardServiceImpl.isUserActive(AdminDashBoardServiceImpl.java:553) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_$1.run(Method_.java:165) at java.security.AccessController.doPrivileged(Native Method) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.privilegedInvoke(Method_.java:163) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.invoke_(Method_.java:124) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.invoke(Method_.java:43) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:102) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:266) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:146) at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:447) at com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:454) at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:461) at com.google.tracing.TraceContext.runInContext(TraceContext.java:703) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:338) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:330) at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:458) at com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251) at java.lang.Thread.run(Thread.java:679) Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Code broken after migrating to HRD
Hello We had a code used to write to google data store from our appengine app for java and now it fails with some IOException. Please help as this is a key functionality E 2012-09-19 21:59:13.603 vik.sakshum.sakshumweb.server.common.CommonServiceCode writeToGoogleStore: Exception in finally of execute of writeToGoogleStore E 2012-09-19 21:59:13.603 vik.sakshum.sakshumweb.server.common.CommonServiceCode writeToGoogleStore: Exception class is :java.io.IOException E 2012-09-19 21:59:13.603 vik.sakshum.sakshumweb.server.common.CommonServiceCode writeToGoogleStore: Exception is :null The code which is broken now is try { log.info(Starting google storage); // Get the file service FileService fileService = FileServiceFactory.getFileService(); GSFileOptionsBuilder optionsBuilder = new GSFileOptionsBuilder() .setBucket(bucketName).setKey(key).setAcl(public-read) .setMimeType(text/html); // Create your object AppEngineFile writableFile = fileService .createNewGSFile(optionsBuilder.build()); // Open a channel for writing boolean lockForWrite = true; FileWriteChannel writeChannel = fileService.openWriteChannel( writableFile, lockForWrite); PrintWriter out = new PrintWriter(Channels.newWriter(writeChannel, UTF8)); out.println(emailMsgTxt); out.close(); writeChannel.closeFinally(); } catch (Exception e) { e.printStackTrace(); log.severe(Exception in finally of execute of writeToGoogleStore); log.severe(Exception class is : + e.getClass().getName()); log.severe(Exception is : + e.getMessage()); return failed; } Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: changes does not reflect
Jeff I have mentioned that but let me say again We have only one version deployed and that is the default version. Please see below. The behavior is quite odd . And not sure why it does not work on GAE when it works fine on local. 3 http://3.sakshumweb.appspot.com/ instanceshttps://appengine.google.com/instances?app_id=sakshumwebversion_id=3.361281034454242200 | 105.50 MBytes | java | api_version: 1.0 *Yes* 0:09:03 ago by vik@gmail.com Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Aug 24, 2012 at 10:35 PM, Jeff Schnitzer j...@infohazard.orgwrote: You don't seem to respond to any of the comments regarding the default version. In the Versions page of the admin console, make sure you have the default version set properly. Jeff On Fri, Aug 24, 2012 at 1:59 AM, Vik vik@gmail.com wrote: Hello I updated the problem with more analysis at http://stackoverflow.com/questions/12103783/issues-in-version-uploaded-on-google-app-engine Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Thu, Aug 23, 2012 at 9:15 PM, Vik vik@gmail.com wrote: We have a GAE for java app using gwt I can run the app and test it locally all works good. But on deployoment i do not see the changes. i tried clearing browser cache , different browsers, private mode but no luck. I can verify in the versions that the deployment did happen properly. Any idea on how to debug what is the issue Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Need help as we are stuck due to issues on gae
Hello can someone please advise us on http://stackoverflow.com/questions/12103783/issues-in-version-uploaded-on-google-app-engine Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] changes does not reflect
We have a GAE for java app using gwt I can run the app and test it locally all works good. But on deployoment i do not see the changes. i tried clearing browser cache , different browsers, private mode but no luck. I can verify in the versions that the deployment did happen properly. Any idea on how to debug what is the issue Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: changes does not reflect
Hello I updated the problem with more analysis at http://stackoverflow.com/questions/12103783/issues-in-version-uploaded-on-google-app-engine Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Thu, Aug 23, 2012 at 9:15 PM, Vik vik@gmail.com wrote: We have a GAE for java app using gwt I can run the app and test it locally all works good. But on deployoment i do not see the changes. i tried clearing browser cache , different browsers, private mode but no luck. I can verify in the versions that the deployment did happen properly. Any idea on how to debug what is the issue Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Need help on persistent manager related question
Hie Can someone plz comment on http://stackoverflow.com/questions/11811247/how-to-flush-changes-to-persistent-manager Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Need help on the following use case
Hie Can someone please advise on http://stackoverflow.com/questions/11805362/rollback-the-changes-in-failure-situation Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: amazon ses on gae
Thanks a lot! do you have the compiled jars to use directly? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Jul 30, 2012 at 1:29 AM, radomir radomi...@gmail.com wrote: Hi Vivek, Due to email delivery issues on GAE I switched my projects to Amazon SES few months ago and I'm very happy with it. You need to make few changes to Amazon SDK's HTTP layer to make it work on GAE. Here's my patched copy of the AWS sources: https://github.com/radomirml/aws-sdk-for-gaej Regards, Radomir On Friday, July 27, 2012 8:46:35 AM UTC+2, Vivek Kumar wrote: Hie Anyone used amazon ses on gae for java? any experience or advise plx Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/iIZkEYVwMywJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: amazon ses on gae
would be great thanks in advance Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Jul 30, 2012 at 1:23 PM, radomir radomi...@gmail.com wrote: Sure, I'll email it to you. On Monday, July 30, 2012 8:31:16 PM UTC+2, Vivek Kumar wrote: Thanks a lot! do you have the compiled jars to use directly? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Jul 30, 2012 at 1:29 AM, radomir radomi...@gmail.com wrote: Hi Vivek, Due to email delivery issues on GAE I switched my projects to Amazon SES few months ago and I'm very happy with it. You need to make few changes to Amazon SDK's HTTP layer to make it work on GAE. Here's my patched copy of the AWS sources: https://github.com/radomirml/**aws-sdk-for-gaejhttps://github.com/radomirml/aws-sdk-for-gaej Regards, Radomir On Friday, July 27, 2012 8:46:35 AM UTC+2, Vivek Kumar wrote: Hie Anyone used amazon ses on gae for java? any experience or advise plx Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/** msg/google-appengine/-/**iIZkEYVwMywJhttps://groups.google.com/d/msg/google-appengine/-/iIZkEYVwMywJ . To post to this group, send email to google-appengine@googlegroups.**comgoogle-appengine@googlegroups.com . To unsubscribe from this group, send email to google-appengine+unsubscribe@**googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-appengine?hl=enhttp://groups.google.com/group/google-appengine?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/P9CW7i3YV2YJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] amazon ses on gae
Hie Anyone used amazon ses on gae for java? any experience or advise plx Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: managing bulk emails from app engine app
Hey Guys Thanks for the reply... Any experience with Amazon SES ? Pricing looks good to me however, I am not sure it works smooth with google app engine for java? Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Thu, Jul 19, 2012 at 2:51 AM, Stephen Lewis step...@sock.org.uk wrote: I'm not the best person to provide a comparison between services because we've only tried Sendgrid. That said, they've been excellent for our needs - we've sent just shy of 2 million mails via them so far. Stephen On Thursday, 19 July 2012 05:32:11 UTC+1, Vivek Kumar wrote: hie can some one help us on suggesting third party emails systems which are good to go to integrate with app engine? Vik On Thursday, 12 July 2012 22:51:24 UTC-7, Vivek Kumar wrote: Hie Jeff Which thrid party system do you guys use? please share the details like how u r using their service to send emails from your gae app Vik On Sunday, 8 July 2012 09:13:15 UTC-7, Jeff Schnitzer wrote: I should add that we also use a third-party email system. Ultimately it's no harder to make a REST call to an external service than to make a call to MailService, and many services offer a much more robust solution. GAE's mail system has silly limitations like the inability to send emails with inline (Content-ID) image attachments. Just make sure that your 'unit of work' is the same as a single urlfetch. You wouldn't want to put 100 REST calls in a single task - imagine it failed at #50, then the whole task will retry and re-spam #1-#49. If your mail service does send this message to these 100 people, great; otherwise stick to one-email-per-task. We do one-email-per-task. Jeff On Sun, Jul 8, 2012 at 8:57 AM, Richard Watson richard.wat...@gmail.com wrote: Offload both transactional and bulk email to a 3rd-party email specialist. It's their core competence, and you're likely to be able to send bulk email with one api call once your list is set up. If you have issues you'll have better insight into what those are. You can get delivery and read reports, and automatic remove-me-from-your-list handling. On Sunday, July 8, 2012 5:27:04 PM UTC+2, Per wrote: Hi Vik, technical details aside, keep in mind that the spam filter settings on App Engine can be pretty strict. We have been sending mails for 18 months now, increasing the number gradually, and we also used DKIM signing. Still, suddenly some time last week our mails stopped getting sent. From all I can tell some Google mechanism decided that we're a spammer. We have inquired with Google instantly, but of course the GAE customer service is poor as always and never got back to us. So we switched to an external email provider now (mailgun, but there are dozens out there), and I'm quite happy with that, since tracking of emails is a lot more convenient too. It's not free though. Long story short, if you all of a sudden send 10k mails, be prepared to get filtered by Google because they think you're a spammer. Make sure to spread the load, and track what you have sent already, so you know what you'd need to resend if push comes to shove. Cheers, Per On Saturday, July 7, 2012 7:19:12 PM UTC+2, Vivek Kumar wrote: Hello We have around 1 registered users with us who are blood donors. We want to send them periodic emails like every month to remind them or their account status etc. Obviously, a single request cannot process so many emails. So, what is the suggested way to handle this use case without hitting request time limits etc on app engine? our app is in GAE for java Vik -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/**msg/google-appengine/-/**m4NlskwCrF8Jhttps://groups.google.com/d/msg/google-appengine/-/m4NlskwCrF8J. To post to this group, send email to google-appengine@googlegroups.** com google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscribe@**googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/**group/google-appengine?hl=enhttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/gwKTwZsdkIoJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App
Re: [google-appengine] Re: managing bulk emails from app engine app
Jeff Does it play nice with google app engine for java? Also how the pricing looks like? As you said not yet public so emailed them. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Thu, Jul 19, 2012 at 11:18 AM, Jeff Schnitzer j...@infohazard.orgwrote: On Thu, Jul 12, 2012 at 10:51 PM, Vivek Kumar vik@gmail.com wrote: Hie Jeff Which thrid party system do you guys use? please share the details like how u r using their service to send emails from your gae app Sorry I missed this earlier. We use messagebus.com. We're very happy with them, although I don't think their service is generally available to the public yet. Jeff -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [appengine-java] Re: need help on issue in storing to google storage using java apis
and there is no data as well getting stored. The call gets lost after FileService fileService = FileServiceFactory.getFileService(); Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 10:59 PM, Stuart Langley slang...@google.comwrote: I don't see any errors On Tue, Mar 20, 2012 at 4:46 PM, Vik vik@gmail.com wrote: Sorry may be i lost in the different branches. Though results are same. I just double checked it. and attaching that file again which is now at server as well. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 10:29 PM, Stuart Langley slang...@google.comwrote: what's this at line 485? }catch(Exception e){ e.printStackTrace(); log.severe(Exception in finally of execute of getGoogleDoc); log.severe(Exception class is : + e.getClass().getName()); log.severe(Exception is : + e.getMessage()); throw new Exception(e.getMessage() + Issue while reading document from google docs); On Tue, Mar 20, 2012 at 3:15 PM, Vik vik@gmail.com wrote: Hie Stuart I removed the catch block and i still do not see stack trace at all. Log still shows only java.io.exception. Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 7:00 PM, Jean-François Geyelin jfgeye...@gmail.com wrote: For what it's worth, right now the database is not working: http://code.google.com/status/appengine/detail/datastore/2012/03/19#ae-trust-detail-datastore-put-error_ratehttp://code.google.com/status/appengine/detail/datastore/2012/03/19#ae-trust-detail-datastore-put-error_rate On Tuesday, March 20, 2012 2:06:36 AM UTC+1, Stuart Langley wrote: Is this it? 2012-03-17 16:08:46.653 vik.sakshum.sakshumweb.server.**common.CommonServiceCode createCertificate: Exception class is :java.io.IOException On Tue, Mar 20, 2012 at 12:02 PM, Vik vik@gmail.com wrote: Hie It is: sakshumweb20 Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 6:00 PM, Stuart Langley slang...@google.com wrote: what's the app id? On Tue, Mar 20, 2012 at 11:58 AM, Vik vik@gmail.com wrote: Hie I updated the post again. I dont see a stack trace at all. just a java.io.exception. See at http://stackoverflow.com/**questions/9755670/storing-** data-to-google-cloud-storage-**using-gae-for-javahttp://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java Please advise, we are blocked on this now Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 18, 2012 at 6:04 PM, Stuart Langley slang...@google.com wrote: What do you think is a bug? When using the dev server all of the APIs are simulated on the local machine. For the null ptr you need to post the stack trace and/or a repro. On Mon, Mar 19, 2012 at 12:02 PM, Vik vik@gmail.com wrote: yes i saw that though I do not see the possible solution for it? Is it a bug in google app engine or cloud storage apis? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 18, 2012 at 2:40 PM, Stuart Langley slang...@google.com wrote: I responded to your question in SO On Sunday, 18 March 2012 16:45:38 UTC+11, vikceo wrote: Hie Can someone help on http://stackoverflow.com/**quest** ions/9755670/storing-**data-to-**google-cloud-storage-** using-**gae-for-javahttp://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/**msg/google-appengine-java/-/** rL6nAxmHFbkJhttps://groups.google.com/d/msg/google-appengine-java/-/rL6nAxmHFbkJ . To post to this group, send email to google-appengine-java@** googlegroups.com google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+**unsubscri...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/ **group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@** googlegroups.com google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+**unsubscri...@googlegroups.comgoogle-appengine
Re: [appengine-java] Re: need help on issue in storing to google storage using java apis
i gave u both the files which are calling this code. I have created that bucked blood so i should only own it. and above all how to find if that is the case? I am not really eating up the exception anywhere Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 11:08 PM, Stuart Langley slang...@google.comwrote: No doubt - you don't set an object name and most likely you don't own the bucket called blood and no doubt your catching and swallowing the exception somewhere else in the code On Tue, Mar 20, 2012 at 5:04 PM, Vik vik@gmail.com wrote: and there is no data as well getting stored. The call gets lost after FileService fileService = FileServiceFactory.getFileService(); Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 10:59 PM, Stuart Langley slang...@google.comwrote: I don't see any errors On Tue, Mar 20, 2012 at 4:46 PM, Vik vik@gmail.com wrote: Sorry may be i lost in the different branches. Though results are same. I just double checked it. and attaching that file again which is now at server as well. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 10:29 PM, Stuart Langley slang...@google.comwrote: what's this at line 485? }catch(Exception e){ e.printStackTrace(); log.severe(Exception in finally of execute of getGoogleDoc); log.severe(Exception class is : + e.getClass().getName()); log.severe(Exception is : + e.getMessage()); throw new Exception(e.getMessage() + Issue while reading document from google docs); On Tue, Mar 20, 2012 at 3:15 PM, Vik vik@gmail.com wrote: Hie Stuart I removed the catch block and i still do not see stack trace at all. Log still shows only java.io.exception. Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 7:00 PM, Jean-François Geyelin jfgeye...@gmail.com wrote: For what it's worth, right now the database is not working: http://code.google.com/status/appengine/detail/datastore/2012/03/19#ae-trust-detail-datastore-put-error_ratehttp://code.google.com/status/appengine/detail/datastore/2012/03/19#ae-trust-detail-datastore-put-error_rate On Tuesday, March 20, 2012 2:06:36 AM UTC+1, Stuart Langley wrote: Is this it? 2012-03-17 16:08:46.653 vik.sakshum.sakshumweb.server.**common.CommonServiceCode createCertificate: Exception class is :java.io.IOException On Tue, Mar 20, 2012 at 12:02 PM, Vik vik@gmail.com wrote: Hie It is: sakshumweb20 Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 6:00 PM, Stuart Langley slang...@google.com wrote: what's the app id? On Tue, Mar 20, 2012 at 11:58 AM, Vik vik@gmail.com wrote: Hie I updated the post again. I dont see a stack trace at all. just a java.io.exception. See at http://stackoverflow.com/**questions/9755670/storing- **data-to-google-cloud-storage-**using-gae-for-javahttp://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java Please advise, we are blocked on this now Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 18, 2012 at 6:04 PM, Stuart Langley slang...@google.com wrote: What do you think is a bug? When using the dev server all of the APIs are simulated on the local machine. For the null ptr you need to post the stack trace and/or a repro. On Mon, Mar 19, 2012 at 12:02 PM, Vik vik@gmail.comwrote: yes i saw that though I do not see the possible solution for it? Is it a bug in google app engine or cloud storage apis? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 18, 2012 at 2:40 PM, Stuart Langley slang...@google.com wrote: I responded to your question in SO On Sunday, 18 March 2012 16:45:38 UTC+11, vikceo wrote: Hie Can someone help on http://stackoverflow.com/**quest** ions/9755670/storing-**data-to-** google-cloud-storage-**using-**gae-for-javahttp://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/** msg/google-appengine-java/-/**rL6nAxmHFbkJhttps://groups.google.com/d/msg/google-appengine-java/-/rL6nAxmHFbkJ . To post to this group, send email to google-appengine-java@** googlegroups.com google-appengine-java@googlegroups.com . To unsubscribe from this group, send email
Re: [appengine-java] Re: need help on issue in storing to google storage using java apis
Hie I updated the post again. I dont see a stack trace at all. just a java.io.exception. See at http://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java Please advise, we are blocked on this now Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 18, 2012 at 6:04 PM, Stuart Langley slang...@google.com wrote: What do you think is a bug? When using the dev server all of the APIs are simulated on the local machine. For the null ptr you need to post the stack trace and/or a repro. On Mon, Mar 19, 2012 at 12:02 PM, Vik vik@gmail.com wrote: yes i saw that though I do not see the possible solution for it? Is it a bug in google app engine or cloud storage apis? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 18, 2012 at 2:40 PM, Stuart Langley slang...@google.comwrote: I responded to your question in SO On Sunday, 18 March 2012 16:45:38 UTC+11, vikceo wrote: Hie Can someone help on http://stackoverflow.com/** questions/9755670/storing-**data-to-google-cloud-storage-** using-gae-for-javahttp://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/rL6nAxmHFbkJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: need help on issue in storing to google storage using java apis
Hie It is: sakshumweb20 Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 6:00 PM, Stuart Langley slang...@google.com wrote: what's the app id? On Tue, Mar 20, 2012 at 11:58 AM, Vik vik@gmail.com wrote: Hie I updated the post again. I dont see a stack trace at all. just a java.io.exception. See at http://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java Please advise, we are blocked on this now Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 18, 2012 at 6:04 PM, Stuart Langley slang...@google.comwrote: What do you think is a bug? When using the dev server all of the APIs are simulated on the local machine. For the null ptr you need to post the stack trace and/or a repro. On Mon, Mar 19, 2012 at 12:02 PM, Vik vik@gmail.com wrote: yes i saw that though I do not see the possible solution for it? Is it a bug in google app engine or cloud storage apis? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 18, 2012 at 2:40 PM, Stuart Langley slang...@google.comwrote: I responded to your question in SO On Sunday, 18 March 2012 16:45:38 UTC+11, vikceo wrote: Hie Can someone help on http://stackoverflow.com/** questions/9755670/storing-**data-to-google-cloud-storage-** using-gae-for-javahttp://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/rL6nAxmHFbkJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: need help on issue in storing to google storage using java apis
Hie Stuart I removed the catch block and i still do not see stack trace at all. Log still shows only java.io.exception. Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 7:00 PM, Jean-François Geyelin jfgeye...@gmail.comwrote: For what it's worth, right now the database is not working: http://code.google.com/status/appengine/detail/datastore/2012/03/19#ae-trust-detail-datastore-put-error_ratehttp://code.google.com/status/appengine/detail/datastore/2012/03/19#ae-trust-detail-datastore-put-error_rate On Tuesday, March 20, 2012 2:06:36 AM UTC+1, Stuart Langley wrote: Is this it? 2012-03-17 16:08:46.653 vik.sakshum.sakshumweb.server.**common.CommonServiceCode createCertificate: Exception class is :java.io.IOException On Tue, Mar 20, 2012 at 12:02 PM, Vik vik@gmail.com wrote: Hie It is: sakshumweb20 Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 6:00 PM, Stuart Langley slang...@google.comwrote: what's the app id? On Tue, Mar 20, 2012 at 11:58 AM, Vik vik@gmail.com wrote: Hie I updated the post again. I dont see a stack trace at all. just a java.io.exception. See at http://stackoverflow.com/**questions/9755670/storing-** data-to-google-cloud-storage-**using-gae-for-javahttp://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java Please advise, we are blocked on this now Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 18, 2012 at 6:04 PM, Stuart Langley slang...@google.comwrote: What do you think is a bug? When using the dev server all of the APIs are simulated on the local machine. For the null ptr you need to post the stack trace and/or a repro. On Mon, Mar 19, 2012 at 12:02 PM, Vik vik@gmail.com wrote: yes i saw that though I do not see the possible solution for it? Is it a bug in google app engine or cloud storage apis? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 18, 2012 at 2:40 PM, Stuart Langley slang...@google.com wrote: I responded to your question in SO On Sunday, 18 March 2012 16:45:38 UTC+11, vikceo wrote: Hie Can someone help on http://stackoverflow.com/**quest** ions/9755670/storing-**data-to-**google-cloud-storage-**using-** gae-for-javahttp://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/**msg/google-appengine-java/-/** rL6nAxmHFbkJhttps://groups.google.com/d/msg/google-appengine-java/-/rL6nAxmHFbkJ . To post to this group, send email to google-appengine-java@** googlegroups.com google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+**unsubscri...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@** googlegroups.com google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+ **unsubscri...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: need help on issue in storing to google storage using java apis
Sorry may be i lost in the different branches. Though results are same. I just double checked it. and attaching that file again which is now at server as well. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 10:29 PM, Stuart Langley slang...@google.comwrote: what's this at line 485? }catch(Exception e){ e.printStackTrace(); log.severe(Exception in finally of execute of getGoogleDoc); log.severe(Exception class is : + e.getClass().getName()); log.severe(Exception is : + e.getMessage()); throw new Exception(e.getMessage() + Issue while reading document from google docs); On Tue, Mar 20, 2012 at 3:15 PM, Vik vik@gmail.com wrote: Hie Stuart I removed the catch block and i still do not see stack trace at all. Log still shows only java.io.exception. Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 7:00 PM, Jean-François Geyelin jfgeye...@gmail.com wrote: For what it's worth, right now the database is not working: http://code.google.com/status/appengine/detail/datastore/2012/03/19#ae-trust-detail-datastore-put-error_ratehttp://code.google.com/status/appengine/detail/datastore/2012/03/19#ae-trust-detail-datastore-put-error_rate On Tuesday, March 20, 2012 2:06:36 AM UTC+1, Stuart Langley wrote: Is this it? 2012-03-17 16:08:46.653 vik.sakshum.sakshumweb.server.**common.CommonServiceCode createCertificate: Exception class is :java.io.IOException On Tue, Mar 20, 2012 at 12:02 PM, Vik vik@gmail.com wrote: Hie It is: sakshumweb20 Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Mar 19, 2012 at 6:00 PM, Stuart Langley slang...@google.comwrote: what's the app id? On Tue, Mar 20, 2012 at 11:58 AM, Vik vik@gmail.com wrote: Hie I updated the post again. I dont see a stack trace at all. just a java.io.exception. See at http://stackoverflow.com/**questions/9755670/storing-** data-to-google-cloud-storage-**using-gae-for-javahttp://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java Please advise, we are blocked on this now Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 18, 2012 at 6:04 PM, Stuart Langley slang...@google.com wrote: What do you think is a bug? When using the dev server all of the APIs are simulated on the local machine. For the null ptr you need to post the stack trace and/or a repro. On Mon, Mar 19, 2012 at 12:02 PM, Vik vik@gmail.com wrote: yes i saw that though I do not see the possible solution for it? Is it a bug in google app engine or cloud storage apis? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 18, 2012 at 2:40 PM, Stuart Langley slang...@google.com wrote: I responded to your question in SO On Sunday, 18 March 2012 16:45:38 UTC+11, vikceo wrote: Hie Can someone help on http://stackoverflow.com/**quest** ions/9755670/storing-**data-to-**google-cloud-storage-** using-**gae-for-javahttp://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/**msg/google-appengine-java/-/** rL6nAxmHFbkJhttps://groups.google.com/d/msg/google-appengine-java/-/rL6nAxmHFbkJ . To post to this group, send email to google-appengine-java@** googlegroups.com google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+**unsubscri...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@** googlegroups.com google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+**unsubscri...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com
Re: [appengine-java] Re: need help on issue in storing to google storage using java apis
yes i saw that though I do not see the possible solution for it? Is it a bug in google app engine or cloud storage apis? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 18, 2012 at 2:40 PM, Stuart Langley slang...@google.com wrote: I responded to your question in SO On Sunday, 18 March 2012 16:45:38 UTC+11, vikceo wrote: Hie Can someone help on http://stackoverflow.com/** questions/9755670/storing-**data-to-google-cloud-storage-** using-gae-for-javahttp://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/rL6nAxmHFbkJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: publishing html files
Hie I tried to run the code as documented locally. Code executes fine but i do not see the object getting created in store. nt sure what is missing and where to debug code i used is: // Get the file service FileService fileService = FileServiceFactory.getFileService(); /** * Set up properties of your new object * After finalizing objects, they are accessible * through Cloud Storage with the URL: * http://commondatastorage.googleapis.com/my_bucket/my_object */ GSFileOptionsBuilder optionsBuilder = new GSFileOptionsBuilder() .setBucket(blood) .setKey(1234567) .setAcl(public-read) .setMimeType(text/html);//.setUserMetadata(date-created, 092011, owner, Jon); // Create your object AppEngineFile writableFile = fileService.createNewGSFile(optionsBuilder.build()); // Open a channel for writing boolean lockForWrite = true; // Do you want to exclusively lock this object? FileWriteChannel writeChannel = fileService.openWriteChannel(writableFile, lockForWrite); // For this example, we write to the object using the PrintWriter PrintWriter out = new PrintWriter(Channels.newWriter(writeChannel, UTF8)); out.println(The woods are lovely and deep.); out.println(But I have promises too keep.); // Close the object without finalizing. out.close(); // Finalize the object writeChannel.closeFinally(); System.out.println(Completed writing to google storage); Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Mar 16, 2012 at 8:19 PM, Jose Montes de Oca jfmontesde...@google.com wrote: You can find a sample code on how to use this Java API on the documentation here: http://code.google.com/appengine/docs/java/googlestorage/overview.html Hope this helps! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/lUkma-x2GjYJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] need help on issue in storing to google storage using java apis
Hie Can someone help on http://stackoverflow.com/questions/9755670/storing-data-to-google-cloud-storage-using-gae-for-java please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: publishing html files
hie Jose Any coded sample for this for google app engine for java? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Mar 2, 2012 at 8:55 PM, Jose Montes de Oca jfmontesde...@google.com wrote: Vik, Working together with cloud storage sounds like a good solution to me. from app engine you can upload the file and define a public acl for the object using our Java API: http://code.google.com/appengine/docs/java/googlestorage/ After the file is uploaded to Google Cloud Storgae, it would be accesible by anyone from an URL with the following structure: https://sandbox.google.com/storage/*bucket*/*object* Best, Jose On Tuesday, February 28, 2012 10:36:50 PM UTC-8, vikceo wrote: any thoughts on google cloud storage? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Feb 28, 2012 at 12:22 AM, Matthew Jaggard matt...@jaggard.org.uk wrote: Have a look at the blobstore documentation, that might help you. However I'd be inclined to mention a naughty word Amazon (ssh!) S3 might be the best way forward. On 28 February 2012 06:32, Vik vik@gmail.com wrote: Any advise on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Feb 26, 2012 at 11:28 AM, Vik vik@gmail.com wrote: Hie I am generated html documents using a google text doc as template (reading it using gdata apis and then doing some text manipulation). Now, I want to publish these documents somewhere so that I can refer to others giving the url of the document (which means it would be publicly accessible). Any suggestions on how do i go about it? Like where should i host these? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@** googlegroups.com google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+** unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@** googlegroups.com google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+** unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/mTLwSMpmcMMJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: publishing html files
hie any advise on this please as answer this question will help us to chose the right option Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 4, 2012 at 12:09 AM, Vik vik@gmail.com wrote: Hie Any code sample for jave for GAE doing this? And pros and cons between using gae blobstore vs cloud storage for java? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Mar 2, 2012 at 8:55 PM, Jose Montes de Oca jfmontesde...@google.com wrote: Vik, Working together with cloud storage sounds like a good solution to me. from app engine you can upload the file and define a public acl for the object using our Java API: http://code.google.com/appengine/docs/java/googlestorage/ After the file is uploaded to Google Cloud Storgae, it would be accesible by anyone from an URL with the following structure: https://sandbox.google.com/storage/*bucket*/*object* Best, Jose On Tuesday, February 28, 2012 10:36:50 PM UTC-8, vikceo wrote: any thoughts on google cloud storage? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Feb 28, 2012 at 12:22 AM, Matthew Jaggard matt...@jaggard.org.uk wrote: Have a look at the blobstore documentation, that might help you. However I'd be inclined to mention a naughty word Amazon (ssh!) S3 might be the best way forward. On 28 February 2012 06:32, Vik vik@gmail.com wrote: Any advise on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Feb 26, 2012 at 11:28 AM, Vik vik@gmail.com wrote: Hie I am generated html documents using a google text doc as template (reading it using gdata apis and then doing some text manipulation). Now, I want to publish these documents somewhere so that I can refer to others giving the url of the document (which means it would be publicly accessible). Any suggestions on how do i go about it? Like where should i host these? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@** googlegroups.com google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+** unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@** googlegroups.com google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+** unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/mTLwSMpmcMMJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: publishing html files
Hie Any code sample for jave for GAE doing this? And pros and cons between using gae blobstore vs cloud storage for java? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Mar 2, 2012 at 8:55 PM, Jose Montes de Oca jfmontesde...@google.com wrote: Vik, Working together with cloud storage sounds like a good solution to me. from app engine you can upload the file and define a public acl for the object using our Java API: http://code.google.com/appengine/docs/java/googlestorage/ After the file is uploaded to Google Cloud Storgae, it would be accesible by anyone from an URL with the following structure: https://sandbox.google.com/storage/*bucket*/*object* Best, Jose On Tuesday, February 28, 2012 10:36:50 PM UTC-8, vikceo wrote: any thoughts on google cloud storage? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Feb 28, 2012 at 12:22 AM, Matthew Jaggard matt...@jaggard.org.uk wrote: Have a look at the blobstore documentation, that might help you. However I'd be inclined to mention a naughty word Amazon (ssh!) S3 might be the best way forward. On 28 February 2012 06:32, Vik vik@gmail.com wrote: Any advise on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Feb 26, 2012 at 11:28 AM, Vik vik@gmail.com wrote: Hie I am generated html documents using a google text doc as template (reading it using gdata apis and then doing some text manipulation). Now, I want to publish these documents somewhere so that I can refer to others giving the url of the document (which means it would be publicly accessible). Any suggestions on how do i go about it? Like where should i host these? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@** googlegroups.com google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+** unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@** googlegroups.com google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+** unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/mTLwSMpmcMMJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: publishing html files
any thoughts on google cloud storage? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Feb 28, 2012 at 12:22 AM, Matthew Jaggard matt...@jaggard.org.ukwrote: Have a look at the blobstore documentation, that might help you. However I'd be inclined to mention a naughty word Amazon (ssh!) S3 might be the best way forward. On 28 February 2012 06:32, Vik vik@gmail.com wrote: Any advise on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Feb 26, 2012 at 11:28 AM, Vik vik@gmail.com wrote: Hie I am generated html documents using a google text doc as template (reading it using gdata apis and then doing some text manipulation). Now, I want to publish these documents somewhere so that I can refer to others giving the url of the document (which means it would be publicly accessible). Any suggestions on how do i go about it? Like where should i host these? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: publishing html files
Any advise on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Feb 26, 2012 at 11:28 AM, Vik vik@gmail.com wrote: Hie I am generated html documents using a google text doc as template (reading it using gdata apis and then doing some text manipulation). Now, I want to publish these documents somewhere so that I can refer to others giving the url of the document (which means it would be publicly accessible). Any suggestions on how do i go about it? Like where should i host these? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] publishing html files
Hie I am generated html documents using a google text doc as template (reading it using gdata apis and then doing some text manipulation). Now, I want to publish these documents somewhere so that I can refer to others giving the url of the document (which means it would be publicly accessible). Any suggestions on how do i go about it? Like where should i host these? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: name cannot be null or empty exception
yup that makes a good sense and seems to be solving my issue. Will update Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Dec 28, 2011 at 1:34 PM, Anton Mochalin anton.mocha...@gmail.comwrote: Seems like the collection ( bloodDonorEmailList ) you create elsewhere in the code and then use in your query contains null. When querying against the primary key you can't use null because it can't be null, obviously. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: name cannot be null or empty exception
anyone on this? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Dec 23, 2011 at 11:56 AM, Vik vik@gmail.com wrote: Hello I have my entity defined as: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class BloodDonorReminderHistory { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private String emailId; @Persistent private Date lastRemindDate; .. } The query I am using is: query = pm.newQuery(BloodDonorReminderHistory.class, :bloodDonorEmailList.contains(emailId) lastRemindDate :lastRemindDate); @SuppressWarnings(unchecked) ListBloodDonorReminderHistory hisList = (ListBloodDonorReminderHistory)query.execute(bloodDonorEmailList, lastRemindDate); And it throws exception as per below. Please advise what could be wrong here and how to resolve: java.lang.IllegalArgumentException: name cannot be null or empty at com.google.appengine.api.datastore.KeyFactory.createKey(KeyFactory.java:70) at com.google.appengine.api.datastore.KeyFactory.createKey(KeyFactory.java:57) at org.datanucleus.store.appengine.query.DatastoreQuery.internalPkToKey(DatastoreQuery.java:1677) at org.datanucleus.store.appengine.query.DatastoreQuery.processPotentialBatchGet(DatastoreQuery.java:1419) at org.datanucleus.store.appengine.query.DatastoreQuery.addLeftPrimaryExpression(DatastoreQuery.java:1315) at org.datanucleus.store.appengine.query.DatastoreQuery.handleContainsOperation(DatastoreQuery.java:1195) at org.datanucleus.store.appengine.query.DatastoreQuery.addExpression(DatastoreQuery.java:1084) at org.datanucleus.store.appengine.query.DatastoreQuery.addExpression(DatastoreQuery.java:1053) at org.datanucleus.store.appengine.query.DatastoreQuery.addFilters(DatastoreQuery.java:1031) at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute(DatastoreQuery.java:238) at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute(JDOQLQuery.java:92) at org.datanucleus.store.query.Query.executeQuery(Query.java:1489) at org.datanucleus.store.query.Query.executeWithArray(Query.java:1371) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:266) at vik.sakshum.sakshumweb.server.BloodDonorAdminServiceImpl.sendBloodDonorVerificationEmail(BloodDonorAdminServiceImpl.java:955) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:104) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:60) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:78) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152
[appengine-java] name cannot be null or empty exception
) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [giannim] [appengine-java] Re: issue with task queue implementation
hi I found the issue. looks like the long emailid list was a problem. to fix it i changed the request from get to post and it worked, Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Dec 19, 2011 at 5:07 AM, Gianni Mariani gmari...@google.com wrote: It appears as if the URL being constructed when the GET request is passed to the task queue system is being rejected. Any chance you can print out the string emailList - I'm curious what is causing the problem. BTW the typo in Invalud will be fixed - remider to self, learn to spell. On Mon, Dec 19, 2011 at 12:24 AM, Vik vik@gmail.com wrote: Well I found the problem in this. It is caused by the param I am passing though not sure if its a bug in GAE. I am passing as: String emailList = emails.substring(0, 51); queue.add(withUrl(/queue/InviteFriendsQueue).param(ids, emailList).method(Method.GET)); emailList is not null and non empty. and it throws SEVERE: Exception class is :java.lang.IllegalArgumentException Dec 18, 2011 1:18:57 PM vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost SEVERE: Exception is :Invalud URL I tried passing a hardcoded value like: queue.add(withUrl(/queue/InviteFriendsQueue).param(ids, vik.ceo@gmail).method(Method.GET)); and this works fine. Please advise. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Dec 18, 2011 at 12:26 AM, Vik vik@gmail.com wrote: Hie From my GAE code I am calling as Queue queue = QueueFactory.getDefaultQueue(); queue.add(withUrl(/vik/sakshum/sakshumweb/server/queue/InviteFriendsQueue).param(ids, emails.substring(beginIndex, i+1)).method(Method.GET)); and i have a servlet defined as: package vik.sakshum.sakshumweb.server.queue; public class InviteFriendsQueue extends HttpServlet{ private static final Logger log = Logger.getLogger(InviteFriendsQueue.class.getName()); public void doGet(HttpServletRequest req, HttpServletResponse resp){ log.info(Start of doPost InviteFriends); String emails = null; if(req.getParameter(ids) != null) emails = (String)req.getParameter(ids); ... } But on running I am getting: 1. Exception in execute of InviteFriends 2. E2011-12-17 10:50:59.647 vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost: Exception class is :java.lang.IllegalArgumentException 3. E2011-12-17 10:50:59.647 vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost: Exception is :Invalud URL : Please advise. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups giannim group. To post to this group, send email to gian...@google.com. To unsubscribe from this group, send email to giannim+unsubscr...@google.com. For more options, visit this group at http://groups.google.com/a/google.com/group/giannim/?hl=en. -- Gianni Mariani Google, Sydney -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: issue with task queue implementation
Well I found the problem in this. It is caused by the param I am passing though not sure if its a bug in GAE. I am passing as: String emailList = emails.substring(0, 51); queue.add(withUrl(/queue/InviteFriendsQueue).param(ids, emailList).method(Method.GET)); emailList is not null and non empty. and it throws SEVERE: Exception class is :java.lang.IllegalArgumentException Dec 18, 2011 1:18:57 PM vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost SEVERE: Exception is :Invalud URL I tried passing a hardcoded value like: queue.add(withUrl(/queue/InviteFriendsQueue).param(ids, vik.ceo@gmail).method(Method.GET)); and this works fine. Please advise. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Dec 18, 2011 at 12:26 AM, Vik vik@gmail.com wrote: Hie From my GAE code I am calling as Queue queue = QueueFactory.getDefaultQueue(); queue.add(withUrl(/vik/sakshum/sakshumweb/server/queue/InviteFriendsQueue).param(ids, emails.substring(beginIndex, i+1)).method(Method.GET)); and i have a servlet defined as: package vik.sakshum.sakshumweb.server.queue; public class InviteFriendsQueue extends HttpServlet{ private static final Logger log = Logger.getLogger(InviteFriendsQueue.class.getName()); public void doGet(HttpServletRequest req, HttpServletResponse resp){ log.info(Start of doPost InviteFriends); String emails = null; if(req.getParameter(ids) != null) emails = (String)req.getParameter(ids); ... } But on running I am getting: 1. Exception in execute of InviteFriends 2. E2011-12-17 10:50:59.647 vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost: Exception class is :java.lang.IllegalArgumentException 3. E2011-12-17 10:50:59.647 vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost: Exception is :Invalud URL : Please advise. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] need advise on processing of imported large number of mails
Hie I am using a third party service to let visitor invite their friends. So, obviously the list could be of any length like say 3000 email ids. As a result the servlet running on app engine dies before it can finish sending emails to all these 3000 emails. What is the suggested way to handle such scenarios? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] need advise on processing of imported large number of mails
can we pass java objects like a java.util.List as params in queue.add( withUrl(/worker).param(key, key)); ? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sat, Dec 17, 2011 at 3:47 PM, Simon Knott knott.si...@gmail.com wrote: Move the processing into the task queue - individual tasks can process for 10 minutes. Cheers, Simon -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/HrudgleNMJUJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] issue with task queue implementation
Hie From my GAE code I am calling as Queue queue = QueueFactory.getDefaultQueue(); queue.add(withUrl(/vik/sakshum/sakshumweb/server/queue/InviteFriendsQueue).param(ids, emails.substring(beginIndex, i+1)).method(Method.GET)); and i have a servlet defined as: package vik.sakshum.sakshumweb.server.queue; public class InviteFriendsQueue extends HttpServlet{ private static final Logger log = Logger.getLogger(InviteFriendsQueue.class.getName()); public void doGet(HttpServletRequest req, HttpServletResponse resp){ log.info(Start of doPost InviteFriends); String emails = null; if(req.getParameter(ids) != null) emails = (String)req.getParameter(ids); ... } But on running I am getting: 1. Exception in execute of InviteFriends 2. E2011-12-17 10:50:59.647 vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost: Exception class is :java.lang.IllegalArgumentException 3. E2011-12-17 10:50:59.647 vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost: Exception is :Invalud URL : Please advise. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] connection time out when uploading simple app with lone html page
Vivek you need to set the proxy settings in your eclipse ide in the preferences. That should fix it. No need to change your appcfg Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Thu, Dec 15, 2011 at 3:21 AM, vivek.nama vivek.n...@gmail.com wrote: I got error when uploading a simple app with a lone html page to the google app - java.net.ConnectException: Connection timed out Since I am behind firewall and proxy and read this post I changed the appcfg but now have new issue - java.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found Post - http://groups.google.com/group/google-appengine-java/browse_thread/thread/f695c92c000616a/e3bfa431adf6a4cf?hide_quotes=no#msg_e3bfa431adf6a4cf Please advise if need trusted certificate locally? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Reading a Google Doc from google app engine code
Hie Any advise on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Nov 30, 2011 at 10:49 PM, Vik vik@gmail.com wrote: I did not try *HWPFDocument* but given code examples on the google site should work as it. Unfortunately following code print some boxes and rough characters. Please suggest as its blocking for us: for (DocumentListEntry entry : resultFeed.getEntries()) { String docId = entry.getDocId(); String docType = entry.getType(); URL exportUrl = new URL(https://docs.google.com/feeds/download/; + docType + s/Export?docID= + docId + exportFormat=doc); MediaContent mc = new MediaContent(); mc.setUri(exportUrl.toString()); MediaSource ms = client.getMedia(mc); InputStream inStream = null; try { inStream = ms.getInputStream(); int c; while ((c = inStream.read()) != -1) { System.out.print((char)c); } } finally { if (inStream != null) { inStream.close(); } } } Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Nov 18, 2011 at 7:59 PM, Amit Pandey amit.s...@gmail.com wrote: I did it before and I used *HWPFDocument. *However it can be read directly (without third party lib). Try other ways to read the string from inputStream (other than CharStreams api). Also try setting different possible character encoding. Let us know if this work. Thanks, Amit On Fri, Nov 18, 2011 at 8:46 AM, Vik vik@gmail.com wrote: hi plz update on this? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Nov 16, 2011 at 7:03 PM, Vik vik@gmail.com wrote: No I did not used that. Do i need that one? I thought no. Please confirm. And it is strange if google api gives me access to get handle to the doc but need third party libraries to read it, Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Nov 14, 2011 at 1:10 PM, Amit Pandey amit.s...@gmail.comwrote: Have you used *org.apache.poi.hwpf.HWPFDocument* API ? Thanks, Amit On Sat, Nov 12, 2011 at 7:04 PM, Vik vik@gmail.com wrote: Hie Amit Thanks however when i read the input stream using: String content = CharStreams.toString(new InputStreamReader(inStream)); It prints all boxed characters rather plain english text. Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Nov 11, 2011 at 5:46 PM, Amit Pandey amit.s...@gmail.comwrote: Mistakenly send wrong code. Here is correct code. On Fri, Nov 11, 2011 at 5:35 PM, Amit Pandey amit.s...@gmail.comwrote: Hi ViK, I did the same before and I use *org.apache.poi.hwpf.HWPFDocument*API. Following code snippet may be useful for you. Let me know if this works. for (DocumentListEntry entry : resultFeed.getEntries()) { String docId = entry.getDocId(); String docType = entry.getType(); URL exportUrl = new URL(https://docs.google.com/feeds/download/; + docType + s/Export?docID= + docId + exportFormat=doc); MediaContent mc = new MediaContent(); mc.setUri(exportUrl.toString()); MediaSource ms = client.getMedia(mc); InputStream inStream = ms.getInputStream(); // Now read the content from input stream. break; } Thanks, Amit On Thu, Nov 10, 2011 at 4:09 PM, Vik vik@gmail.com wrote: Hie Thanks I went through it and could at least get the handle to the google text doc i needed. I am now stuck at how to read the contents. My code looks like: GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters(); oauthParameters.setOAuthConsumerKey(Constants.CONSUMER_KEY); oauthParameters.setOAuthConsumerSecret(Constants.CONSUMER_SECRET); oauthParameters.setOAuthToken(Constants.ACCESS_TOKEN); oauthParameters.setOAuthTokenSecret(Constants.ACCESS_TOKEN_SECRET); DocsService client = new DocsService(sakshum-YourAppName-v1); client.setOAuthCredentials(oauthParameters, new OAuthHmacSha1Signer()); URL feedUrl = new URL( https://docs.google.com/feeds/default/private/full/;); DocumentQuery dquery = new DocumentQuery(feedUrl); dquery.setTitleQuery(blood_donor_verification_template_dev); dquery.setTitleExact(true); dquery.setMaxResults(10); DocumentListFeed resultFeed = client.getFeed(dquery, DocumentListFeed.class); System.out.println(feed size: + resultFeed.getEntries().size()); String emailBody = ; for (DocumentListEntry entry : resultFeed.getEntries()) { System.out.println(entry.getPlainTextContent()); emailBody = entry.getPlainTextContent(); } Plz note that entry.getPlainTextContent() does not work and throws object not TextContent type exception Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Nov 6, 2011 at 10:24 PM, Vik vik@gmail.com wrote: Thanks for replying actually i just googled and could
[appengine-java] Contact importer
Hello Any one can help us on suggesting a contact importer service from various providers like gmail, yahoo etc? We need it as a feature for our non profit 'Sakshum' http://www.sakshum.org based in india working in the field of child disability and education Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] cron job schedule question
Hie I tried to use every 1st,15th day of month 23:59 to run a cron job after every 15th day but this is not correct as app engine fail to parse this. any advise please. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Reading a Google Doc from google app engine code
I did not try *HWPFDocument* but given code examples on the google site should work as it. Unfortunately following code print some boxes and rough characters. Please suggest as its blocking for us: for (DocumentListEntry entry : resultFeed.getEntries()) { String docId = entry.getDocId(); String docType = entry.getType(); URL exportUrl = new URL(https://docs.google.com/feeds/download/; + docType + s/Export?docID= + docId + exportFormat=doc); MediaContent mc = new MediaContent(); mc.setUri(exportUrl.toString()); MediaSource ms = client.getMedia(mc); InputStream inStream = null; try { inStream = ms.getInputStream(); int c; while ((c = inStream.read()) != -1) { System.out.print((char)c); } } finally { if (inStream != null) { inStream.close(); } } } Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Nov 18, 2011 at 7:59 PM, Amit Pandey amit.s...@gmail.com wrote: I did it before and I used *HWPFDocument. *However it can be read directly (without third party lib). Try other ways to read the string from inputStream (other than CharStreams api). Also try setting different possible character encoding. Let us know if this work. Thanks, Amit On Fri, Nov 18, 2011 at 8:46 AM, Vik vik@gmail.com wrote: hi plz update on this? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Nov 16, 2011 at 7:03 PM, Vik vik@gmail.com wrote: No I did not used that. Do i need that one? I thought no. Please confirm. And it is strange if google api gives me access to get handle to the doc but need third party libraries to read it, Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Nov 14, 2011 at 1:10 PM, Amit Pandey amit.s...@gmail.comwrote: Have you used *org.apache.poi.hwpf.HWPFDocument* API ? Thanks, Amit On Sat, Nov 12, 2011 at 7:04 PM, Vik vik@gmail.com wrote: Hie Amit Thanks however when i read the input stream using: String content = CharStreams.toString(new InputStreamReader(inStream)); It prints all boxed characters rather plain english text. Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Nov 11, 2011 at 5:46 PM, Amit Pandey amit.s...@gmail.comwrote: Mistakenly send wrong code. Here is correct code. On Fri, Nov 11, 2011 at 5:35 PM, Amit Pandey amit.s...@gmail.comwrote: Hi ViK, I did the same before and I use *org.apache.poi.hwpf.HWPFDocument*API. Following code snippet may be useful for you. Let me know if this works. for (DocumentListEntry entry : resultFeed.getEntries()) { String docId = entry.getDocId(); String docType = entry.getType(); URL exportUrl = new URL(https://docs.google.com/feeds/download/; + docType + s/Export?docID= + docId + exportFormat=doc); MediaContent mc = new MediaContent(); mc.setUri(exportUrl.toString()); MediaSource ms = client.getMedia(mc); InputStream inStream = ms.getInputStream(); // Now read the content from input stream. break; } Thanks, Amit On Thu, Nov 10, 2011 at 4:09 PM, Vik vik@gmail.com wrote: Hie Thanks I went through it and could at least get the handle to the google text doc i needed. I am now stuck at how to read the contents. My code looks like: GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters(); oauthParameters.setOAuthConsumerKey(Constants.CONSUMER_KEY); oauthParameters.setOAuthConsumerSecret(Constants.CONSUMER_SECRET); oauthParameters.setOAuthToken(Constants.ACCESS_TOKEN); oauthParameters.setOAuthTokenSecret(Constants.ACCESS_TOKEN_SECRET); DocsService client = new DocsService(sakshum-YourAppName-v1); client.setOAuthCredentials(oauthParameters, new OAuthHmacSha1Signer()); URL feedUrl = new URL( https://docs.google.com/feeds/default/private/full/;); DocumentQuery dquery = new DocumentQuery(feedUrl); dquery.setTitleQuery(blood_donor_verification_template_dev); dquery.setTitleExact(true); dquery.setMaxResults(10); DocumentListFeed resultFeed = client.getFeed(dquery, DocumentListFeed.class); System.out.println(feed size: + resultFeed.getEntries().size()); String emailBody = ; for (DocumentListEntry entry : resultFeed.getEntries()) { System.out.println(entry.getPlainTextContent()); emailBody = entry.getPlainTextContent(); } Plz note that entry.getPlainTextContent() does not work and throws object not TextContent type exception Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Nov 6, 2011 at 10:24 PM, Vik vik@gmail.com wrote: Thanks for replying actually i just googled and could not really find matching to my needs. thanks for the pointer this should be helpful. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Nov 4, 2011 at 12:01 AM, Ikai Lan
[appengine-java] email limit on free accounts
I feel that 100 emails is pretty low limit on free accounts. Any plans to enhance it a bit ? At least 500 mails per day? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] exception in 1.60 and unable to run the app
(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100) at javax.jdo.JDOHelper$16.run(JDOHelper.java:1956) at java.security.AccessController.doPrivileged(Native Method) at javax.jdo.JDOHelper.invoke(JDOHelper.java:1951) at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1159) ... 46 more Caused by: java.lang.NoSuchMethodError: com.google.appengine.api.datastore.TransactionOptions$Builder.withXG(Z)Lcom/google/appengine/api/datastore/TransactionOptions; at org.datanucleus.store.appengine.DatastoreManager.createDatastoreTransactionOptionsPrototype(DatastoreManager.java:271) at org.datanucleus.store.appengine.DatastoreManager.init(DatastoreManager.java:219) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(Runtime.java:112) at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Runtime.java:120) at org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:572) at org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:300) at org.datanucleus.store.FederationManager.initialiseStoreManager(FederationManager.java:168) at org.datanucleus.store.FederationManager.init(FederationManager.java:70) at org.datanucleus.ObjectManagerFactoryImpl.initialiseStoreManager(ObjectManagerFactoryImpl.java:153) at org.datanucleus.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:526) at org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory.getPersistenceManagerFactory(DatastoreJDOPersistenceManagerFactory.java:127) Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Reading a Google Doc from google app engine code
hi plz update on this? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Nov 16, 2011 at 7:03 PM, Vik vik@gmail.com wrote: No I did not used that. Do i need that one? I thought no. Please confirm. And it is strange if google api gives me access to get handle to the doc but need third party libraries to read it, Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Nov 14, 2011 at 1:10 PM, Amit Pandey amit.s...@gmail.com wrote: Have you used *org.apache.poi.hwpf.HWPFDocument* API ? Thanks, Amit On Sat, Nov 12, 2011 at 7:04 PM, Vik vik@gmail.com wrote: Hie Amit Thanks however when i read the input stream using: String content = CharStreams.toString(new InputStreamReader(inStream)); It prints all boxed characters rather plain english text. Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Nov 11, 2011 at 5:46 PM, Amit Pandey amit.s...@gmail.comwrote: Mistakenly send wrong code. Here is correct code. On Fri, Nov 11, 2011 at 5:35 PM, Amit Pandey amit.s...@gmail.comwrote: Hi ViK, I did the same before and I use *org.apache.poi.hwpf.HWPFDocument*API. Following code snippet may be useful for you. Let me know if this works. for (DocumentListEntry entry : resultFeed.getEntries()) { String docId = entry.getDocId(); String docType = entry.getType(); URL exportUrl = new URL(https://docs.google.com/feeds/download/; + docType + s/Export?docID= + docId + exportFormat=doc); MediaContent mc = new MediaContent(); mc.setUri(exportUrl.toString()); MediaSource ms = client.getMedia(mc); InputStream inStream = ms.getInputStream(); // Now read the content from input stream. break; } Thanks, Amit On Thu, Nov 10, 2011 at 4:09 PM, Vik vik@gmail.com wrote: Hie Thanks I went through it and could at least get the handle to the google text doc i needed. I am now stuck at how to read the contents. My code looks like: GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters(); oauthParameters.setOAuthConsumerKey(Constants.CONSUMER_KEY); oauthParameters.setOAuthConsumerSecret(Constants.CONSUMER_SECRET); oauthParameters.setOAuthToken(Constants.ACCESS_TOKEN); oauthParameters.setOAuthTokenSecret(Constants.ACCESS_TOKEN_SECRET); DocsService client = new DocsService(sakshum-YourAppName-v1); client.setOAuthCredentials(oauthParameters, new OAuthHmacSha1Signer()); URL feedUrl = new URL( https://docs.google.com/feeds/default/private/full/;); DocumentQuery dquery = new DocumentQuery(feedUrl); dquery.setTitleQuery(blood_donor_verification_template_dev); dquery.setTitleExact(true); dquery.setMaxResults(10); DocumentListFeed resultFeed = client.getFeed(dquery, DocumentListFeed.class); System.out.println(feed size: + resultFeed.getEntries().size()); String emailBody = ; for (DocumentListEntry entry : resultFeed.getEntries()) { System.out.println(entry.getPlainTextContent()); emailBody = entry.getPlainTextContent(); } Plz note that entry.getPlainTextContent() does not work and throws object not TextContent type exception Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Nov 6, 2011 at 10:24 PM, Vik vik@gmail.com wrote: Thanks for replying actually i just googled and could not really find matching to my needs. thanks for the pointer this should be helpful. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Nov 4, 2011 at 12:01 AM, Ikai Lan (Google) ika...@google.com wrote: Have you read this? What are your thoughts? What have you tried? http://code.google.com/apis/documents/ Vik, your posts would be a lot more useful if you: 1. List what you have tried 2. Describe what didn't work 3. Describe what it is you are trying to do I like the fact that you keep emails short, but I suspect other people on this list have tuned you out because you're just not providing enough information when you ask for help and it's too much detective work for people who would actually help out otherwise. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Nov 3, 2011 at 10:42 AM, Vik vik@gmail.com wrote: someone please help on this. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Oct 31, 2011 at 7:11 PM, Vik vik@gmail.com wrote: Hie Can someone please guide on how to read a google doc from my gae code? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java
Re: [appengine-java] Re: Reading a Google Doc from google app engine code
Hie Amit Thanks however when i read the input stream using: String content = CharStreams.toString(new InputStreamReader(inStream)); It prints all boxed characters rather plain english text. Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Nov 11, 2011 at 5:46 PM, Amit Pandey amit.s...@gmail.com wrote: Mistakenly send wrong code. Here is correct code. On Fri, Nov 11, 2011 at 5:35 PM, Amit Pandey amit.s...@gmail.com wrote: Hi ViK, I did the same before and I use *org.apache.poi.hwpf.HWPFDocument* API. Following code snippet may be useful for you. Let me know if this works. for (DocumentListEntry entry : resultFeed.getEntries()) { String docId = entry.getDocId(); String docType = entry.getType(); URL exportUrl = new URL(https://docs.google.com/feeds/download/; + docType + s/Export?docID= + docId + exportFormat=doc); MediaContent mc = new MediaContent(); mc.setUri(exportUrl.toString()); MediaSource ms = client.getMedia(mc); InputStream inStream = ms.getInputStream(); // Now read the content from input stream. break; } Thanks, Amit On Thu, Nov 10, 2011 at 4:09 PM, Vik vik@gmail.com wrote: Hie Thanks I went through it and could at least get the handle to the google text doc i needed. I am now stuck at how to read the contents. My code looks like: GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters(); oauthParameters.setOAuthConsumerKey(Constants.CONSUMER_KEY); oauthParameters.setOAuthConsumerSecret(Constants.CONSUMER_SECRET); oauthParameters.setOAuthToken(Constants.ACCESS_TOKEN); oauthParameters.setOAuthTokenSecret(Constants.ACCESS_TOKEN_SECRET); DocsService client = new DocsService(sakshum-YourAppName-v1); client.setOAuthCredentials(oauthParameters, new OAuthHmacSha1Signer()); URL feedUrl = new URL( https://docs.google.com/feeds/default/private/full/;); DocumentQuery dquery = new DocumentQuery(feedUrl); dquery.setTitleQuery(blood_donor_verification_template_dev); dquery.setTitleExact(true); dquery.setMaxResults(10); DocumentListFeed resultFeed = client.getFeed(dquery, DocumentListFeed.class); System.out.println(feed size: + resultFeed.getEntries().size()); String emailBody = ; for (DocumentListEntry entry : resultFeed.getEntries()) { System.out.println(entry.getPlainTextContent()); emailBody = entry.getPlainTextContent(); } Plz note that entry.getPlainTextContent() does not work and throws object not TextContent type exception Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Nov 6, 2011 at 10:24 PM, Vik vik@gmail.com wrote: Thanks for replying actually i just googled and could not really find matching to my needs. thanks for the pointer this should be helpful. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Nov 4, 2011 at 12:01 AM, Ikai Lan (Google) ika...@google.comwrote: Have you read this? What are your thoughts? What have you tried? http://code.google.com/apis/documents/ Vik, your posts would be a lot more useful if you: 1. List what you have tried 2. Describe what didn't work 3. Describe what it is you are trying to do I like the fact that you keep emails short, but I suspect other people on this list have tuned you out because you're just not providing enough information when you ask for help and it's too much detective work for people who would actually help out otherwise. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Nov 3, 2011 at 10:42 AM, Vik vik@gmail.com wrote: someone please help on this. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Oct 31, 2011 at 7:11 PM, Vik vik@gmail.com wrote: Hie Can someone please guide on how to read a google doc from my gae code? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email
Re: [appengine-java] Re: Reading a Google Doc from google app engine code
Hie Thanks I went through it and could at least get the handle to the google text doc i needed. I am now stuck at how to read the contents. My code looks like: GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters(); oauthParameters.setOAuthConsumerKey(Constants.CONSUMER_KEY); oauthParameters.setOAuthConsumerSecret(Constants.CONSUMER_SECRET); oauthParameters.setOAuthToken(Constants.ACCESS_TOKEN); oauthParameters.setOAuthTokenSecret(Constants.ACCESS_TOKEN_SECRET); DocsService client = new DocsService(sakshum-YourAppName-v1); client.setOAuthCredentials(oauthParameters, new OAuthHmacSha1Signer()); URL feedUrl = new URL(https://docs.google.com/feeds/default/private/full/;); DocumentQuery dquery = new DocumentQuery(feedUrl); dquery.setTitleQuery(blood_donor_verification_template_dev); dquery.setTitleExact(true); dquery.setMaxResults(10); DocumentListFeed resultFeed = client.getFeed(dquery, DocumentListFeed.class); System.out.println(feed size: + resultFeed.getEntries().size()); String emailBody = ; for (DocumentListEntry entry : resultFeed.getEntries()) { System.out.println(entry.getPlainTextContent()); emailBody = entry.getPlainTextContent(); } Plz note that entry.getPlainTextContent() does not work and throws object not TextContent type exception Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Nov 6, 2011 at 10:24 PM, Vik vik@gmail.com wrote: Thanks for replying actually i just googled and could not really find matching to my needs. thanks for the pointer this should be helpful. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Nov 4, 2011 at 12:01 AM, Ikai Lan (Google) ika...@google.comwrote: Have you read this? What are your thoughts? What have you tried? http://code.google.com/apis/documents/ Vik, your posts would be a lot more useful if you: 1. List what you have tried 2. Describe what didn't work 3. Describe what it is you are trying to do I like the fact that you keep emails short, but I suspect other people on this list have tuned you out because you're just not providing enough information when you ask for help and it's too much detective work for people who would actually help out otherwise. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Nov 3, 2011 at 10:42 AM, Vik vik@gmail.com wrote: someone please help on this. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Oct 31, 2011 at 7:11 PM, Vik vik@gmail.com wrote: Hie Can someone please guide on how to read a google doc from my gae code? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Reading a Google Doc from google app engine code
someone please help on this. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Oct 31, 2011 at 7:11 PM, Vik vik@gmail.com wrote: Hie Can someone please guide on how to read a google doc from my gae code? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Reading a Google Doc from google app engine code
Hie Can someone please guide on how to read a google doc from my gae code? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Calling app script published as service
Hello Thorough my app engine code i want to invoke a Google App Script published as a service. I would need to pass couple of parameters to this service. Can someone please advise me on how to do the calling part? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Calling app script from app engine
Hie I have a google app script which I want to invoke from google app engine for java. Can someone please guide on how to invoke such script? I tried to google and i found lot of information on how to do the reverse. Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[google-appengine] Re: 500 response codes
Nah. My code did not run. Defect opened - Issue 6026 Thanks, Vikram On Oct 3, 9:43 am, Alexander Konovalenko alex...@gmail.com wrote: I got a 500Internal Server Error response code from App Engine with the following description in one of the WARNING prints (I saw this in the myApp/dashboard/logs). Request was aborted after waiting too long to attempt to service your request. This may happen sporadically when the App Engine serving cluster is under unexpectedly high or uneven load. If you see this message frequently, please contact the App Engine team. Hi Vikram, Did your code run at all during this request? I'm trying to understand whether it was a DeadlineExceededError (or its Java equivalent) or your code even didn't have a chance to run. Alexander -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] 500 response codes
Hello, I got a 500 Internal Server Error response code from App Engine with the following description in one of the WARNING prints (I saw this in the myApp/dashboard/logs). Request was aborted after waiting too long to attempt to service your request. This may happen sporadically when the App Engine serving cluster is under unexpectedly high or uneven load. If you see this message frequently, please contact the App Engine team. With such a description I believe I should get a 503 Service Unavailable instead of 500 Internal Server Error. Getting a 503 will at least hint the client to retry after a short duration which is the correct behavior. In this case, I got a 500 and hence did not retry. Am I missing something? Regards, Vikram -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[appengine-java] Writing to google spreadsheet from GAE
Hie I wanted to know if it is possible to write to a google spreadsheet from our app running on app engine? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: sending pdf
i have tried iText as well but it doesnt work in GAE. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sat, Sep 10, 2011 at 1:05 PM, Jean-Marc Truillet jm.truil...@gmail.comwrote: Thanks for the info. I was about to use iText, but without guarantee it works in GAE context. JM On 9 sep, 23:52, Francois Masurel f.masu...@gmail.com wrote: Hi Vik, I'm using PDFJet to generate simple PDFs on GAE/Java. Francois -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: sending pdf
anyone on this? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Sep 5, 2011 at 6:23 PM, Vik vik@gmail.com wrote: Hie Has anyone successful in creating a pdf on the fly and email it on GAE ? I tried previously suggested solutions but nothing works. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] sending pdf
Hie Has anyone successful in creating a pdf on the fly and email it on GAE ? I tried previously suggested solutions but nothing works. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: sitemap.xml and urllist.txt
Thanks for the tip. The issue was not with web.xml but with appengine-web.xml . Actually .txt and .xml were not in my static resource list so app-engine was simply restricting it. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Aug 22, 2011 at 11:40 PM, Ikai Lan (Google) ika...@google.comwrote: Vik, it probably has something to with your web.xml file. On a related note, are you at all interested in GAE consulting? It sounds like you're carrying a lot of weight on your own shoulders, and there are plenty of experts in this forum that wouldn't mind taking on an additional contract! -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Aug 22, 2011 at 6:52 AM, Vik vik@gmail.com wrote: any help on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Aug 10, 2011 at 12:31 PM, Vik vik@gmail.com wrote: Hie I have sitemap.xml and urllist.txt files in my web root folder of my gwt+gae app. However, on deploying these files are still not accessible. I can see other files at the same place like sitemap.html is accessible. Any advise why this is happening? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: sitemap.xml and urllist.txt
any help on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Aug 10, 2011 at 12:31 PM, Vik vik@gmail.com wrote: Hie I have sitemap.xml and urllist.txt files in my web root folder of my gwt+gae app. However, on deploying these files are still not accessible. I can see other files at the same place like sitemap.html is accessible. Any advise why this is happening? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: sitemap.xml and urllist.txt
Right This is our non profit organization(http://www.sakshum.org) working for educating the children from slums and building a blood donor network across India. At this moment I am the only developer building the entire system and had privilege of a volunteer tester for some of the time. As soon as the word non-profit appears the first thing gets associated with it is cost. And that's what we dont have now to afford a consultant or developer. So, I am trying to sail the boat as long as I can and until i find some volunteers willing to help me out. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Aug 22, 2011 at 11:40 PM, Ikai Lan (Google) ika...@google.comwrote: Vik, it probably has something to with your web.xml file. On a related note, are you at all interested in GAE consulting? It sounds like you're carrying a lot of weight on your own shoulders, and there are plenty of experts in this forum that wouldn't mind taking on an additional contract! -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Aug 22, 2011 at 6:52 AM, Vik vik@gmail.com wrote: any help on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Aug 10, 2011 at 12:31 PM, Vik vik@gmail.com wrote: Hie I have sitemap.xml and urllist.txt files in my web root folder of my gwt+gae app. However, on deploying these files are still not accessible. I can see other files at the same place like sitemap.html is accessible. Any advise why this is happening? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] deployment fails due to compilation
boolean isPartiallyNormalized() [unresolved] public final boolean isSet(int) [unresolved] private void readObject(Unresolved type java.io.ObjectInputStream) throws java.io.IOException, Unresolved type java.lang.ClassNotFoundException [unresolved] public abstract void roll(int, boolean) [unresolved] public void roll(int, int) [unresolved] final int selectFields() [unresolved] public void set(int, int) [unresolved] public final void set(int, int, int) [unresolved] public final void set(int, int, int, int, int) [unresolved] public final void set(int, int, int, int, int, int) [unresolved] final void setFieldsComputed(int) [unresolved] final void setFieldsNormalized(int) [unresolved] public void setFirstDayOfWeek(int) [unresolved] public void setLenient(boolean) [unresolved] public void setMinimalDaysInFirstWeek(int) public final void setTime(java.util.Date) [unresolved] public void setTimeInMillis(long) [unresolved] public void setTimeZone(Unresolved type java.util.TimeZone) [unresolved] final void setUnnormalized() [unresolved] private void setWeekCountData(Unresolved type java.util.Locale) [unresolved] void setZoneShared(boolean) [unresolved] public java.lang.String toString() [unresolved] private void updateTime() [unresolved] private void writeObject(Unresolved type java.io.ObjectOutputStream) throws java.io.IOException /* members */ Unresolved type java.util.Calendar$CalendarAccessControlContext org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding [ERROR] at ConfigureCreateAdSetup.java(239): Calendar cal = Calendar.getInstance(); org.eclipse.jdt.internal.compiler.ast.LocalDeclaration Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: date comparison fails
thanks a lot this was the issue. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Aug 17, 2011 at 1:41 PM, Simon Knott knott.si...@gmail.com wrote: Hi, Have you tried the following on the Calendar object? today.set(Calendar.MILLISECOND, 0); Cheers, Simon -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/oG36DE_uv6wJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: date comparison fails
Hie This has become blocking for us. Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Aug 14, 2011 at 5:46 PM, Vik vik@gmail.com wrote: Does not work for me Not sure why it fails . I even tried: Query query = pm.newQuery(AdUsage.class); query.setFilter(smsUseDate = smsUseDateParam smsUseDate = smsUseDateParam + vendorSeq == vendorSeqParam); query.declareParameters(java.util.Date smsUseDateParam, Long vendorSeqParam); @SuppressWarnings(unchecked) ListAdUsage usageList = (ListAdUsage)query.execute(today, chosenVendorSeq); and it fails to match the record. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Aug 12, 2011 at 10:16 AM, suchitra nair suchitradae...@gmail.comwrote: hey .. check out the following link.. M not sure but i guess in gae we can have more than 1 inequality operators on a single property. So as suggested in the following link, u cn chk for = and also add = on ur date field and the result should give records with date '=' to that of ur date value .. Just a suggestion. M new to gae too .. hope this helps ... regards suchitra http://stackoverflow.com/questions/3600779/google-app-engine-jdo-use-date-in-filter On Fri, Aug 12, 2011 at 8:18 AM, Vik vik@gmail.com wrote: any help on this plz? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Aug 9, 2011 at 8:51 PM, Vik vik@gmail.com wrote: Hie I am trying to execute following query: Query query = pm.newQuery(AdUsage.class, smsUseDate == :smsUseDate + vendorSeq == :vendorSeq); ListAdUsage usageList = (ListAdUsage)query.execute(today, chosenVendorSeq); the vendorSeq is matching and the passed date is: Tue Aug 09 00:00:00 UTC 2011 In AdUsage table i have value for: Tue Aug 09 00:00:00 UTC 2011 but it fails to match. any clues why? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: date comparison fails
Hie This is happening on my development server. I have not created any indexes at all. My local index files has an entry relevant to this (generated automaticaly) as: datastore-index kind=AdUsage ancestor=false source=auto property name=vendorSeq direction=asc/ property name=smsUseDate direction=asc/ /datastore-index I have not explicitly turned off property indexes Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Aug 17, 2011 at 9:56 AM, Simon Knott knott.si...@gmail.com wrote: A few questions: - Is this happening on your development or production server? - Have you created any custom indexes? - Also, have you turned off property indexes at all? Cheers, Simon -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/IxEeeJoYuSQJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: date comparison fails
Hie Here is the class: public class AdUsage { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long adUsageId; @Persistent private Long vendorSeq; @Persistent private Long smsUsed; @Persistent private Date smsUseDate; public AdUsage(Long vendorSeq, Long smsUsed){ this.vendorSeq = vendorSeq; this.smsUsed = smsUsed; Calendar cal = Calendar.getInstance(); cal.setTime(new Date()); cal.set(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DATE), 0, 0, 0); this.smsUseDate = cal.getTime(); } //removed getter setters to save space } Code to set today variable: Date today = new Date(); Calendar cal = Calendar.getInstance(); cal.setTime(today); cal.set(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DATE), 0, 0, 0); today = cal.getTime(); Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Aug 17, 2011 at 10:33 AM, Simon Knott knott.si...@gmail.com wrote: Can you post your Entity class, with annotations, and the code for setting up the today variable in the query? My only guess at the moment is that the millisecond component of the date is not equal. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/15A6BS6YfD4J. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: date comparison fails
Assuming it may differ and causing the issues then what is the right way to do this? I dont see set millisec component to 0 in calendar or date object Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Aug 17, 2011 at 11:10 AM, Simon Knott knott.si...@gmail.com wrote: Hmm, can you please check the milliseconds components of both the stored object and your query object. You're resetting all properties of the time apart from the milliseconds bit! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/l0GOxIMTmKoJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.