[appengine-java] How much time should it take to upload(deploy) a new version of an application?
Hi, It takes me around 2 hours or so to deploy my simple application with 5 jsp s and 2 Java files. Is this normal? Should it take this much time to deploy? I have 128kbps internet connection. I tried with appcfg.sh as well as Eclipse plugin. Pasting my console: sprad...@spradeep-laptop:~/eclipse_goog/plugins/ com.google.appengine.eclipse.sdkbundle_1.2.6.v200910130758/appengine- java-sdk-1.2.6/bin$ ./appcfg.sh update /home/spradeep/app/war Reading application configuration data... Beginning server interaction for app-pradeep... 0% Creating staging directory 5% Scanning for jsp files. 8% Compiling jsp files. 11% Compiling java files. 20% Scanning files on local disk. 25% Initiating update. 28% Cloning 3 static files. 31% Cloning 41 application files. 40% Uploading 13 files. <<<<<<<>>>>>> Uploaded 3 files <<<<<<<>>>>>> etc Thanks! --~--~-~--~~~---~--~~ 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: How much time should it take to upload(deploy) a new version of an application?
Hi Jason. Thanks for the reply. But, this is still a problem to me. In my home network, I am behind a router which might be blocking incoming connections to any unauthorized ports. Will this be a problem? I am able to upload files normally to any other site(gmail,etc). How does this update/deploy work? Any articles available on this, so that I can debug? Thanks, Pradeep. On Oct 20, 11:42 pm, "Jason (Google)" wrote: > That is definitely unusual, even over a slow connection. In general, it > takes me 10-20 seconds or so depending on the number of modified files > (using broadband). I haven't heard of any similar issues from other > developers -- are you sure it's not your network connection/proxy? Can you > try re-deploying from another network to see if it's any better? > - Jason > > > > On Sun, Oct 18, 2009 at 11:19 AM, pradeep wrote: > > > Hi, > > It takes me around 2 hours or so to deploy my simple application > > with 5 jsp s and 2 Java files. Is this normal? Should it take this > > much time to deploy? I have 128kbps internet connection. > > > I tried with appcfg.sh as well as Eclipse plugin. > > > Pasting my console: > > > sprad...@spradeep-laptop:~/eclipse_goog/plugins/ > > com.google.appengine.eclipse.sdkbundle_1.2.6.v200910130758/appengine- > > java-sdk-1.2.6/bin$ ./appcfg.sh update /home/spradeep/app/war > > Reading application configuration data... > > Beginning server interaction for app-pradeep... > > 0% Creating staging directory > > 5% Scanning for jsp files. > > 8% Compiling jsp files. > > 11% Compiling java files. > > 20% Scanning files on local disk. > > 25% Initiating update. > > 28% Cloning 3 static files. > > 31% Cloning 41 application files. > > 40% Uploading 13 files. > > <<<<<<< > monitor.>>>>>>> > > Uploaded 3 files > > <<<<<<< > monitor.>>>>>>> > > etc > > > Thanks! --~--~-~--~~~---~--~~ 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] getInputStream.read() returns -1 always
Hello all, I am using the request.getInputStream().read() and the return value is always -1. Here is my code public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException { resp.getWriter().println(req.getInputStream().read()); resp.getWriter().println(req.getParameter("name")); } I am getting -1 for the first print but I am able to get the post parameter for the second. Can someone help me in solving this Issue ? Thanks, Pradeep. -- 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] JPA Error : When tried to use the type Key or encoded String
Hi Everyone , I am getting an error when tried to persist my class using the JPA. I am about to persist my child model . here is the snippet that generates the error, @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true") private String personId; I have tried key as well, @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key personaId; I am getting the following error when tried to persist the object of the above class. Invalid Key PB: no elements. Caused by: java.lang.IllegalArgumentException: Invalid Key PB: no elements. at com.google.appengine.api.datastore.KeyTranslator.createFromPb(KeyTranslator.java: 26) at com.google.appengine.api.datastore.KeyFactory.stringToKey(KeyFactory.java: 197) Can anyone kindly help me to get out of this problem ? Thanks, Pradeep. -- 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.