On Fri, Jun 21, 2013 at 4:46 PM, wrote: > hello everyone, > would you please help me answering this question i'd like to make a > crawler to crawl news from news sites and make some processing on these > data the problem is that the crawler doesn't work and i have no idea why it > doesn't full details in the provided link i'll be grateful if you could > help me, thanks for your time > > http://stackoverflow.com/questions/17236209/cannot- > insert-entities-to-google-app-engine-datastore-from-a-thread-running-on-a > >
A number of things: 1. It's difficult to help when you didn't post the source code to "Yum .java". If you don't want to post the source code to that file, you can always provide a simplified test case (in fact, that's a good idea in general). 2. I don't see a run() method defined in either Crawler.java or its subclass in Yum, did you define that or not? I see that you're creating a Thread and then calling Thread.start() in CrawlerServlet, but there is no run() method for start() to start. 3. I see a reference to this.newsDate but you didn't post the code that initializes that variable; if it is currently storing the wrong date it could be blocking the code. 4. I see you use System.exit(). That method is blocked in the App Engine sandbox (see https://developers.google.com/appengine/docs/java/?hl=en#The_Sandbox and scroll down to the section about java.lang.System) 5. If you don't see any logs, try changing the default logging level to INFO and see if anything gets printed out. And surround everything in a try/catch clause. ----------------- -Vinny P Technology & Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
