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> > . > 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.