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 <[email protected]> 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 [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.