Yup, it's a bug.  Would you mind filing it in the issue tracker?  I'll get
it sorted out for the next release.

Thanks,
Max

On Wed, Dec 16, 2009 at 9:34 AM, Max Ross (Google) <
[email protected] <maxr%[email protected]>> wrote:

> Interesting, let me take a look.
>
>
> On Tue, Dec 15, 2009 at 6:47 PM, Millisecond <[email protected]>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)" 
>> <[email protected]<maxr%[email protected]>
>> >
>> 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 <[email protected]>
>> 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
>> > > [email protected].
>> > > To unsubscribe from this group, send email to
>> > > [email protected]<google-appengine-java%[email protected]>
>> <google-appengine-java%[email protected]<google-appengine-java%[email protected]>
>> >
>> > > .
>> > > 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
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<google-appengine-java%[email protected]>
>> .
>> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to