[appengine-java] Re: Sending email from Java dev server

2010-12-23 Thread Ian Marshall
The documentation at

  
http://code.google.com/appengine/docs/java/mail/overview.html#Development_Server

states that the GAE/J app dev server does not send E-mails.


On Dec 22, 8:21 pm, Thomas Oldervoll 
wrote:
> Is there a way to enable email sending for the AppEngine Java dev server?
> I've found instructions for 
> Python,
> but I can't figure out how to do this for the Jaav server -
> adding --enable_sendmail does not work.
>
> Thomas

-- 
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-j...@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: Users and UserService: fetch userID without login

2010-12-23 Thread l.denardo
Thanks Ikai, from documentation it seems an ID is not provided.
I'll revert to something like this:

*Retrieve domain's users from the Google Data api
*Store a temporary list of users with associated roles and their email
as an identifier
*When the user logs in, check for a temporary record and set the user
ID to the value provided by the UserService

I'll just have to handle the case of a user changing his email address
between app installation and first login; I think I'll just give
minimum permissions and notify domain administrator to set up proper
permission set for the specific user.

Thanks for your collaboration
Regards
Lorenzo

On Dec 22, 10:19 pm, "Ikai Lan (Google)" 
wrote:
> Does a domain's user list contain an ID? We can't provide this ID to you
> ahead of time.
>
> I think for your use case, it's safe to use the email and handle the edge
> case of someone changing their email.
>
> --
> 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 Wed, Dec 22, 2010 at 2:27 AM, l.denardo wrote:
>
> > Hello,
> > I'm trying to figure out possible solutions for a problem. I'm
> > currently using openID to authenticate users, restricting to Google as
> > an identity provider (both gmail and Google Apps).
>
> > What I need to do is to obtain reliable user information before a user
> > logs in to the application. Use case is simple:
> > *I want to make the app installable to a Google Apps domain (say for
> > the marketplace).
> > *During installation, domain admin logs in to my application, and I
> > retrieve domain's user list (tipically using Google Data java client
> > library)
> > *Domain admin configures roles for my application users (e.g. read
> > only or read/write access).
>
> > Obviously, no other user in the domain has logged in.
> > When the user logs in for the first time, I will have to apply correct
> > roles and permissions, as provided during configuration.
>
> > Best way to do this should be to access the unique userID provided by
> > UserService/User classes. According to documentation, this is the only
> > stable identifier for a given user.
> > So how is it possible to obtain it before the user logs in?
> > I tried to use User class constructor User(java.lang.String email,
> > java.lang.String authDomain), but this does not populate the ID. Is it
> > safe to save the object you obtain from such constructor, store it in
> > a temporary list, then compare it to the value returned by
> > userService.getCurrentUser() and apply roles accordingly?
>
> > Thanks for any help on this
> > Regards
> > Lorenzo
>
> > --
> > 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-j...@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-j...@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: Understanding gwt-dispatch and Singletons/member variables

2010-12-23 Thread l.denardo
I don't fully understand your problem (maybe a few lines of code will
help).

Anyway:
*Member variables in action handlers are usually created as they
should, empty, for my experience
*Memcache is shared across all application instances, so if you
populate your map using the memcache value and then check for it, your
map will always contain the same items once cache is populated.

i.e. what is expected is something like

private Map cacheMap = new HashMap();
//map will be empty
cacheMap.put( memcacheServiceInstance.get(key) );
//cacheMap will be populated always with the same value, if provided
key results in a memcache hit

Regards
Lorenzo

On Dec 22, 12:55 pm, Sky  wrote:
> Hi all,
>
> I use gwt-dispatch in a project and now I have a question concerning
> the gwt-dispatch framework and member variables in ActionHandlers.
> I use guice on server side and bind the ActionHandlers as follow:
> bindHandler(GetXYHandler.class);  <- this is per definition no
> singleton!
>
> In GetXYHandler I have a member variable, which stores the data
> retrieved from Googles MemCacheService:
> private Map cacheMap = new HashMap Serializable>();
>
> When making a server request in the execute method of GetXYHandler the
> cacheMap is filled with objects, when a cache hit in memcache occurs  -
>
> > the cacheMap member variable is not empty anymore!
>
> My understanding of member variables (in example "cacheMap") is, that
> they should be created new in each serverCall if they are not static.
> In my case the cacheMap should be empty each time when the execute
> method is called.
> In my local tests the behaviour is somewhat different. When I test it
> in debug modus locally (different user calls), the cacheMap stays
> always filled like a static variable. Is this the normal behaviour of
> member variables of Actionhandlers? My understanding would say this is
> very curious, because its not a singleton?
> If this is normal behaviour, no member variables could be used,
> because they would not be synchronized...
>
> Thanks for your 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-j...@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] 2 bi-directional one-to-many relationships using jdo?

2010-12-23 Thread Sumi
Hello,
Is it possible to have 2 bi-directional one-to-many relationships:?When I
added the 2nd bi-directional one-to-many relationship it is failing..any
examples of how to handle this?

Example:

User.java
-
 @Persistent(mappedBy = "userA") //bi-directional relationship
  @Element(dependent = "true")
  private Set activities = new HashSet();


@Persistent(mappedBy = "userR") //bi-directional relationship
  @Element(dependent = "true")
  private Set resources = new HashSet();

Thanks,
Sumi

-- 
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-j...@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] GWT and GAE debugging problem

2010-12-23 Thread Cesar Ruiz
Yest, its fixed!.

But another real important question appeared. When trying to retrieve the
list of objects "Book", an exception is thrown, sayin:

GRAVE: javax.servlet.ServletContext log: Exception while dispatching
incoming RPC call
com.google.gwt.user.client.
rpc.SerializationException: Type
'org.datanucleus.store.appengine.query.StreamingQueryResult' was not
included in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded.

Apparently, its a big problem Google hasnt fixed yet?. What can I do?.

Thank you.


On 22 December 2010 21:39, Ikai Lan (Google)

> wrote:

> Have you asked your question here?
>
> http://groups.google.com/group/Google-Web-Toolkit
>
> --
> 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 Wed, Dec 15, 2010 at 10:06 AM, kidowell  wrote:
>
>> Hey.
>>
>> Im starting with GAE, and im making an RCP program (a book address), on
>> the server side I've got all the methods for manipulating the datastore (I'm
>> using JPA), and on the client side I'm using GWT as a framework.
>>
>> When debugging it turns out, that I can only see the server side, and
>> program never stops in any breakpoint on the client side.
>>
>> Is there any way that I can debug on both side sas the program runs.
>> Because, just debugging on the server side is not very helpful.
>>
>> Thank you in advanced for your recomendation.
>>
>> Kido.
>>
>> --
>> 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-j...@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-j...@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.
>



-- 
Cesar Ruiz.

-- 
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-j...@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: Persist child - Problem

2010-12-23 Thread lisandrodc
Hi! The parent class "Partido" has the annotation:

@Persistent( defaultFetchGroup = "true")
private List equiposPartido;

Regards!
Lisandro

On Dec 21, 6:50 pm, andrew  wrote:
> can you show the parent class, with the field for for the Equipo
> child?
>
> It will no doubt have @Persistence annotations too...

-- 
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-j...@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] Queue problems

2010-12-23 Thread BOB
Hi this is BOB trying to use queue task but its giving a lot of problems:

1. How to send parameters or set parameters for a  POST method?
2.the  is not recognized in queue.xml

please reply asap

thnx-BOB :)

-- 
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-j...@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] Queue task problem

2010-12-23 Thread BOB
Hi this is BOB trying to use queue task but its giving a lot of problems:

1. How to send parameters or set parameters for a  POST method?
2.the  is not recognized in queue.xml

please reply asap

thnx-BOB :)

-- 
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-j...@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] Persist a child object of an existing Parent class

2010-12-23 Thread lisandrodc
Hi! I have a problem when add a class "Equipo"(child) one
"Torneo"(parent existing class).
The code:
Transaction tx = pm.currentTransaction();
try {
tx.begin();
unTorneo.agregarEquipo(unEquipo);
//pm.makePersistent(unEquipo);
Torneo tor = (Torneo) pm.detachCopy(unTorneo);
pm.makePersistent(tor);
tx.commit();

System.out.println("persistioTorneoConEquipo");
} finally {
 //pm.close();
if (tx.isActive()) {
tx.rollback();
}
}
}
The exception:
INTERNAL_SERVER_ERROR
Caused by:
java.lang.NullPointerException
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.deleteObject(Da
tastorePersistenceHandler.java:
581)
at
org.datanucleus.store.appengine.DatastoreFKListStoreSpecialization.removeAt
(DatastoreFKListStoreSpecialization.java:
145)
at
org.datanucleus.store.mapped.scostore.FKListStore.removeAt(FKListStore.java :
525)
at
org.datanucleus.store.mapped.scostore.AbstractListStore.remove(AbstractList
Store.java:
318)
at org.datanucleus.sco.backed.List.remove(List.java:907)
at
org.datanucleus.sco.SCOListIterator.remove(SCOListIterator.java:
145)
at
org.datanucleus.sco.SCOUtils.updateListWithListElements(SCOUtils.java:
828)
at org.datanucleus.sco.simple.List.attachCopy(List.java:232)
at
org.datanucleus.store.fieldmanager.AttachFieldManager.storeObjectField(Atta
chFieldManager.java:
205)
at
org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStat
eManager.java:
1037)
at model.Torneo.jdoProvideField(Torneo.java)
at model.Torneo.jdoProvideFields(Torneo.java)
at
org.datanucleus.state.JDOStateManagerImpl.provideFields(JDOStateManagerImpl 
.java:
2715)
at
org.datanucleus.state.JDOStateManagerImpl.internalAttachCopy(JDOStateManage
rImpl.java:
4055)
at
org.datanucleus.state.JDOStateManagerImpl.attachCopy(JDOStateManagerImpl.ja
va:
3987)
at
org.datanucleus.ObjectManagerImpl.attachObjectCopy(ObjectManagerImpl.java:
1778)
at
org.datanucleus.ObjectManagerImpl.persistObjectInternal(ObjectManagerImpl.j
ava:
1260)
at
org.datanucleus.ObjectManagerImpl.persistObject(ObjectManagerImpl.java:
1175)
at
org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceM
anager.java:
669)
at
org.datanucleus.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceMana
ger.java:
694)
at
controllers.ControladorTorneo.agregarEquipoConTorneo(ControladorTorneo.java :
135)
at struts.action.NuevoEquipo.execute(NuevoEquipo.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

-- 
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-j...@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: low-lewel put method outside of a transaction

2010-12-23 Thread ss.require
Thanks very much. That is exactly what I need.

On 22 Грд, 23:49, Stephen Johnson  wrote:
> You might want to take a look at CommittedButStillApplyingException
>
>
>
> On Tue, Dec 21, 2010 at 1:08 PM, ss.require  wrote:
> > Please, help!
> > According to this:
> >http://code.google.com/intl/uk-UA/appengine/articles/life_of_write.html.
>
> > Let's suppose that I call the low-level put method outside of a
> > transaction and an exception throws. If exception occures at the
> > commit phase entity won't be saved otherwise if exception occures at
> > the applyed phase entity will be saved.
>
> > Is there a way to find out entity is really saved or not in the
> > datastore after exception?
>
> > If I execute the same operation inside a transaction, for exampe:
> > Transaction tx = datastore.beginTransaction();
> > try {
> >   put entity code ...
> >  tx.commit();
> > } finally {
> >  if (tx.isActive()) {
> >tx.rollback();
> > }
> > Suppose exception occures in the apply phase, then  tx.rollback() will
> > be fired? Can it make sure that enitty really won't be saved in 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-j...@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-j...@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: What sort of indexes does GAE use for queries that use only equality and ancestor filters?

2010-12-23 Thread ss.require
I've already found the answer by myself. The answer is here:
http://www.google.com/intl/uk-UA/events/io/2009/sessions/BuildingScalableComplexApps.html.
Just few words. For queries with multiple equality filters GAE uses
merge-join. GAE scans single indexes for every equality filter in the
query and merge results. For more details you can see very helpful
video by the link above.

On 19 Грд, 17:53, "ss.require"  wrote:
> Documentation says:
>
> App Engine provides automatic indexes for the following forms of
> queries: queries using only equality and ancestor filters
>
> For implementation of this feature GAE uses single-property indexes or
> composite indexex or something else? If composite indexexes  then how
> many indexes are used (for example: all possible permutations for
> properties)?

-- 
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-j...@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] Transaction locking with grandparent -> parent -> grandchild

2010-12-23 Thread Michael Green


I have a relationship model with one-to-many relationships between a 
grandparent, multiple parents each with multiple children.  If I model these 
as owned, will wrapping an update to one of the grandchildren inside a 
transaction lock the entire entity group for all descendants of a single 
grandparent?  Does the answer differ if the ownership is uni-directional vs. 
bidirectional?

-- 
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-j...@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: Upload to blobstore without form

2010-12-23 Thread crllvnc
Helpful indeed !
Thanks Tim.

-- 
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-j...@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: Processing large xml-files with JAXB in app engine

2010-12-23 Thread crllvnc
I've been using JAXB for xml file unmarshalling in an upload servlet.
As far as I remember, the only size limit I have faced is related to
the 30s timeout.

Here are my imports :
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.UnmarshalException;
import javax.xml.bind.Unmarshaller;

Maybe switching from JAXB2 to JAXB would solve (part of) your
problems.
Moreover, JAXB does not require any jar.

-- 
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-j...@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] maven-gae-plugin

2010-12-23 Thread Patrick Twohig
Hi,

I was having difficulty debugging my application using Maven plugin for App
Engine.  As soon as I connect the debugger the process stops.  Is anybody
else experiencing this issue?  Or, alternatively, is there any other means
to get maven+gae+eclipse and the debugger working?

Thanks,
Patrick.

-- 
Patrick H. Twohig.

Namazu Studios
P.O. Box 34161
San Diego, CA 92163-4161

-- 
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-j...@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: What sort of indexes does GAE use for queries that use only equality and ancestor filters?

2010-12-23 Thread ss.require
But I can't figure out what index(any other mechanism) GAE uses for
query with only one ancestor filter? I want to know what is efficient
for one-many relationship: store a reference to an opposite object as
a simple reference property(Key object) or store one in the primary
key as the parent key?

On 23 Грд, 16:30, "ss.require"  wrote:
> I've already found the answer by myself. The answer is 
> here:http://www.google.com/intl/uk-UA/events/io/2009/sessions/BuildingScal
> Just few words. For queries with multiple equality filters GAE uses
> merge-join. GAE scans single indexes for every equality filter in the
> query and merge results. For more details you can see very helpful
> video by the link above.
>
> On 19 Грд, 17:53, "ss.require"  wrote:
>
>
>
> > Documentation says:
>
> > App Engine provides automatic indexes for the following forms of
> > queries: queries using only equality and ancestor filters
>
> > For implementation of this feature GAE uses single-property indexes or
> > composite indexex or something else? If composite indexexes  then how
> > many indexes are used (for example: all possible permutations for
> > properties)?

-- 
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-j...@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] Relationship modeling for a Post and a Comment: which option will perform best in GAE

2010-12-23 Thread Michael Green
2 Classes: a Post and a Comment; there is a one to many relationship with
one Post having many Comments



I’m thinking of a couple of options



Option 1: The Post contains a list of keys to a Comment (and the Comment
does not know directly about which Post it pertains to)



Option 2: The Comment contains a key to its Post (and the Comment has no
direct knowledge of Comments)



In both cases, I would like to have the ability to query in either
direction.  I think that GAE would support that since (using Option 1 as an
example) a Comment could always query for Posts containing its key in the
MVC property.  My question is whether there is a significant performance
difference between querying in either direction.


Note:  I’m avoiding each class having a key to the other to avoid the need
for a transaction boundary to maintain referential integrity.  Would like to
hear opinions.  Thanks!

~Michael

-- 
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-j...@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] Dashboard not showing Avg cpu and /favicon.ico -> This URI uses a high amount of CPU and should be optimized.??

2010-12-23 Thread Gal Dolber
 *Current Load [image:
help]
*  URI  Requestslast 13 hrs Avg CPU (API)last hr % CPUlast 13 hrs
/favicon.ico
 92 884 (0) 33%
/testapp/service
 52 0 (0) 23%
/authLogin
 20 160 (88) 5%
/testapp/testapp.nocache.js
 16 0 (0) 0%
/testapp.html
 8 0 (0) 0%
/logo.png
 7 0 (0) 0%
/_ah/warmup
 6 0 (0) 29%
/authCallback
 4 390 (194) 2%
I am using appstats, could that cause this problem?
appid: 21nubes-demo

-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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-j...@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: What sort of indexes does GAE use for queries that use only equality and ancestor filters?

2010-12-23 Thread Gal Dolber
This is what you want: http://www.youtube.com/watch?v=ofhEyDBpngM
I also waiting for it!

2010/12/23 ss.require 

> But I can't figure out what index(any other mechanism) GAE uses for
> query with only one ancestor filter? I want to know what is efficient
> for one-many relationship: store a reference to an opposite object as
> a simple reference property(Key object) or store one in the primary
> key as the parent key?
>
> On 23 Грд, 16:30, "ss.require"  wrote:
> > I've already found the answer by myself. The answer is here:
> http://www.google.com/intl/uk-UA/events/io/2009/sessions/BuildingScal
> > Just few words. For queries with multiple equality filters GAE uses
> > merge-join. GAE scans single indexes for every equality filter in the
> > query and merge results. For more details you can see very helpful
> > video by the link above.
> >
> > On 19 Грд, 17:53, "ss.require"  wrote:
> >
> >
> >
> > > Documentation says:
> >
> > > App Engine provides automatic indexes for the following forms of
> > > queries: queries using only equality and ancestor filters
> >
> > > For implementation of this feature GAE uses single-property indexes or
> > > composite indexex or something else? If composite indexexes  then how
> > > many indexes are used (for example: all possible permutations for
> > > properties)?
>
> --
> 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-j...@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.
>
>


-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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-j...@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] GWT and GAE debugging problem

2010-12-23 Thread A. Stevko
Are you trying to transport a query result set from GAE to GWT?
Sorry but JDO/JPA persistent objects are not serializable (just like
EntityBeans).
You will need to do something to make the objects portable.
I suggest checking out Objectify or creating your own Data Transfer Objects.
http://code.google.com/p/objectify-appengine/


On Thu, Dec 23, 2010 at 4:44 AM, Cesar Ruiz  wrote:

> Yest, its fixed!.
>
> But another real important question appeared. When trying to retrieve the
> list of objects "Book", an exception is thrown, sayin:
>
> GRAVE: javax.servlet.ServletContext log: Exception while dispatching
> incoming RPC call
> com.google.gwt.user.client.
> rpc.SerializationException: Type
> 'org.datanucleus.store.appengine.query.StreamingQueryResult' was not
> included in the set of types which can be serialized by this
> SerializationPolicy or its Class object could not be loaded.
>
> Apparently, its a big problem Google hasnt fixed yet?. What can I do?.
>
> Thank you.
>
>
> On 22 December 2010 21:39, Ikai Lan (Google) 
> 
> > wrote:
>
>> Have you asked your question here?
>>
>> http://groups.google.com/group/Google-Web-Toolkit
>>
>> --
>> 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 Wed, Dec 15, 2010 at 10:06 AM, kidowell  wrote:
>>
>>> Hey.
>>>
>>> Im starting with GAE, and im making an RCP program (a book address), on
>>> the server side I've got all the methods for manipulating the datastore (I'm
>>> using JPA), and on the client side I'm using GWT as a framework.
>>>
>>> When debugging it turns out, that I can only see the server side, and
>>> program never stops in any breakpoint on the client side.
>>>
>>> Is there any way that I can debug on both side sas the program runs.
>>> Because, just debugging on the server side is not very helpful.
>>>
>>> Thank you in advanced for your recomendation.
>>>
>>> Kido.
>>>
>>> --
>>> 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-j...@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-j...@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.
>>
>
>
>
> --
> Cesar Ruiz.
>
>  --
> 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-j...@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.
>



-- 
-- A. Stevko
===
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
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-j...@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] Dashboard not showing Avg cpu and /favicon.ico -> This URI uses a high amount of CPU and should be optimized.??

2010-12-23 Thread A. Stevko
I suggest clicking thru that link and seeing what is logged.
Likely the .ico hit is causing an instance to be warmed up.


On Thu, Dec 23, 2010 at 1:22 PM, Gal Dolber  wrote:

>  *Current Load [image: 
> help]
> *  URI  Requestslast 13 hrs Avg CPU (API)last hr % CPUlast 13 hrs
> /favicon.ico
>  92 884 (0) 33%
> /testapp/service
>  52 0 (0) 23%
> /authLogin
>  20 160 (88) 5%
> /testapp/testapp.nocache.js
>  16 0 (0) 0%
> /testapp.html
>  8 0 (0) 0%
> /logo.png
>  7 0 (0) 0%
> /_ah/warmup
>  6 0 (0) 29%
> /authCallback
>  4 390 (194) 2%
> I am using appstats, could that cause this problem?
> appid: 21nubes-demo
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/
>
>
>
>
>  --
> 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-j...@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.
>



-- 
-- A. Stevko
===
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
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-j...@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] Dashboard not showing Avg cpu and /favicon.ico -> This URI uses a high amount of CPU and should be optimized.??

2010-12-23 Thread Gal Dolber
I have always on enabled.
When I get into each request it shows the avg cpu.
/favicon.ico is not there, but even if it where, it is a static resource and
cannot produce a new instance.
It looks like a bug on the dashboard

On Thu, Dec 23, 2010 at 6:48 PM, A. Stevko  wrote:

> I suggest clicking thru that link and seeing what is logged.
> Likely the .ico hit is causing an instance to be warmed up.
>
>
> On Thu, Dec 23, 2010 at 1:22 PM, Gal Dolber  wrote:
>
>>  *Current Load [image: 
>> help]
>> *  URI  Requestslast 13 hrs Avg CPU (API)last hr % CPUlast 13 hrs
>> /favicon.ico
>>  92 884 (0) 33%
>> /testapp/service
>>  52 0 (0) 23%
>> /authLogin
>>  20 160 (88) 5%
>> /testapp/testapp.nocache.js
>>  16 0 (0) 0%
>> /testapp.html
>>  8 0 (0) 0%
>> /logo.png
>>  7 0 (0) 0%
>> /_ah/warmup
>>  6 0 (0) 29%
>> /authCallback
>>  4 390 (194) 2%
>> I am using appstats, could that cause this problem?
>> appid: 21nubes-demo
>>
>> --
>> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>>
>> http://code.google.com/p/guit/
>>
>>
>>
>>
>>  --
>> 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-j...@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.
>>
>
>
>
> --
> -- A. Stevko
> ===
> "If everything seems under control, you're just not going fast enough." M.
> Andretti
>
>
>
>
>
>  --
> 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-j...@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.
>



-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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-j...@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: Not sending email with Javamail and no error

2010-12-23 Thread captain

Hi all,

My code was working two weeks ago and now I found myself in the same
situation of the original post

Hard to tell what is going on with the java mail service. Definitely
something changed.

Claudio






Of
On Dec 18, 7:29 am, "@bh!jiT"  wrote:
> Ok few things when dealing with mail API
>
> First and most important thing is* from address* could only be any of the
> below for security reasons, that means you can't send mails from any id you
> like
>
> The sender address must be one of the following types:
>
>    - The address of a registered administrator for the application
>    - The address of the user for the current request signed in with a Google
>    Account. You can determine the current user's email address with the
>    Users API .
>    - Any valid email receiving address for the app (such as
>    x...@app-id.appspotmail.com).
>
> I use the last one, use anything you like ad...@app-id.appspotmail.com if
> you want the receiver of this mail to reply to email id of your choice use
> replyTo to set that.
>
> Now mails can only be sent from applications deployed on app server.
> Local/dev server doesn't send any mails at all but yes it does display the
> logs in console.
>
> *Last bit of detail is by default logging.properties in WEB-INF folder is
> set to WARN change it to info i.e.
> .level = INFO
> This will show you the messages on console.*
>
> Hope the above helps, I struggled a lot too :)

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