Interesting, let me take a look. On Tue, Dec 15, 2009 at 6:47 PM, Millisecond <millisec...@gmail.com> wrote:
> It's in a normal doGet method of a servlet. > > Re-enabled it to double-check that I was failing on the version in > doGet (originally I had it in an init() method) and ran into something > that may be the cause. > > If I request the servlet from http://localhost:8080/ it fails, the > same servlet also responds to http://localhost:8080/Index and there it > works fine. > > I can't see anything in my code making it fail from the "bare" URL, > but there is a fair amount going on in that servlet. I was just doing > it there for expediency while testing, can't see any good reason to > enqueue something from / anyway so should be fine. > > Thanks, > -C > > > > On Dec 15, 6:26 pm, "Max Ross (Google)" > <maxr+appeng...@google.com<maxr%2bappeng...@google.com> > > > wrote: > > Where is your code that adds the task to the queue? Is it being run > during > > server initializaiton, perhaps as part of a static block or a > LoadOnStartup > > servlet? > > > > Thanks, > > Max > > > > On Tue, Dec 15, 2009 at 8:27 AM, Millisecond <millisec...@gmail.com> > wrote: > > > Hello, > > > > > I'm just testing out super basic TaskQueue stuff in the dev > > > environment and running into an exception I just can't seem to shake. > > > > > Code: > > > > > Queue queue = QueueFactory.getQueue("mail-queue"); > > > queue.add(url("/api/RunMonitor")); > > > > > Exception: > > > > > java.lang.IllegalArgumentException: Host name may not be null > > > at org.apache.commons.httpclient.HttpHost.<init>(Unknown Source) > > > at org.apache.commons.httpclient.HttpHost.<init>(Unknown Source) > > > at org.apache.commons.httpclient.HttpMethodBase.setURI(Unknown > > > Source) > > > at org.apache.commons.httpclient.HttpMethodBase.<init>(Unknown > > > Source) > > > at > org.apache.commons.httpclient.methods.ExpectContinueMethod.<init> > > > (Unknown Source) > > > at > > > org.apache.commons.httpclient.methods.EntityEnclosingMethod.<init> > > > (Unknown Source) > > > at > org.apache.commons.httpclient.methods.PostMethod.<init>(Unknown > > > Source) > > > at com.google.appengine.api.urlfetch.dev.LocalURLFetchService > > > $RedirectablePostMethod.<init>(LocalURLFetchService.java:348) > > > at com.google.appengine.api.urlfetch.dev.LocalURLFetchService > > > $4.buildMethod(LocalURLFetchService.java:95) > > > > > I've tried this about half a dozen ways, starting with different -- > > > address parameters thinking something wasn't picking up right on the > > > default 0.0.0.0 argument and on 1.2.8 and 1.3 versions. > > > > > The same code works fine if I publish to to production and run it > > > there. > > > > > My environment: > > > -OSX > > > -IntelliJ w/plugin > > > -JDK1.6 > > > > > Thanks! > > > -Millisecond > > > > > -- > > > > > 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-j...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com> > <google-appengine-java%2bunsubscr...@googlegroups.com<google-appengine-java%252bunsubscr...@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-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@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-j...@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.