[appengine-java] Re: PersistenceManager (JDO), transaction and close() function

2011-02-22 Thread Ian Marshall
Hi Tom,

I always call close() on an PersistenceManager instance once I have
finished with it, be it using or not using a transaction.

In my jdoconfig.xml, I use the setting

  

so I can call PersistenceManager#close() with confidence that I am not
mucking anything up.

I cannot think of a reason why examples do not mention close(). I use
this to release resources for re-use or garbage collection.

Regards,

Ian


On Feb 22, 7:54 am, Tom Fishman  wrote:
> In almost every example code I can see, the PersistenceManager is never
> closed ( call close() ) with JDO transaction operation.
> What's the reason of that? ( In other cases, close() is always called in
> finally clause )
>
> My code has both transaction and non-transaction operations, the entity
> returned from transaction operation always have JDO state and JDO manager
> attached which I want to remove so they have identical pattern for both
> cases.
>
> -Tom.

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



[appengine-java] Re: Protocol Buffer in Google app engine

2011-02-22 Thread Didier Durand
Hi Amit,

I still don't know much about your app and requirement, but what I can
say:

a) you should stick to http rather than going to any other kind of
RPC: http on port 80 is very well managed and ubiquitous over the
whole Internet. If you go to something more "exotic", you risk getting
blocked by firewall, being poorly managed by content caches or load
balancers. You risk issues (hard to figure out and solve...) that you
could simply avoid via sticking to http.

b) If you go java to java, why don't you use standard java
serialization rather than going to PB protocol ? The idea: you have
java objects on both sides and you ship them back and force over http
via standard java serialization (using class ObjectOutputStream for
example).

Is this helpful or do I miss something?

regards

didier

On Feb 22, 7:03 am, Amit Pandey  wrote:
> Hi Didier,
>
> Almost same requirement is mine. Actually My requirement is to expose
> the data store data (or any custom data) in protocol buffer format and
> it will consumes by java standalone program via RPC.
>
> I went through the Protocol Buffer documentation and I came to following
> questions-
>
>    1. Protocol Buffer documentation says that we have to provide our own
>    implementation of RpcChannel and RpcController. What would we write in
>    implemented methods?
>    2. In Google App Engine, We sends the request and receives response via
>    HTTP protocol. How would App engine send the data in RPC Channel?
>    3. Is there a way to send the Protocol buffer data in HttpResponse?
>
> Any help would be appreciated.
>
> Thanks,
>  Amit
> On Tue, Feb 22, 2011 at 11:09 AM, kartik kudada 
> wrote:
>
> > I need to access datastore , convert data  into protocol buffer format.
> > Then send across to different system.
>
> > How to achieve this requirement.
> > Any help would be appreciable.
>
> > Regrads,
> > Kartik
>
> > On Tue, Feb 22, 2011 at 10:59 AM, Didier Durand 
> > wrote:
>
> >> Hi,
>
> >> Could you tell us why you need it ?
>
> >> If it's to access the datastore, it's already there: below the low-
> >> level datastore api.
>
> >> regards
>
> >> didier
>
> >> On Feb 21, 12:48 pm, kartik kudada  wrote:
> >> > Hi ,
>
> >> > Can anybody help me out in  how to integrate PB(Protocol Buffer) in
> >> Google
> >> > app engine.
> >> > I don't know how to start , how to do?
>
> >> --
> >> 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.
>
>

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



[appengine-java] Re: bulkloader - Authentication failed.

2011-02-22 Thread Aswath Satrasala
Any idea on how to use the bulkloader, if FederatedLogin Authentication is
enabled.

-Aswath

On Mon, Feb 21, 2011 at 3:38 PM, Aswath Satrasala <
aswath.satras...@gmail.com> wrote:

> I figured out this.
> I had modified the Application Setting ->AuthenticationOptions to
> 'Federated Login'.  Hence it was not authenticating.
> I changed back to 'Google Account API', and I am able to download the data.
>
> This is a problem in the production application, as we will not be able to
> use the bulkloader.
>
> Anyone using bulkloader along with 'Federated login' authentication, if you
> have workarounds please let me know
>
> Regards
> -Aswath
> www.AccountingGuru.in.
>
>
>
>
> On Thu, Feb 17, 2011 at 3:07 PM, Aswath Satrasala <
> aswath.satras...@gmail.com> wrote:
>
>> Hello,
>> I am using the bulkloader functionality of appcfg.py.  I was able to use
>> this earlier last week.  But, today, I am constantly
>> getting the following errors.
>>
>> C:\Program Files\Google\google_appengine>appcfg.py --application=vs-stage
>> --url=http://vs-stage.appspot.com/remote_api download_data
>> --filename=Version7.csv
>> Downloading data records.
>> [INFO] Logging to bulkloader-log-20110217.145841
>> [INFO] Throttling transfers:
>> [INFO] Bandwidth: 25 bytes/second
>> [INFO] HTTP connections: 8/second
>> [INFO] Entities inserted/fetched/modified: 20/second
>> [INFO] Batch Size: 10
>> [INFO] Opening database: bulkloader-progress-20110217.145841.sql3
>> [INFO] Opening database: bulkloader-results-20110217.145841.sql3
>> [INFO] Connecting to vs-stage.appspot.com/remote_api
>> Please enter login credentials for vs-stage.appspot.com
>> Email: aswath.satras...@gmail.com
>> Password for aswath.satras...@gmail.com:
>> [INFO] Authentication Failed
>>
>>
>> -Aswath
>> www.AccountingGuru.in
>>
>>
>>
>

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



[appengine-java] Are IdGeneratorStrategy.Identity values always unique.

2011-02-22 Thread Richard Wallis
If I use IdGeneratorStrategy.Identity to generate a long key field and
then delete the object associated with that key from the datastore.
Is it possible that the same key will be reused with a different
object of the same class? Or are keys always unique?

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



[appengine-java] Re: useless?

2011-02-22 Thread vincentd

Its okay, the file isnt used on my localhost, but it works fine on
google apps engine...

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



[appengine-java] Re: 1.4.2: Can't make https call from dev server

2011-02-22 Thread Jens Lundberg
I'm running the dev-server (ver. 1.4.2) and GData Docs 3.0 Client ( on
Windows Vista and I also experience this problem when I try to access
the DocList with Oauth like below:


GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters();
oauthParameters.setOAuthConsumerKey(CONSUMER_KEY);
oauthParameters.setOAuthConsumerSecret(CONSUMER_SECRET);
oauthParameters.setOAuthToken("xxx");
oauthParameters.setOAuthTokenSecret("xx");

DocsService client = new DocsService("cloudspot--v1");
client.setOAuthCredentials(oauthParameters, new
OAuthHmacSha1Signer());

URL feedUrl = null;
feedUrl = new URL("https://docs.google.com/feeds/default/private/
full");
DocumentListFeed resultFeed = null;
resultFeed = client.getFeed(feedUrl, DocumentListFeed.class);

All required try-catch is removed for clarity.
When I deploy this to appspot.com it works like a charm.



On Feb 20, 9:24 pm, mushion22  wrote:
> I've opened an issue for this 
> athttp://code.google.com/p/googleappengine/issues/detail?id=4603
>
> Same deal here on OS X.
>
> On Feb 17, 8:21 am, Tom Phillips  wrote:
>
>
>
>
>
>
>
> > JVM (On Windows 7), I've tried a few for the development server including:
>
> > java version "1.6.0_22"
> > Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
> > Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
>
> > Using java.net.HttpURLConnection to connect tohttps://api.twilio.comand
> > getting:
>
> > javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate 
> > for:https://api.twilio.com
>
> > api.twilio.com is only accessible over SSL so this problem is hampering
> > development of our application with 1.4.2
>
> > /Tom
>
> > On Monday, February 14, 2011 4:22:51 PM UTC-5, frew wrote:
>
> > > Hey everybody,
>
> > > In order to help me diagnose the problems, could you respond with what
> > > JDK (Platform, JDK manufacturer (e.g. Sun, OpenJDK), and version)
> > > you're running? As a temporary stopgap, if you're using URLFetch
> > > service, you can use the doNotValidateCertificate() method in
> > > FetchOptions (http://code.google.com/appengine/docs/java/javadoc/com/
> > > google/appengine/api/urlfetch/FetchOptions.html)
> > > to disable
> > > validation.
>
> > > -Fred
>
> > > On Feb 13, 5:02 am, harri mauria  wrote:
> > > > I am having similar problems with the recently released version
> > > > com.google.appengine.eclipse.sdkbundle.1.4.2_1.4.2.v201102111811
> > > > Problems happen with the development server, not in production. I am
> > > > performing Facebook login credentials authentication in the callback
> > > > url. Interrupt stack is below:
>
> > > > HTTP ERROR 500
> > > > Problem accessing /loginfacebookcallback. Reason:
>
> > > >     Could not verify SSL certificate for:
> > >https://graph.facebook.com/oauth/access_token?omitted
>
> > > > Caused by:
> > > > javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate
> > > > for:https://graph.facebook.com/oauth/access_token?omitted
> > > >         at
>
> > > com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationExc
> > > eption(URLFetchServiceImpl.java:
> > > > 114)
> > > >         at
>
> > > com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchService
> > > Impl.java:
> > > > 41)
> > > >         at
>
> > > com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
> > > > $Connection.fetchResponse(URLFetchServiceStreamHandler.java:418)
> > > >         at
>
> > > com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
> > > > $Connection.getInputStream(URLFetchServiceStreamHandler.java:297)
> > > >         atwww.superpass.de.server.UrlFetcher.get(UrlFetcher.java:60)
>
> > > > Following message is printed to the console:
> > > > I/O exception (javax.net.ssl.SSLPeerUnverifiedException) caught when
> > > > processing request: HTTPS hostname invalid: expected
> > > > 'graph.facebook.com', received '*.facebook.com'
> > > > Retrying request
>
> > > > Regards, Harri
>
> > > > On Feb 13, 11:27 am, Lior Harsat  wrote:
>
> > > > > I am having a similar problem with https:
>
> > > > > I have been testing the SDK and I found one bug which seems critical.
> > > > > When I call the URLFetchService.fetch API  with a https URL I get a
> > > > > javax.net.ssl.SSLHandshakeException.
> > > > > for example when I fetch "https://spreadsheets.google.com/feeds/
> > > > > list/" I get
> > > > > javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate
> > > > > for:https://spreadsheets.google.com/feeds/list/...
> > > > > When I switch back to an older SDK this doesn't happen.
> > > > > Is there a "Help us test Prerelease SDK 1.4.2" thread I can post this
> > > > > to?
> > > > > Can anyone confirm this bug reproduces?
> > > > > Thanx, Lior
>
> > > > > On Feb 12, 11:57 am, Peter Liu  wrote:
>
> > > > > > We are using a custom remote delegate to route datastore rpc call to
>

[appengine-java] ClassNotFoundException

2011-02-22 Thread winsome[765]
Okay last night I deployed onto GAE and everything worked. I changed
some html (no java, config, etc) and deployed again.  Now when I
access the app via the default gae url  e.g. id.appspot.com, my app
throws a ClassNotFoundException - and I'm sure the class is in the WEB-
INF/classes folder. Strangely, when I access the app via the version
url e.g. 4.id.appspot.com it all works.
 Any guesses?
1. why does it work via version url and not default?
2. why would it throw a ClassNotFoundException if that class is in the
right place.

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



[appengine-java] api Sites: Required extension element http://schemas.google.com/acl/2007:role not found

2011-02-22 Thread vincentd
Hi,
I catch this exeption when i use the ACL feed for a site where there
is the user "anyone with the link":

com.google.gdata.util.ParseException: [Line 1, Column 8788, element
entry] Required extension element http://schemas.google.com/acl/2007:role
not found.

I saw the same problem was apparently solve for the document API, but
i didnt found anything for the sites api...

I have the problem on my localhost server and on google app engine
server too.

I use the SDK 1.4.0 and the last gdata.

my code looks like this:

public String getAclFeedUrl(String siteName) {
return  "https://sites.google.com/feeds/acl/site/MONDOMAINE/"; +
siteName ;
}

public void getAclFeed(String site) {

AclFeed aclFeed=null;
try {
aclFeed = client.getFeed(
new URL(getAclFeedUrl(site)), 
AclFeed.class);

} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();

} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();

} catch (ServiceException e) {
// TODO Auto-generated catch block
e.printStackTrace();

}


if(aclFeed!=null)for (AclEntry entry : aclFeed.getEntries()) {

BddAddUser(entry);

}
}



I'm stuck here for weeks! please help!



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



[appengine-java] PersistenceManager (JDO), transaction and close() function

2011-02-22 Thread Tom Fishman
In almost every example code I can see, the PersistenceManager is never 
closed ( call close() ) with JDO transaction operation.
What's the reason of that? ( In other cases, close() is always called in 
finally clause )

My code has both transaction and non-transaction operations, the entity 
returned from transaction operation always have JDO state and JDO manager 
attached which I want to remove so they have identical pattern for both 
cases.

-Tom.

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



[appengine-java] Learning the datastore

2011-02-22 Thread John
I've been reading the App Engine docs to prep myself for for a new
project using the datastore.

When learning a new technology I like to look at working code vs. just
the examples in the docs.

Does anyone know of an active open source project that I can download
and use to accelerate my learning on the datastore?

-- 
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: [appengine-java] Learning the datastore

2011-02-22 Thread Ronmell Fuentes
Hi John,
acording to my expertise in DataStore, you'll get more know-how when running
the example
you'll see the creation of the files and all the data that datastore deals
with.
try running the helloWorld example and try to
1. create one own Object to be stored (kinda POJO);
2. create a PersistenceManager and instance it, to save the POJO.
3. save the POJO and retrieve it to show the contents.

Of course, when one is trying to run the examples the bugs and problems
appear, but
that's part of our job. If you need more help with running the examples or
writing your owns
write a mail.

we keep in touch!

cheers,

Ronmell F.

On Mon, Feb 21, 2011 at 9:45 PM, John  wrote:

> I've been reading the App Engine docs to prep myself for for a new
> project using the datastore.
>
> When learning a new technology I like to look at working code vs. just
> the examples in the docs.
>
> Does anyone know of an active open source project that I can download
> and use to accelerate my learning on the datastore?
>
> --
> 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.
>
>


-- 
*-Information Technologies Engineering-*
ausencia de evidencia  ≠  evidencia de ausencia
http://culturainteractiva.blogspot.com/

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



[appengine-java] Zero instance

2011-02-22 Thread Ciro
Hi,
Since yesterday, my GAE app has zero instance allowed so when I enter 
http://teatropicaro.appspot.com I get an error 500.
I've tried to disable and re-enable the app but nothing to do.

Please help.

Thank you.

-- 
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: [appengine-java] Learning the datastore

2011-02-22 Thread Ikai Lan (Google)
I think one of the best ways to start learning about the datastore is to use
the low-level API:

http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/package-summary.html

We changed our docs recently to show examples using this. As far as open
source projects go, you can take a look at how Objectify and Twig (there are
more, please list!) are implemented using the low-level API.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Tue, Feb 22, 2011 at 7:49 AM, Ronmell Fuentes  wrote:

> Hi John,
> acording to my expertise in DataStore, you'll get more know-how when
> running the example
> you'll see the creation of the files and all the data that datastore deals
> with.
> try running the helloWorld example and try to
> 1. create one own Object to be stored (kinda POJO);
> 2. create a PersistenceManager and instance it, to save the POJO.
> 3. save the POJO and retrieve it to show the contents.
>
> Of course, when one is trying to run the examples the bugs and problems
> appear, but
> that's part of our job. If you need more help with running the examples or
> writing your owns
> write a mail.
>
> we keep in touch!
>
> cheers,
>
> Ronmell F.
>
>
> On Mon, Feb 21, 2011 at 9:45 PM, John  wrote:
>
>> I've been reading the App Engine docs to prep myself for for a new
>> project using the datastore.
>>
>> When learning a new technology I like to look at working code vs. just
>> the examples in the docs.
>>
>> Does anyone know of an active open source project that I can download
>> and use to accelerate my learning on the datastore?
>>
>> --
>> 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.
>>
>>
>
>
> --
> *-Information Technologies Engineering-*
> ausencia de evidencia  ≠  evidencia de ausencia
> http://culturainteractiva.blogspot.com/
>
>
>  --
> 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.



[appengine-java] Re: ClassNotFoundException

2011-02-22 Thread Simon Knott
I can't answer the first question, but as for the second - are you doing any 
static initialization of that class?  If a static initializer fails, you 
will get a ClassNotFoundException even if the Class is deployed.

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



[appengine-java] Re: Learning the datastore

2011-02-22 Thread Didier Durand
Hi,

I would also recommend you to get the source code of Objectify, 1 of
the open source datastore frameworks recommended by Google to work on
top of its low-level ds api: very efficient and broad use of the ds
capabilities.

I would also recommend the wiki pages of the project: perceived as
very good by many people incl Ikai Lan from Google himself! ;-)

regards

didier

On Feb 22, 5:14 pm, "Ikai Lan (Google)" 
wrote:
> I think one of the best ways to start learning about the datastore is to use
> the low-level API:
>
> http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...
>
> We changed our docs recently to show examples using this. As far as open
> source projects go, you can take a look at how Objectify and Twig (there are
> more, please list!) are implemented using the low-level API.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger:http://googleappengine.blogspot.com
> Reddit:http://www.reddit.com/r/appengine
> Twitter:http://twitter.com/app_engine
>
> On Tue, Feb 22, 2011 at 7:49 AM, Ronmell Fuentes  wrote:
> > Hi John,
> > acording to my expertise in DataStore, you'll get more know-how when
> > running the example
> > you'll see the creation of the files and all the data that datastore deals
> > with.
> > try running the helloWorld example and try to
> > 1. create one own Object to be stored (kinda POJO);
> > 2. create a PersistenceManager and instance it, to save the POJO.
> > 3. save the POJO and retrieve it to show the contents.
>
> > Of course, when one is trying to run the examples the bugs and problems
> > appear, but
> > that's part of our job. If you need more help with running the examples or
> > writing your owns
> > write a mail.
>
> > we keep in touch!
>
> > cheers,
>
> > Ronmell F.
>
> > On Mon, Feb 21, 2011 at 9:45 PM, John  wrote:
>
> >> I've been reading the App Engine docs to prep myself for for a new
> >> project using the datastore.
>
> >> When learning a new technology I like to look at working code vs. just
> >> the examples in the docs.
>
> >> Does anyone know of an active open source project that I can download
> >> and use to accelerate my learning on the datastore?
>
> >> --
> >> 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.
>
> > --
> > *-Information Technologies Engineering-*
> > ausencia de evidencia  ≠  evidencia de ausencia
> >http://culturainteractiva.blogspot.com/
>
> >  --
> > 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: [appengine-java] Unable to start embedded HTTP server, AccessControlException

2011-02-22 Thread Toby Reyelts
If you set the JVM flag, "-Djava.security.debug=access,failure", you'll get
a lot of log spam that has the root cause buried in it somewhere. If you
post the logs to the list, we can help debug it for you. Remember that if
you're running dev_appserver from the command line, you need to use
--jvm_flag, i.e. "--jvm_flag=-Djava.security.debug=access,failure"

On Sun, Feb 20, 2011 at 8:45 AM, Alan Williamson  wrote:

> I am receiving the exact same problem.
>
> The directory in question is indeed writable ... it creates the .policy
> file okay, but doesn't seem to delete it.
>
> If i run it inside of Eclipse it works; if i run it outside of Eclipse i
> get this issue.
>
> java.security.AccessControlException: access denied (java.io.FilePermission
> C:\Users\alan\AppData\Local\Temp\test2372885730606789235.policy delete)
>
> Any hints as to what is going on here?
>
> --
> 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.



[appengine-java] Re: Learning the datastore

2011-02-22 Thread John
Great, thanks all!

On Feb 22, 7:49 am, Ronmell Fuentes  wrote:
> Hi John,
> acording to my expertise in DataStore, you'll get more know-how when running
> the example
> you'll see the creation of the files and all the data that datastore deals
> with.
> try running the helloWorld example and try to
> 1. create one own Object to be stored (kinda POJO);
> 2. create a PersistenceManager and instance it, to save the POJO.
> 3. save the POJO and retrieve it to show the contents.
>
> Of course, when one is trying to run the examples the bugs and problems
> appear, but
> that's part of our job. If you need more help with running the examples or
> writing your owns
> write a mail.
>
> we keep in touch!
>
> cheers,
>
> Ronmell F.
>
>
>
>
>
>
>
>
>
> On Mon, Feb 21, 2011 at 9:45 PM, John  wrote:
> > I've been reading the App Engine docs to prep myself for for a new
> > project using the datastore.
>
> > When learning a new technology I like to look at working code vs. just
> > the examples in the docs.
>
> > Does anyone know of an active open source project that I can download
> > and use to accelerate my learning on the datastore?
>
> > --
> > 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.
>
> --
> *-Information Technologies Engineering-*
> ausencia de evidencia  ≠  evidencia de 
> ausenciahttp://culturainteractiva.blogspot.com/

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



[appengine-java] Re: Probably a newbie question (most likely)

2011-02-22 Thread WillSpecht
Don't you need to persist the thread as well as the comment?  It's
hard to analyze your code with such a small sample.  Does addComment
persist the thread? My
 guess is that something is making the transaction fail, probably
cause you are trying to operate on two different entity groups. I
would simply store the comment as it's own entity and when you want
all the comments simply do a query for comments with parentKey ==
ThreadKey.

On Feb 21, 9:30 pm, "Fernando O."  wrote:
> Hi all.
> First of all I have to admit: I havent read all the docs.
>
> I had a small app running, it basically has this:
> A User:
> @PersistenceCapable(detachable = "true")
> @FetchGroup(name = "_post", members = { @Persistent(name = "posts") })
> public class User implements Serializable{
> @PrimaryKey
> @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> private Key key;
>
> @Persistent(mappedBy = "user", defaultFetchGroup = "true")
> @Element(dependent = "true")
> private List posts;
> }
>
> A thread :
>
> @PersistenceCapable(detachable = "true")
> @FetchGroup(name = "_user", members = { @Persistent(name = "user")})
> public class Thread implements Serializable {
> @PrimaryKey
> @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> private Long key;
>
> @Persistent(defaultFetchGroup = "true")
> @Element(dependent = "true")
> private User user;
> ...
>
> }
>
> So now I want to add comments, each comment will have: the user that made
> the comment, and the thread that it belongs to, and some other fields:
> @PersistenceCapable(detachable = "true")
> public class ThreadComment implements Serializable{
>  @PrimaryKey
> @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> private Key key;
>
> @Persistent(defaultFetchGroup = "true")
> @Element(dependent = "true")
> private User user;
>
> @Persistent(defaultFetchGroup = "true")
> @Element(dependent = "true")
> private Thread thread;
> ...
>
> }
>
> I changed the Thread to include a list of comments:
> @PersistenceCapable(detachable = "true")
> @FetchGroup(name = "_user", members = { @Persistent(name =
> "comments"),@Persistent(name
> = "user")})
> public class Thread implements Serializable {
> 
>         @Persistent(defaultFetchGroup = "true")
> @Element(dependent = "true")
> private List comments;
>
> }
>
> My problem is that meanwhile this works in memory when I try to persist the
> ThreadComment
> PersistenceManager pm = getPMF();
> Transaction tx = pm.currentTransaction();
> tx.begin();
> thread.addComment(comment);
> pm.makePersistent(comment);
> tx.commit();
> pm.close();
>
> the code gets excecuted but I don't see the comment in the database (in fact
> the logs show no db activity either)
> So I don't see an exception, the code gets excecuted but I don't see the
> comment in the DB.
>
> I already have the db with soem threads without comments, this is a "new
> feature"
>
> Any idea of what I'm doing wrong? (please don't say everything :D )
>
> Thanks!
>
> Fernando

-- 
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: [appengine-java] Re: Probably a newbie question (most likely)

2011-02-22 Thread Fernando O.
Thanks! I'll try that. BTW no, addComment does not store the comment.

On Tue, Feb 22, 2011 at 8:49 PM, WillSpecht  wrote:

> Don't you need to persist the thread as well as the comment?  It's
> hard to analyze your code with such a small sample.  Does addComment
> persist the thread? My
>  guess is that something is making the transaction fail, probably
> cause you are trying to operate on two different entity groups. I
> would simply store the comment as it's own entity and when you want
> all the comments simply do a query for comments with parentKey ==
> ThreadKey.
>
> On Feb 21, 9:30 pm, "Fernando O."  wrote:
> > Hi all.
> > First of all I have to admit: I havent read all the docs.
> >
> > I had a small app running, it basically has this:
> > A User:
> > @PersistenceCapable(detachable = "true")
> > @FetchGroup(name = "_post", members = { @Persistent(name = "posts") })
> > public class User implements Serializable{
> > @PrimaryKey
> > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> > private Key key;
> >
> > @Persistent(mappedBy = "user", defaultFetchGroup = "true")
> > @Element(dependent = "true")
> > private List posts;
> > }
> >
> > A thread :
> >
> > @PersistenceCapable(detachable = "true")
> > @FetchGroup(name = "_user", members = { @Persistent(name = "user")})
> > public class Thread implements Serializable {
> > @PrimaryKey
> > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> > private Long key;
> >
> > @Persistent(defaultFetchGroup = "true")
> > @Element(dependent = "true")
> > private User user;
> > ...
> >
> > }
> >
> > So now I want to add comments, each comment will have: the user that made
> > the comment, and the thread that it belongs to, and some other fields:
> > @PersistenceCapable(detachable = "true")
> > public class ThreadComment implements Serializable{
> >  @PrimaryKey
> > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> > private Key key;
> >
> > @Persistent(defaultFetchGroup = "true")
> > @Element(dependent = "true")
> > private User user;
> >
> > @Persistent(defaultFetchGroup = "true")
> > @Element(dependent = "true")
> > private Thread thread;
> > ...
> >
> > }
> >
> > I changed the Thread to include a list of comments:
> > @PersistenceCapable(detachable = "true")
> > @FetchGroup(name = "_user", members = { @Persistent(name =
> > "comments"),@Persistent(name
> > = "user")})
> > public class Thread implements Serializable {
> > 
> > @Persistent(defaultFetchGroup = "true")
> > @Element(dependent = "true")
> > private List comments;
> >
> > }
> >
> > My problem is that meanwhile this works in memory when I try to persist
> the
> > ThreadComment
> > PersistenceManager pm = getPMF();
> > Transaction tx = pm.currentTransaction();
> > tx.begin();
> > thread.addComment(comment);
> > pm.makePersistent(comment);
> > tx.commit();
> > pm.close();
> >
> > the code gets excecuted but I don't see the comment in the database (in
> fact
> > the logs show no db activity either)
> > So I don't see an exception, the code gets excecuted but I don't see the
> > comment in the DB.
> >
> > I already have the db with soem threads without comments, this is a "new
> > feature"
> >
> > Any idea of what I'm doing wrong? (please don't say everything :D )
> >
> > Thanks!
> >
> > Fernando
>
> --
> 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: [appengine-java] Re: Probably a newbie question (most likely)

2011-02-22 Thread Fernando O.
tried that and it's telling me
org.datanucleus.exceptions.NucleusObjectNotFoundException: Could not
retrieve entity of kind Thread with key Thread(51)

I also tried doing a query with the Thread key and UserKey (wich is the key
for a thread) and then I get an exception about modifying 2 entities in 1
transaction :S

On Tue, Feb 22, 2011 at 8:56 PM, Fernando O.  wrote:

> Thanks! I'll try that. BTW no, addComment does not store the comment.
>
> On Tue, Feb 22, 2011 at 8:49 PM, WillSpecht  wrote:
>
>> Don't you need to persist the thread as well as the comment?  It's
>> hard to analyze your code with such a small sample.  Does addComment
>> persist the thread? My
>>  guess is that something is making the transaction fail, probably
>> cause you are trying to operate on two different entity groups. I
>> would simply store the comment as it's own entity and when you want
>> all the comments simply do a query for comments with parentKey ==
>> ThreadKey.
>>
>> On Feb 21, 9:30 pm, "Fernando O."  wrote:
>> > Hi all.
>> > First of all I have to admit: I havent read all the docs.
>> >
>> > I had a small app running, it basically has this:
>> > A User:
>> > @PersistenceCapable(detachable = "true")
>> > @FetchGroup(name = "_post", members = { @Persistent(name = "posts") })
>> > public class User implements Serializable{
>> > @PrimaryKey
>> > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>> > private Key key;
>> >> @Persistent(mappedBy = "user", defaultFetchGroup = "true")
>> > @Element(dependent = "true")
>> > private List posts;
>> > }
>> >
>> > A thread :
>> >
>> > @PersistenceCapable(detachable = "true")
>> > @FetchGroup(name = "_user", members = { @Persistent(name = "user")})
>> > public class Thread implements Serializable {
>> > @PrimaryKey
>> > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>> > private Long key;
>> >
>> > @Persistent(defaultFetchGroup = "true")
>> > @Element(dependent = "true")
>> > private User user;
>> > ...
>> >
>> > }
>> >
>> > So now I want to add comments, each comment will have: the user that
>> made
>> > the comment, and the thread that it belongs to, and some other fields:
>> > @PersistenceCapable(detachable = "true")
>> > public class ThreadComment implements Serializable{
>> >  @PrimaryKey
>> > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>> > private Key key;
>> >
>> > @Persistent(defaultFetchGroup = "true")
>> > @Element(dependent = "true")
>> > private User user;
>> >
>> > @Persistent(defaultFetchGroup = "true")
>> > @Element(dependent = "true")
>> > private Thread thread;
>> > ...
>> >
>> > }
>> >
>> > I changed the Thread to include a list of comments:
>> > @PersistenceCapable(detachable = "true")
>> > @FetchGroup(name = "_user", members = { @Persistent(name =
>> > "comments"),@Persistent(name
>> > = "user")})
>> > public class Thread implements Serializable {
>> > 
>> > @Persistent(defaultFetchGroup = "true")
>> > @Element(dependent = "true")
>> > private List comments;
>> >
>> > }
>> >
>> > My problem is that meanwhile this works in memory when I try to persist
>> the
>> > ThreadComment
>> > PersistenceManager pm = getPMF();
>> > Transaction tx = pm.currentTransaction();
>> > tx.begin();
>> > thread.addComment(comment);
>> > pm.makePersistent(comment);
>> > tx.commit();
>> > pm.close();
>> >
>> > the code gets excecuted but I don't see the comment in the database (in
>> fact
>> > the logs show no db activity either)
>> > So I don't see an exception, the code gets excecuted but I don't see the
>> > comment in the DB.
>> >
>> > I already have the db with soem threads without comments, this is a "new
>> > feature"
>> >
>> > Any idea of what I'm doing wrong? (please don't say everything :D )
>> >
>> > Thanks!
>> >
>> > Fernando
>>
>> --
>> 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: [appengine-java] Re: Protocol Buffer in Google app engine

2011-02-22 Thread Amit Pandey
Completely Make sense. Thanks Didier.

On Tue, Feb 22, 2011 at 5:57 PM, Didier Durand wrote:

> Hi Amit,
>
> I still don't know much about your app and requirement, but what I can
> say:
>
> a) you should stick to http rather than going to any other kind of
> RPC: http on port 80 is very well managed and ubiquitous over the
> whole Internet. If you go to something more "exotic", you risk getting
> blocked by firewall, being poorly managed by content caches or load
> balancers. You risk issues (hard to figure out and solve...) that you
> could simply avoid via sticking to http.
>
> b) If you go java to java, why don't you use standard java
> serialization rather than going to PB protocol ? The idea: you have
> java objects on both sides and you ship them back and force over http
> via standard java serialization (using class ObjectOutputStream for
> example).
>
> Is this helpful or do I miss something?
>
> regards
>
> didier
>
> On Feb 22, 7:03 am, Amit Pandey  wrote:
> > Hi Didier,
> >
> > Almost same requirement is mine. Actually My requirement is to expose
> > the data store data (or any custom data) in protocol buffer format and
> > it will consumes by java standalone program via RPC.
> >
> > I went through the Protocol Buffer documentation and I came to following
> > questions-
> >
> >1. Protocol Buffer documentation says that we have to provide our own
> >implementation of RpcChannel and RpcController. What would we write in
> >implemented methods?
> >2. In Google App Engine, We sends the request and receives response
> via
> >HTTP protocol. How would App engine send the data in RPC Channel?
> >3. Is there a way to send the Protocol buffer data in HttpResponse?
> >
> > Any help would be appreciated.
> >
> > Thanks,
> >  Amit
> > On Tue, Feb 22, 2011 at 11:09 AM, kartik kudada  >wrote:
> >
> > > I need to access datastore , convert data  into protocol buffer format.
> > > Then send across to different system.
> >
> > > How to achieve this requirement.
> > > Any help would be appreciable.
> >
> > > Regrads,
> > > Kartik
> >
> > > On Tue, Feb 22, 2011 at 10:59 AM, Didier Durand <
> durand.did...@gmail.com>wrote:
>  >
> > >> Hi,
> >
> > >> Could you tell us why you need it ?
> >
> > >> If it's to access the datastore, it's already there: below the low-
> > >> level datastore api.
> >
> > >> regards
> >
> > >> didier
> >
> > >> On Feb 21, 12:48 pm, kartik kudada  wrote:
> > >> > Hi ,
> >
> > >> > Can anybody help me out in  how to integrate PB(Protocol Buffer) in
> > >> Google
> > >> > app engine.
> > >> > I don't know how to start , how to do?
> >
> > >> --
> > >> 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.
> >
> >
>
> --
>  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.



[appengine-java] Re: Protocol Buffer in Google app engine

2011-02-22 Thread Peter Ondruška
Just a note on Java-to-Java serialization: This is not going to work 100% 
while protobuf serialization should work.

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



[appengine-java] Re: Unexpected Exception while trying executin a jdo query

2011-02-22 Thread culov
same problem, havent found an answer.

On Jan 28, 1:46 am, Christophe Weber 
wrote:
> Hi,
>
> I have a problem when trying to query  on the appengine. here's what I do:
>
> Query q = persistenceManager.newQuery(User.class);
> q.declareParameters("java.lang.String emailParam");
> q.setFilter("userEmail == emailParam");
> List list = (List) q.execute(email);
>                  if (list.size()<=0)    ( OR  if (list.isEmpty()))
>
> And I get this exception:
>
> java.lang.ClassCastException: java.lang.Long cannot be cast to 
> java.lang.String
>         at 
> org.datanucleus.store.appengine.DatastoreFieldManager.fetchStringField(Data 
> storeFieldManager.java:207)
>         at 
> org.datanucleus.state.AbstractStateManager.replacingStringField(AbstractSta 
> teManager.java:1180)
>         at com.logos.stm.shared.model.User.jdoReplaceField(User.java)
>         at com.logos.stm.shared.model.User.jdoReplaceFields(User.java)
>         at 
> org.datanucleus.state.JDOStateManagerImpl.replaceFields(JDOStateManagerImpl 
> .java:2772)
>         at 
> org.datanucleus.state.JDOStateManagerImpl.replaceFields(JDOStateManagerImpl 
> .java:2791)
>         at 
> org.datanucleus.store.appengine.DatastorePersistenceHandler.fetchObject(Dat 
> astorePersistenceHandler.java:480)
>         at 
> org.datanucleus.store.appengine.query.DatastoreQuery.entityToPojo(Datastore 
> Query.java:570)
>         at 
> org.datanucleus.store.appengine.query.DatastoreQuery.entityToPojo(Datastore 
> Query.java:525)
>         at 
> org.datanucleus.store.appengine.query.DatastoreQuery.access$300(DatastoreQu 
> ery.java:111)
>         at 
> org.datanucleus.store.appengine.query.DatastoreQuery$6.apply(DatastoreQuery 
> .java:643)
>         at 
> org.datanucleus.store.appengine.query.DatastoreQuery$6.apply(DatastoreQuery 
> .java:635)
>         at 
> org.datanucleus.store.appengine.query.LazyResult.resolveNext(LazyResult.jav 
> a:94)
>         at 
> org.datanucleus.store.appengine.query.LazyResult.resolveAll(LazyResult.java 
> :116)
>         at 
> org.datanucleus.store.appengine.query.LazyResult.size(LazyResult.java:110)
>         at 
> org.datanucleus.store.appengine.query.StreamingQueryResult.size(StreamingQu 
> eryResult.java:130)
>
> The error occurs on the if (list.size()<=0)     OR  if (list.isEmpty()) in 
> both cases. My User class is declared as followed:
>
> @PersistenceCapable(identityType=IdentityType.APPLICATION)
>
> public class User implements Serializable {
>
> ...
>
> @Persistent
>
>  String userEmail;
>
> +getter and setter
>
> Can someone explain I have this error?
>
> Thanks a lot!

-- 
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: [appengine-java] Re: Protocol Buffer in Google app engine

2011-02-22 Thread Amit Pandey
I am planning to use the regular servlet interface and use encoded protobufs
in the request and response bodies.

thoughts/suggestions?

On Wed, Feb 23, 2011 at 12:47 PM, Peter Ondruška
wrote:

> Just a note on Java-to-Java serialization: This is not going to work 100%
> while protobuf serialization should work.
>
> --
>  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.