[google-appengine] The API package 'urlfetch' or call 'Fetch()' was not found.

2010-04-28 Thread Ajay Chitre
Hello,

I created a GWT application, tested it locally and later deployed it on
Appengine.  Everything was working well.  Later I added code that uses SDC
(Secure Data Connector).  It looks something like this..

  URLFetchService fetcher = URLFetchServiceFactory.getURLFetchService();
  URL dataURL = new URL("http://localhost:8182/jobs?arg1=1&arg2=1";);
  HTTPRequest fetchreq = new HTTPRequest(dataURL);
  HTTPResponse resp = fetcher.fetch(fetchreq);

Every time I run it, the fetcher.fetch method throws an exception that
says... "com.google.apphosting.api.ApiProxy$CallNotFoundException: The API
package 'urlfetch' or call 'Fetch()' was not found."

I tried changing the classpath, but nothing seems to help.

I created a separate GWT application given in the tutorial and added the
above code to it.  It works just fine, which implies that something is wrong
with my project setup... missing jar in Classpath.. or something like that.

Please help.  Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: The API package 'urlfetch' or call 'Fetch()' was not found.

2010-04-29 Thread Ajay Chitre
Just to close the loop on this one...  the problem was that I was starting
GWT 'DevMode' as a Java application in Eclipse.  After I started it as a
'Google Web Application', the SDC started working!

On Tue, Apr 27, 2010 at 10:34 PM, Ajay Chitre  wrote:

> Hello,
>
> I created a GWT application, tested it locally and later deployed it on
> Appengine.  Everything was working well.  Later I added code that uses SDC
> (Secure Data Connector).  It looks something like this..
>
>   URLFetchService fetcher =
> URLFetchServiceFactory.getURLFetchService();
>   URL dataURL = new URL("http://localhost:8182/jobs?arg1=1&arg2=1";);
>   HTTPRequest fetchreq = new HTTPRequest(dataURL);
>   HTTPResponse resp = fetcher.fetch(fetchreq);
>
> Every time I run it, the fetcher.fetch method throws an exception that
> says... "com.google.apphosting.api.ApiProxy$CallNotFoundException: The API
> package 'urlfetch' or call 'Fetch()' was not found."
>
> I tried changing the classpath, but nothing seems to help.
>
> I created a separate GWT application given in the tutorial and added the
> above code to it.  It works just fine, which implies that something is wrong
> with my project setup... missing jar in Classpath.. or something like that.
>
> Please help.  Thanks.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Transferring large amount of data

2010-05-11 Thread Ajay Chitre
Hello,

What are the various options available for transferring large amount of data
out of AppEngine?  I tried SDC but I got 'The request to API call
urlfetch.Fetch() was too large' message.  I guess, FTP wouldn't work because
some of the classes under java.net.* package are black-listed.

Here's the use case... when user uploads a file I want to transfer the file
out of AppEngine to some other machine (outside Appengine).

What are the available options?  Please let me know.  Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Datastore question

2009-09-02 Thread Ajay Chitre
Hello,

I am a newbie to Datastore.  Here's what I am trying to accomplish:

Trying to set an "Unowned" one-to-many relationship between 2 objects. (I
chose "unowned" because I wasn't sure if I could have an "owned"
many-to-many.  Also wasn't sure if "lazy loading" is available for the
children.  Is "owned" the recommended way?)

Anyway, I have a *Parent *class in which I have this...

@Persistent
private Set children = new HashSet();

In the *Child *class I have this...

@Persistent
private Key parent = null;

I am doing the following:

1)  Create a Parent.. This worked.  The parent.getId() gives me the Id.
2)  While creating a child, I want to attach the child to parent, so I tried
several variations such as this:

String parentId = parent.getId().toString();
 child.setParent(KeyFactory.stringToKey(parentd));

This is NOT working.  What's the best way to do this?

3)  Also, I need to put the key of child into Parent.  As per, Max Ross'
presentation at Google I/O this doesn't work in the same transaction.  Has
that issue been fixed?

Is there any tutorial available that shows this?  Any help in this regard
will be greatly appreciated.

Thanks.

- Ajay

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Datastore question

2009-09-03 Thread Ajay Chitre
No answers to my question :(  Could it be that my question is stupid... I
wonder? :)

On Wed, Sep 2, 2009 at 1:05 PM, Ajay Chitre  wrote:

> Hello,
>
> I am a newbie to Datastore.  Here's what I am trying to accomplish:
>
> Trying to set an "Unowned" one-to-many relationship between 2 objects. (I
> chose "unowned" because I wasn't sure if I could have an "owned"
> many-to-many.  Also wasn't sure if "lazy loading" is available for the
> children.  Is "owned" the recommended way?)
>
> Anyway, I have a *Parent *class in which I have this...
>
> @Persistent
> private Set children = new HashSet();
>
> In the *Child *class I have this...
>
> @Persistent
> private Key parent = null;
>
> I am doing the following:
>
> 1)  Create a Parent.. This worked.  The parent.getId() gives me the Id.
> 2)  While creating a child, I want to attach the child to parent, so I
> tried several variations such as this:
>
> String parentId = parent.getId().toString();
>  child.setParent(KeyFactory.stringToKey(parentd));
>
> This is NOT working.  What's the best way to do this?
>
> 3)  Also, I need to put the key of child into Parent.  As per, Max Ross'
> presentation at Google I/O this doesn't work in the same transaction.  Has
> that issue been fixed?
>
> Is there any tutorial available that shows this?  Any help in this regard
> will be greatly appreciated.
>
> Thanks.
>
> - Ajay
>
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---