Re: [giannim] [appengine-java] Re: issue with task queue implementation

2011-12-19 Thread Vik
hi

I found the issue. looks like the long emailid list was a problem.  to fix
it i changed the request from get to post and it worked,
Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org


On Mon, Dec 19, 2011 at 5:07 AM, Gianni Mariani  wrote:

>
> It appears as if the URL being constructed when the GET request is passed
> to the task queue system is being rejected.
>
> Any chance you can print out the string "emailList" - I'm curious what is
> causing the problem.
>
> BTW the typo in Invalud will be fixed - remider to self, learn to spell.
>
> On Mon, Dec 19, 2011 at 12:24 AM, Vik  wrote:
>
>> Well I found the problem in this. It is caused by the param I am passing
>> though not sure if its a bug in GAE.
>>
>> I am passing as:
>>  String emailList = emails.substring(0, 51);
>> queue.add(withUrl("/queue/InviteFriendsQueue").param("ids",
>> emailList).method(Method.GET));
>>
>> emailList is not null and non empty.
>>
>> and it throws
>> SEVERE: Exception class is :java.lang.IllegalArgumentException
>> Dec 18, 2011 1:18:57 PM
>> vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost
>> SEVERE: Exception is :Invalud URL
>>
>> I tried passing a hardcoded value like:
>> queue.add(withUrl("/queue/InviteFriendsQueue").param("ids", 
>> "vik.ceo@gmail").method(Method.GET));
>>
>>
>> and this works fine.  Please advise.
>>
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> http://www.sakshum.org
>> http://blog.sakshum.org
>>
>>
>> On Sun, Dec 18, 2011 at 12:26 AM, Vik  wrote:
>>
>>> Hie
>>>
>>> From my GAE code I am calling as
>>>
>>> Queue queue = QueueFactory.getDefaultQueue();
>>> queue.add(withUrl("/vik/sakshum/sakshumweb/server/queue/InviteFriendsQueue").param("ids",
>>> emails.substring(beginIndex, i+1)).method(Method.GET));
>>>
>>>
>>> and i have a servlet defined as:
>>>
>>> package vik.sakshum.sakshumweb.server.queue;
>>> public class InviteFriendsQueue extends HttpServlet{
>>>
>>>  private static final Logger log =
>>> Logger.getLogger(InviteFriendsQueue.class.getName());
>>>  public void doGet(HttpServletRequest req,
>>>  HttpServletResponse resp){
>>> log.info("Start of doPost InviteFriends");
>>>  String emails = null;
>>> if(req.getParameter("ids") != null)
>>> emails = (String)req.getParameter("ids");
>>>
>>> ...
>>> }
>>>
>>>
>>>
>>> But on running I am getting:
>>>
>>>1.
>>>
>>>Exception in execute of InviteFriends
>>>
>>>2.  E2011-12-17 10:50:59.647
>>>
>>>vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost: 
>>> Exception class is :java.lang.IllegalArgumentException
>>>
>>>3.  E2011-12-17 10:50:59.647
>>>
>>>vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost: 
>>> Exception is :Invalud URL :
>>>
>>>
>>>
>>>Please advise.
>>>
>>>
>>>
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> http://www.sakshum.org
>>> http://blog.sakshum.org
>>>
>>
>>  --
>> 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.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "giannim" group.
>> To post to this group, send email to gian...@google.com.
>> To unsubscribe from this group, send email to
>> giannim+unsubscr...@google.com.
>> For more options, visit this group at
>> http://groups.google.com/a/google.com/group/giannim/?hl=en.
>>
>
>
>
> --
> Gianni Mariani
> Google, Sydney
>
> --
> 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.
>

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



Re: [giannim] [appengine-java] Re: issue with task queue implementation

2011-12-18 Thread Gianni Mariani
It appears as if the URL being constructed when the GET request is passed
to the task queue system is being rejected.

Any chance you can print out the string "emailList" - I'm curious what is
causing the problem.

BTW the typo in Invalud will be fixed - remider to self, learn to spell.

On Mon, Dec 19, 2011 at 12:24 AM, Vik  wrote:

> Well I found the problem in this. It is caused by the param I am passing
> though not sure if its a bug in GAE.
>
> I am passing as:
>  String emailList = emails.substring(0, 51);
> queue.add(withUrl("/queue/InviteFriendsQueue").param("ids",
> emailList).method(Method.GET));
>
> emailList is not null and non empty.
>
> and it throws
> SEVERE: Exception class is :java.lang.IllegalArgumentException
> Dec 18, 2011 1:18:57 PM
> vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost
> SEVERE: Exception is :Invalud URL
>
> I tried passing a hardcoded value like:
> queue.add(withUrl("/queue/InviteFriendsQueue").param("ids", 
> "vik.ceo@gmail").method(Method.GET));
>
>
> and this works fine.  Please advise.
>
>
> Thankx and Regards
>
> Vik
> Founder
> http://www.sakshum.org
> http://blog.sakshum.org
>
>
> On Sun, Dec 18, 2011 at 12:26 AM, Vik  wrote:
>
>> Hie
>>
>> From my GAE code I am calling as
>>
>> Queue queue = QueueFactory.getDefaultQueue();
>> queue.add(withUrl("/vik/sakshum/sakshumweb/server/queue/InviteFriendsQueue").param("ids",
>> emails.substring(beginIndex, i+1)).method(Method.GET));
>>
>>
>> and i have a servlet defined as:
>>
>> package vik.sakshum.sakshumweb.server.queue;
>> public class InviteFriendsQueue extends HttpServlet{
>>
>>  private static final Logger log =
>> Logger.getLogger(InviteFriendsQueue.class.getName());
>>  public void doGet(HttpServletRequest req,
>>  HttpServletResponse resp){
>> log.info("Start of doPost InviteFriends");
>>  String emails = null;
>> if(req.getParameter("ids") != null)
>> emails = (String)req.getParameter("ids");
>>
>> ...
>> }
>>
>>
>>
>> But on running I am getting:
>>
>>1.
>>
>>Exception in execute of InviteFriends
>>
>>2.  E2011-12-17 10:50:59.647
>>
>>vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost: 
>> Exception class is :java.lang.IllegalArgumentException
>>
>>3.  E2011-12-17 10:50:59.647
>>
>>vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost: 
>> Exception is :Invalud URL :
>>
>>
>>
>>Please advise.
>>
>>
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> http://www.sakshum.org
>> http://blog.sakshum.org
>>
>
>  --
> 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.
>
> --
> You received this message because you are subscribed to the Google Groups
> "giannim" group.
> To post to this group, send email to gian...@google.com.
> To unsubscribe from this group, send email to
> giannim+unsubscr...@google.com.
> For more options, visit this group at
> http://groups.google.com/a/google.com/group/giannim/?hl=en.
>



-- 
Gianni Mariani
Google, Sydney

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