Re: [appengine-java] Re: Google SQL Service Trusted Testers Signup

2011-03-01 Thread Amit Agarwal
Unfortunately, currently we don't have any pricing related information that
we can share publicly. Once we have something we will do so.

Thanks
Amit

On Mon, Feb 28, 2011 at 3:09 PM, Marcel Overdijk
marceloverd...@gmail.comwrote:

 Thanks Amit,

 I understand Google is still working on the prices.
 But this is important aspect for me to decide to go for SQL or
 BigTable.

 I have a background with SQL so that might be easier for me.

 When do you think there will be more information available about
 pricing?
 I'm not looking for concrete prices but would like to have an idea of
 it (compared to BigTable).

 Cheers,
 Marcel



 On Feb 28, 11:15 pm, Amit Agarwal aagar...@google.com wrote:
  Hi Marcel,
 
  Comments inline.
 
  On Mon, Feb 28, 2011 at 1:05 PM, Marcel Overdijk
  marceloverd...@gmail.comwrote:
 
   Is there more information available about the SQL support?
 
  I am not sure what information you looking for. If there are general
  questions please do let me know. SQL Service is currently under trusted
  testers and if you are looking for details about the service it is
 available
  once you have signed up for the service.
 
   Will it only be available for 'App Engine for Business'?
 
  Currently we plan to make it available for all App Engine users
 
 
 
   And will pricing be simalar as BigTable datastore?
 
  We are still working on the pricing.
 
  thanks
  Amit
 
 
 
 
 
 
 
 
 
 
 
   On Feb 28, 6:06 pm, Amit Agarwal aagar...@google.com wrote:
Hello everyone,
 
We have been working on enabling SQL support for Google App Engine.
 Many
   of
you have been testing this service and many more of you are in the
 queue.
For those of you in the queue, we will soon be sending you the
 invites to
try out this service.
 
If you would like to try out Google SQL Service please sign-up
here
  https://spreadsheets0.google.com/a/google.com/viewform?hl=enhl=enfo..
 .
.
 
thanks
Amit
 
--
Amit Agarwal | Product Manager | Google SQL Service
 
   --
   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.
 
  --
  Amit Agarwal | Product Manager | Google SQL Service

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




-- 
Amit Agarwal | Product Manager | Google | 650-253-4393 (w) 510-304-2205 (c)

-- 
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: Google SQL Service Trusted Testers Signup

2011-03-01 Thread Marcel Overdijk
I understand Amit, np

I will wait until more information gets available.
Do you have any idea when this information will be available? 1
months, 2 months, 6 months...?

On Mar 1, 9:14 am, Amit Agarwal aagar...@google.com wrote:
 Unfortunately, currently we don't have any pricing related information that
 we can share publicly. Once we have something we will do so.

 Thanks
 Amit

 On Mon, Feb 28, 2011 at 3:09 PM, Marcel Overdijk
 marceloverd...@gmail.comwrote:



  Thanks Amit,

  I understand Google is still working on the prices.
  But this is important aspect for me to decide to go for SQL or
  BigTable.

  I have a background with SQL so that might be easier for me.

  When do you think there will be more information available about
  pricing?
  I'm not looking for concrete prices but would like to have an idea of
  it (compared to BigTable).

  Cheers,
  Marcel

  On Feb 28, 11:15 pm, Amit Agarwal aagar...@google.com wrote:
   Hi Marcel,

   Comments inline.

   On Mon, Feb 28, 2011 at 1:05 PM, Marcel Overdijk
   marceloverd...@gmail.comwrote:

Is there more information available about the SQL support?

   I am not sure what information you looking for. If there are general
   questions please do let me know. SQL Service is currently under trusted
   testers and if you are looking for details about the service it is
  available
   once you have signed up for the service.

Will it only be available for 'App Engine for Business'?

   Currently we plan to make it available for all App Engine users

And will pricing be simalar as BigTable datastore?

   We are still working on the pricing.

   thanks
   Amit

On Feb 28, 6:06 pm, Amit Agarwal aagar...@google.com wrote:
 Hello everyone,

 We have been working on enabling SQL support for Google App Engine.
  Many
of
 you have been testing this service and many more of you are in the
  queue.
 For those of you in the queue, we will soon be sending you the
  invites to
 try out this service.

 If you would like to try out Google SQL Service please sign-up
 here
   https://spreadsheets0.google.com/a/google.com/viewform?hl=enhl=enfo..
  .
 .

 thanks
 Amit

 --
 Amit Agarwal | Product Manager | Google SQL Service

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

   --
   Amit Agarwal | Product Manager | Google SQL Service

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

 --
 Amit Agarwal | Product Manager | Google | 650-253-4393 (w) 510-304-2205 (c)

-- 
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: Google SQL Service Trusted Testers Signup

2011-03-01 Thread Carlos Aguilar Moreno
We're in the same situation. We've more experience in relational databases, but 
we need to know when it would be in production...and reliable, because we're 
trying to start a new project.

Also is important pricing.


El 01/03/2011, a las 09:16, Marcel Overdijk escribió:

 I understand Amit, np
 
 I will wait until more information gets available.
 Do you have any idea when this information will be available? 1
 months, 2 months, 6 months...?
 
 On Mar 1, 9:14 am, Amit Agarwal aagar...@google.com wrote:
 Unfortunately, currently we don't have any pricing related information that
 we can share publicly. Once we have something we will do so.
 
 Thanks
 Amit
 
 On Mon, Feb 28, 2011 at 3:09 PM, Marcel Overdijk
 marceloverd...@gmail.comwrote:
 
 
 
 Thanks Amit,
 
 I understand Google is still working on the prices.
 But this is important aspect for me to decide to go for SQL or
 BigTable.
 
 I have a background with SQL so that might be easier for me.
 
 When do you think there will be more information available about
 pricing?
 I'm not looking for concrete prices but would like to have an idea of
 it (compared to BigTable).
 
 Cheers,
 Marcel
 
 On Feb 28, 11:15 pm, Amit Agarwal aagar...@google.com wrote:
 Hi Marcel,
 
 Comments inline.
 
 On Mon, Feb 28, 2011 at 1:05 PM, Marcel Overdijk
 marceloverd...@gmail.comwrote:
 
 Is there more information available about the SQL support?
 
 I am not sure what information you looking for. If there are general
 questions please do let me know. SQL Service is currently under trusted
 testers and if you are looking for details about the service it is
 available
 once you have signed up for the service.
 
 Will it only be available for 'App Engine for Business'?
 
 Currently we plan to make it available for all App Engine users
 
 And will pricing be simalar as BigTable datastore?
 
 We are still working on the pricing.
 
 thanks
 Amit
 
 On Feb 28, 6:06 pm, Amit Agarwal aagar...@google.com wrote:
 Hello everyone,
 
 We have been working on enabling SQL support for Google App Engine.
 Many
 of
 you have been testing this service and many more of you are in the
 queue.
 For those of you in the queue, we will soon be sending you the
 invites to
 try out this service.
 
 If you would like to try out Google SQL Service please sign-up
 here
 https://spreadsheets0.google.com/a/google.com/viewform?hl=enhl=enfo..
 .
 .
 
 thanks
 Amit
 
 --
 Amit Agarwal | Product Manager | Google SQL Service
 
 --
 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.
 
 --
 Amit Agarwal | Product Manager | Google SQL Service
 
 --
 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.
 
 --
 Amit Agarwal | Product Manager | Google | 650-253-4393 (w) 510-304-2205 (c)
 
 -- 
 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: Google SQL Service Trusted Testers Signup

2011-03-01 Thread George Moschovitis


 Will it only be available for 'App Engine for Business'?

 Currently we plan to make it available for all App Engine users 


Nice! I thought this feature was restricted to GAEfB apps.

-g.  

-- 
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] Logging message info-level

2011-03-01 Thread Jonas Gehring
Hello.

I try to log something, so that I can see it on the admin console as
[info].

I tried System.out and java.util.Logger#info but there comes nothing
into the logs.
I followed the documentation:
http://code.google.com/intl/de-DE/appengine/docs/java/runtime.html#Logging

System.err and java.util.Logger#warning work well.

thanks.

-- 
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] Can we use Java Development Server in production mode

2011-03-01 Thread Rick Smith
Hello all

We are creating a web application in java on app engine. It has been
successfully deployed and has been used by a number of clients. But
some of our client demands an offline deployment of this web
application. As we know google has provided java development server
for testing our application in development environment. I want to ask
that can we use this java development server for production i.e. can
we run applications on this and distribute to our clients so that they
can work offline. Is this capable enough to hold actual(real time)
stress.

Any suggestion/alternate in this regard will be highly appreciated

Regards

Rick

-- 
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: Can we use Java Development Server in production mode

2011-03-01 Thread Didier Durand
Hello,

I find it extremely risky to do what you want to do: you don't know
where GAE (and its dev kit) is headed to ...

From the architecture perspective, you have 2 main dependencies
probably:
  - servlet API
  - datastore

You can fairly easily change for another container (tomcat for
example) with no change to your devs on that side

The big issue is probably datastore: if you used DAOs, you have to
implement another version of those DAOs for a standard database (mysql
for example) and choose the appropriate version accroding to
environment.

If you don't have DAOs, it's time to write them with the 2 versions.

I would definitely not recommend using dev server for offline
production : lots of troubles in the mid-term for sure.

regards

didier

On Mar 1, 3:01 pm, Rick Smith rick@gmail.com wrote:
 Hello all

 We are creating a web application in java on app engine. It has been
 successfully deployed and has been used by a number of clients. But
 some of our client demands an offline deployment of this web
 application. As we know google has provided java development server
 for testing our application in development environment. I want to ask
 that can we use this java development server for production i.e. can
 we run applications on this and distribute to our clients so that they
 can work offline. Is this capable enough to hold actual(real time)
 stress.

 Any suggestion/alternate in this regard will be highly appreciated

 Regards

 Rick

-- 
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: Can we use Java Development Server in production mode

2011-03-01 Thread Jay Young
Googlers have said many times that you should not use the dev server for 
production.  Among other things, It is single-threaded, so you don't get 
concurrent request handling, and it is not hardened for security.

-- 
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: Can we use Java Development Server in production mode

2011-03-01 Thread Toby Reyelts
Unless I'm mistaken, the Java dev_appserver is multi-threaded, but
everyone's given you good answers. Our first priority is making it a good
development experience.

On Tue, Mar 1, 2011 at 9:56 AM, Jay Young jayyoung9...@gmail.com wrote:

 Googlers have said many times that you should not use the dev server for
 production.  Among other things, It is single-threaded, so you don't get
 concurrent request handling, and it is not hardened for security.

 --
 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: Collection object not being updated

2011-03-01 Thread Ian Marshall
Hi Cosmin,

I do not see any calls to

  pm.makePersistent(...);

I use this to persist newly-created persistent instances.

I know that you do not use transactions, but I do. Within an active
transaction, one can update persistent instances and even persist or
delete entity group child instances without calling

  pm.makePersistent(...);

Have you looked at the GAE persistence blog of Max Ross or Google?
There are some excellent working examples there...

Ian


On Feb 28, 6:55 pm, Cosmin Stefan cosmin.stefandob...@gmail.com
wrote:
 So no ideea anyone?

 On Feb 25, 11:42 pm, Cosmin Stefan cosmin.stefandob...@gmail.com
 wrote:

  Hey,

  I have an issue while trying to update one object in a collection,
  using JDO.

  Here are the facts:
     o i have a class (let's call it BigClass), that has an embedded
  class(SmallClass) containing an ArrayList.
     o I DONT use/need a transaction
     o I query the database to get a List of BigClass items that should
  be modified. I iterate through each of them and I...
     o I remove an element from the list in the SmallClass embedded in
  the current BigClass, the changes are not ALWAYS persisted
     o if I print (log) the object after the change, it looks modified,
  but if i check the DataViewer, the object was not updated
     o i even tried using JDOHelper.makeDirty on the BigClass, with the
  fieldName SmallClass, and it still doesn't work.

  Some relevant code:

                                  Query q = 
  pm.newQuery(BigClass.class,id==:ids);
                                  ListBigClass 
  participatingUsers=(ListBigClass)
  q.execute(participantIDs);

                                  //Update the participants
                                  ListIteratorBigClass 
  it=participatingUsers.listIterator();
                                  BigClass participant;
                                  boolean modified;
                                  while(it.hasNext())
                                  {
                                          participant=it.next();
                                          participant.list.remove(smth);

  JDOHelper.makeDirty(participant,collection);
                                 }
                                 
                                 modify other objects
                                 
                                 pm.close()

  Another thing is that some of the changes I make after this part are
  persisted...

  So, if you have any suggestions, shoot pls!

  Cosmin



-- 
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] eclipse shows error in .jsp but tutorial project runs

2011-03-01 Thread Aisthesis
i'm just trying to learn how the app engine works and was working
through the tutorial. in the guestbook.jsp version, using eclipse, i
started off with some actual errors (missing quotation mark, missing
space) but after getting enough of those corrected that the program
does run in my browser, i still get the x-file sign in eclipse next
to the guestbook.jsp file, and it hasn't gone away after repeated
cleans.

here's my file:
[code]
%@ page contentType=text/html;charset=UTF-8 language=java %
%@ page import=com.google.appengine.api.users.User %
%@ page import=com.google.appengine.api.users.UserService %
%@ page import=com.google.appengine.api.users.UserServiceFactory %

html
body

%
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
if (user != null) {
%
pHello, %= user.getNickname() %! (You can
a href=%= userService.createLogoutURL(request.getRequestURI())
%sign
out/a.)/p

%
} else {
%
pHello! a href=%=
userService.createLoginURL(request.getRequestURI()) %Sign
in/a to include your name with greetings you post./p

%
}
%
/body
/html
[/code]

is there still something wrong with it? and, if not, any ideas as to
what might be causing the eclipse error symbol?

-- 
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: GAE with JPA and multiple jars

2011-03-01 Thread bones
I had to do the same (adding the classes to my persistence unit). If I
did not I would get an entity is not persistable or not enhanced kind
of error.
Did I forget to do something?
What do you mean by if your unlisted-class is set to the proper
value?

On 31 jan, 19:11, jem...@gmail.com jem...@gmail.com wrote:
 You do not need to include the class if your unlisted-class is set to the 
 proper value. However if you would like to list every class explicitly, that 
 is the way to do it, whichever works for you.

 - Reply message -
 From: Thomas the...@gmail.com
 Date: Mon, Jan 31, 2011 4:48 pm
 Subject: [appengine-java] Re: GAE with JPA and multiple jars
 To: google-appengine-java@googlegroups.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] INstalling of eclipse plugin fails with Read Time out

2011-03-01 Thread aBrahaj
Having the same problem. It downloads 64.x from 68.x MB and then it
stops reading any more from the sdkbundle.2 and then it stops.
An error occurred while collecting items to be installed
session context was:(profile=SDKProfile,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=).
Unable to read repository at
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811.jar.
Read timed out

-- 
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: Could Not Verify SSL Certificate

2011-03-01 Thread Rafael Nunes
Same problem here.
Any news?

On Feb 19, 12:05 am, mushion22 goodham...@gmail.com wrote:
 I have the same issue using 1.4.2 on OS X 10.6. The app works fine
 when deployed to production, but has theseSSLcertificateerrors in
 the development server. Seems to affect more than just the Google
 APIs, am having the same issue with RestFB.

 On Feb 18, 3:55 pm, Tod Jiang t...@cherrymind.com wrote:







  Yes, I got the similar issue, and it's ok in SDK1.4.0

  latest spreadsheet api

  Caused by: javax.net.ssl.SSLHandshakeException:CouldnotverifySSL
 certificatefor:https://spreadsheets.google

  On Feb 17, 7:30 pm, Nurettin Omer Hamzaoglu nomerhamzao...@gmail.com
  wrote:

   Hi,

   After I've update to GAE 1.4.2 I started to receive the following error 
   when
   retrieving customer license.
   javax.net.ssl.SSLHandshakeException:CouldnotverifySSLcertificatefor:https://www.googleapis.com/appsmarket/v2sandbox/customerLicense/

   Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
   App Engine API 1.4.2
   Google API Client 1.2.2 alpha

   With the following versions I'mnotgetting the error, everything works
   fine.
   Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
   App Engine API 1.4.0
   Google API Client 1.2.2 alpha

   I've also opened threads 
   athttps://groups.google.com/forum/?lnk=raot#!topic/google-apps-marketpl...
    andhttps://groups.google.com/forum/?lnk=raot#!topic/google-api-java-clie...
    andhttps://groups.google.com/forum/?lnk=raot#!topic/google-api-java-clie...
   .

   Thanks.

-- 
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: Uploading App to GAE with JSP compile Error

2011-03-01 Thread Manny Nathan
Facing the same problem. Any solutions for this?

On Feb 8, 11:22 am, Charms Styler charmssty...@gmail.com wrote:
 is there any solutions for this ?

-- 
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] Using memcache in app engine

2011-03-01 Thread Ian Marshall
I refer to the GAE/J-specific post in the GAE group of the same name
of link:

  
http://groups.google.com/group/google-appengine/browse_thread/thread/3a4789840571c173#

Your line

  HashMapString, UserDetails userMap = (HashMapString,
UserDetails)_cache.get(user.getInstance());

involves casting a javax.cache to a java.util.HashMap. Both of these
classes implement the java.util.Map interface, but it looks like one
may not be cast directly to the other as you attempt.

I have never used javax.cache, but have you tried using the HashMap
constructor HashMap(Map m) to get:

  HashMapString, UserDetails mapTemp = new HashMap(_cache);
  HashMapString, UserDetails userMap =
mapTemp.get(user.getInstance());

This might make it easier to identify exactly where the exception is
occurring.

Enjoy?

-- 
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] eclipse shows error in .jsp but tutorial project runs

2011-03-01 Thread Ikai Lan (Google)
Do you know what the error says when you hover over the X?

Could just be Eclipse weirdness.

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



On Tue, Mar 1, 2011 at 8:05 AM, Aisthesis marsh...@marshallfarrier.comwrote:

 i'm just trying to learn how the app engine works and was working
 through the tutorial. in the guestbook.jsp version, using eclipse, i
 started off with some actual errors (missing quotation mark, missing
 space) but after getting enough of those corrected that the program
 does run in my browser, i still get the x-file sign in eclipse next
 to the guestbook.jsp file, and it hasn't gone away after repeated
 cleans.

 here's my file:
 [code]
 %@ page contentType=text/html;charset=UTF-8 language=java %
 %@ page import=com.google.appengine.api.users.User %
 %@ page import=com.google.appengine.api.users.UserService %
 %@ page import=com.google.appengine.api.users.UserServiceFactory %

 html
body

 %
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
if (user != null) {
 %
pHello, %= user.getNickname() %! (You can
a href=%= userService.createLogoutURL(request.getRequestURI())
 %sign
out/a.)/p

 %
} else {
 %
pHello! a href=%=
 userService.createLoginURL(request.getRequestURI()) %Sign
in/a to include your name with greetings you post./p

 %
}
 %
/body
 /html
 [/code]

 is there still something wrong with it? and, if not, any ideas as to
 what might be causing the eclipse error symbol?

 --
 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] Logging message info-level

2011-03-01 Thread Ikai Lan (Google)
Can you post your logging.properties?

You'll want this setting:

.level=INFO

Once you have that working, it'll be easier to fine tune for more granular
control over levels.


--
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, Mar 1, 2011 at 5:49 AM, Jonas Gehring gehr...@egotec.com wrote:

 Hello.

 I try to log something, so that I can see it on the admin console as
 [info].

 I tried System.out and java.util.Logger#info but there comes nothing
 into the logs.
 I followed the documentation:
 http://code.google.com/intl/de-DE/appengine/docs/java/runtime.html#Logging

 System.err and java.util.Logger#warning work well.

 thanks.

 --
 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] why two regsitered caches share same space

2011-03-01 Thread Ikai Lan (Google)
Yes. The cache you create is just a cache client.

If you require different caches, take a look at the namespace API:

http://code.google.com/appengine/docs/java/multitenancy/overview.html


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



On Mon, Feb 28, 2011 at 7:51 PM, QkQk michael@gmail.com wrote:

 Hi,
  I am running jcache apps in junit  testing under AppEngine sdk 1.4.0
 development mode. I have created two caches , ex, cache1, cache2, and
 using registerecache to register these to cacheManager. There is a
 problem of using same key in two caches. pseudo code as follows:
   cache1.put(counterXYZ, value);
   if (cache2.get(counterXYZ) != null ) {
 cache2.remove(counterXYZ);
  }
  ..
 why this will remove cache1's counterXYZ as well ?
 I seems to me that two caches share the same physical space in GAE.

 --
 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] Best way to delete items

2011-03-01 Thread WillSpecht
I want to allows users to delete entities but not actually delete
them.  Usually I would just create a field, deleted, and set it to
true when the user chooses to delete it.  Then to show these records i
just use owner == userId  deleted ==false.  But this forces me to
use an index for every query I run.  It seems I will very quickly be
using up indexes.

My other solution is to create a new entity deletedItem and store
deleted Items in an entity that corresponds to it.  deleted foo's
would be stored in deletedFoo... This solution also seems to have
major drawbacks.

What is the recommended way to do stored deletes on app 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.



Re: [appengine-java] Best way to delete items

2011-03-01 Thread Ben
Hi Will,

Could you create a child Entity that only has a deleted field, then if
it's true return the parent?

-Ben

http://www.liink.it
http://about.me/benjaminc




On Tue, Mar 1, 2011 at 2:56 PM, WillSpecht willspe...@gmail.com wrote:
 I want to allows users to delete entities but not actually delete
 them.  Usually I would just create a field, deleted, and set it to
 true when the user chooses to delete it.  Then to show these records i
 just use owner == userId  deleted ==false.  But this forces me to
 use an index for every query I run.  It seems I will very quickly be
 using up indexes.

 My other solution is to create a new entity deletedItem and store
 deleted Items in an entity that corresponds to it.  deleted foo's
 would be stored in deletedFoo... This solution also seems to have
 major drawbacks.

 What is the recommended way to do stored deletes on app 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.



-- 
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: Uploading App to GAE with JSP compile Error

2011-03-01 Thread Tom Fishman
I renamed the broken .jsp to .x_jsp

-- 
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] The best practice of engineering with GAE (in Java) in a team

2011-03-01 Thread Tom Fishman
Our team is growing and I need advices on how our team can efficiently work 
with GAE.

The ultimate goal here is to fast test and iterate on our app. The dev 
server is only OK for individuals. We have to use limited *.appspot.com ( 
and versions ) for many engineers and testers. It is not smooth yet.

I wonder if anyone can share the best practices of working with GAE in a 
team. So people like us can learn without making too many mistakes.

Thanks! -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: eclipse shows error in .jsp but tutorial project runs

2011-03-01 Thread marsh...@marshallfarrier.com
nothing comes up when i hover, just shows the hand with finger pointed
but no text. usually multiple cleans get rid of that kind of issue but
for some reason not in this case.

On Mar 1, 2:08 pm, Ikai Lan (Google) ika...@google.com wrote:
 Do you know what the error says when you hover over the X?

 Could just be Eclipse weirdness.

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

 On Tue, Mar 1, 2011 at 8:05 AM, Aisthesis marsh...@marshallfarrier.comwrote:



  i'm just trying to learn how the app engine works and was working
  through the tutorial. in the guestbook.jsp version, using eclipse, i
  started off with some actual errors (missing quotation mark, missing
  space) but after getting enough of those corrected that the program
  does run in my browser, i still get the x-file sign in eclipse next
  to the guestbook.jsp file, and it hasn't gone away after repeated
  cleans.

  here's my file:
  [code]
  %@ page contentType=text/html;charset=UTF-8 language=java %
  %@ page import=com.google.appengine.api.users.User %
  %@ page import=com.google.appengine.api.users.UserService %
  %@ page import=com.google.appengine.api.users.UserServiceFactory %

  html
         body

  %
         UserService userService = UserServiceFactory.getUserService();
         User user = userService.getCurrentUser();
         if (user != null) {
  %
         pHello, %= user.getNickname() %! (You can
         a href=%= userService.createLogoutURL(request.getRequestURI())
  %sign
         out/a.)/p

  %
         } else {
  %
         pHello! a href=%=
  userService.createLoginURL(request.getRequestURI()) %Sign
         in/a to include your name with greetings you post./p

  %
         }
  %
         /body
  /html
  [/code]

  is there still something wrong with it? and, if not, any ideas as to
  what might be causing the eclipse error symbol?

  --
  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: eclipse shows error in .jsp but tutorial project runs

2011-03-01 Thread marsh...@marshallfarrier.com
actually, i did just discover some info on what it doesn't like: Down
in the bottom box where there's a console tab and a few others, there
is also a problems tab. When i click there it says your project must
be configured to use a JDK in order to use JSPs.

Just following the tutorial, i did change web.xml to have
guestbook.jsp as welcome-file but didn't change anything else. web.xml
in its entirety is:
[code]
?xml version=1.0 encoding=utf-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5
servlet
servlet-nameGuestbook/servlet-name
servlet-classguestbook.GuestbookServlet/servlet-class
/servlet
servlet-mapping
servlet-nameGuestbook/servlet-name
url-pattern/guestbook/url-pattern
/servlet-mapping
welcome-file-list
welcome-fileguestbook.jsp/welcome-file
/welcome-file-list
/web-app

[/code]
p.s.: what tags do you use here to set code apart so that it's easier
to read?
On Mar 1, 2:08 pm, Ikai Lan (Google) ika...@google.com wrote:
 Do you know what the error says when you hover over the X?

 Could just be Eclipse weirdness.

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

 On Tue, Mar 1, 2011 at 8:05 AM, Aisthesis marsh...@marshallfarrier.comwrote:



  i'm just trying to learn how the app engine works and was working
  through the tutorial. in the guestbook.jsp version, using eclipse, i
  started off with some actual errors (missing quotation mark, missing
  space) but after getting enough of those corrected that the program
  does run in my browser, i still get the x-file sign in eclipse next
  to the guestbook.jsp file, and it hasn't gone away after repeated
  cleans.

  here's my file:
  [code]
  %@ page contentType=text/html;charset=UTF-8 language=java %
  %@ page import=com.google.appengine.api.users.User %
  %@ page import=com.google.appengine.api.users.UserService %
  %@ page import=com.google.appengine.api.users.UserServiceFactory %

  html
         body

  %
         UserService userService = UserServiceFactory.getUserService();
         User user = userService.getCurrentUser();
         if (user != null) {
  %
         pHello, %= user.getNickname() %! (You can
         a href=%= userService.createLogoutURL(request.getRequestURI())
  %sign
         out/a.)/p

  %
         } else {
  %
         pHello! a href=%=
  userService.createLoginURL(request.getRequestURI()) %Sign
         in/a to include your name with greetings you post./p

  %
         }
  %
         /body
  /html
  [/code]

  is there still something wrong with it? and, if not, any ideas as to
  what might be causing the eclipse error symbol?

  --
  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] How to run/ test my app that use oauth (and interacts with chrome extension) on localhost

2011-03-01 Thread Bit Liner
Hi,
i have an app on google app engine, and a chrome extension that make some 
requests to the app.
I would like to run the app on localhost, so i can control better logs and 
errors of the app.

Can i do it?
What are the oauth address (to get token)?

-- 
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] Using OAuth: why OauthService.getCurrentUsert().getUserId() is null?

2011-03-01 Thread Bit Liner
I have an app that use oauth implementation of google app engine.
But when i need userId and i try to fetch it as shown below:

// code

OAuthService oAuthService=OAuthServiceFactory.getOAuthService();
user = oAuthService.getCurrentUser();

user.getUserId();

// end code

the result is null (but user is different from null).
Is it normal?

I also have tried to fetch userId from UserServiceFactory as shown below:
 
// code

UserService userService=UserServiceFactory.getUserService();

 User user=userService.getCurrentUser();

// end code

the user variable is null.
But the user is logged in, some 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] Re: Can we use Java Development Server in production mode

2011-03-01 Thread Rick Smith
Hi
Thanks for your guidance and giving me a better insight of java development 
server.

@didier
Data store may not be an issue for us because we use mysql as we are using 
RDBMS instance(Sql service) of Google app engine. 

@Jay Young
If development server is single threaded, then it will ofcourse can't be 
used for production mode.

I have tried to store an image in blob store using development server 
offline and it was successful. Still I am confusing abt to use it or not. 
Otherwise I have to make duplicate effort and need to choose some other 
server for offline deployment. I am using GWT on client side code too. Any 
other alternate?

Regards
Rick

-- 
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: Using OAuth: why OauthService.getCurrentUsert().getUserId() is null?

2011-03-01 Thread Bit Liner
Sorry, i have resolved the problem.

-- 
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: Can we use Java Development Server in production mode

2011-03-01 Thread Jay Young
Rick, now that I think of it, the Java dev_appserver is based on Jetty, 
which is multi-threaded.  I was thinking of the python server (at least I'm 
pretty sure I'd heard that).  Toby was absolutely right.

-- 
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: Best way to delete items

2011-03-01 Thread WillSpecht
I guess I don't understand your solution.  I would still need an
indexed query to search for the child entities.

What is the point of creating a child entity?  How does it stop me
from needing an indexed search?


On Mar 1, 3:59 pm, Ben bencarl...@gmail.com wrote:
 Hi Will,

 Could you create a child Entity that only has a deleted field, then if
 it's true return the parent?

 -Ben

 http://www.liink.ithttp://about.me/benjamincOn Tue, Mar 1, 2011 at 2:56 PM, 
 WillSpecht willspe...@gmail.com wrote:
  I want to allows users to delete entities but not actually delete
  them.  Usually I would just create a field, deleted, and set it to
  true when the user chooses to delete it.  Then to show these records i
  just use owner == userId  deleted ==false.  But this forces me to
  use an index for every query I run.  It seems I will very quickly be
  using up indexes.

  My other solution is to create a new entity deletedItem and store
  deleted Items in an entity that corresponds to it.  deleted foo's
  would be stored in deletedFoo... This solution also seems to have
  major drawbacks.

  What is the recommended way to do stored deletes on app 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 
  athttp://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.