[google-appengine] Re: Validation code

2010-07-20 Thread Saqib Ali
I have a similar problem:

I had already used my cell phone number for SMS Verification for App
Engine (consumer edition). But now when I try to use the same phone
for App Engine for Business it complains, "The phone number has been
sent too many messages or has already been used to confirm an
account." . How can I sign for App Engine for Business now? Help..




On Jul 20, 11:35 am, saturdayplace  wrote:
> I've used my phone number to validate app engine for one domain
> already, but I'd like to do it for a different domain. When I attempt
> to create my first app for that domain, I'm asked to enter in my
> number, but when I do I'm told that number has already been used.  Is
> there any way I can get manually activated?

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



[google-appengine] Java files not compiling upon Run As -> Web Application

2010-07-21 Thread Saqib Ali
I just configured Eclipse on Linux machine. However whenever I do Run
As -> Web Application, it doesn't recompile the java files, even
though I have Project -> Build Automatically checked.

The java files get compiled only when I do a "Deploy Project to Google
App Engine"

What gives? Any ideas what could be causing this issue?

Thanks,
Saqib

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



[google-appengine] How to check if the user is logged in using Javascript?

2010-07-30 Thread Saqib Ali
How do I check if the user is currently logged in using their Google
Account in Javascript? I can set some hidden field to do that, but is
there a more elegant way to do this?

saqib

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



[google-appengine] Re: How to check if the user is logged in using Javascript?

2010-08-02 Thread Saqib Ali
thank ya'll for the responses. so it seems that without making further
trips to the server, the only way to check to see if the user is
logged in is to set some cookie/hidden fields...

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



[google-appengine] Unable to access the Datastore Viewer

2010-08-02 Thread Saqib Ali
I am getting the following err msg when trying to access the Datastore
Viewer in the appengine console:

Server Error
A server error has occurred.
Return to Applications screen »


Anyone else seeing this issue?

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



[google-appengine] ArrayList users.contains(user) stops working after switching to Federated Login

2010-08-02 Thread Saqib Ali
ArrayList users = new ArrayList();
if (users.contains(user)){


}

stops working after switching to Federated Login. What gives? (the
ArrayList of users is populated at the time of "if" stmt)

I get the following output:

Uncaught exception from servlet
java.lang.NullPointerException
at
com.google.appengine.runtime.Request.process-69e0b30dcb3a0b93(Request.java)
at com.google.appengine.api.users.User.equals(User.java:158)
at java.util.ArrayList.indexOf(Unknown Source)
at java.util.ArrayList.contains(Unknown Source)
at org.datanucleus.sco.backed.ArrayList.contains(ArrayList.java:371)
at
org.apache.jsp.refreshVotingBooth_jsp._jspService(refreshVotingBooth_jsp.java:
131)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:
97)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:
35)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
238)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
at
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
135)
at
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
250)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:7115)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:7113)
at
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
398)
at com.google.net.rpc.impl.Server$2.run(Server.java:852)
at
com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
56)
at
com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
576)
at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
at com.google.net.rpc.impl.Server.processRequest(Server.java:369)
at
com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
442)
at
com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
319)
at
com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
290)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
474)
at
com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
831)
at
com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
207)
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
103)
at
com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
251)
at com.google.apphosting.runtime.JavaRuntime
$RpcRunnable.run(JavaRuntime.java:417)
at java.lang.Thread.run(Unknown Source)


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



[google-appengine] Re: Unable to access the Datastore Viewer

2010-08-02 Thread Saqib Ali
hmmm. had to programmatically empty out the datastore before i could
use the Datastore Viewer again. good thing this was just a test app :)



On Aug 2, 9:47 am, Saqib Ali  wrote:
> I am getting the following err msg when trying to access the Datastore
> Viewer in the appengine console:
>
> Server Error
> A server error has occurred.
> Return to Applications screen »
>
> Anyone else seeing this issue?

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



[google-appengine] Verisign's PIP OpenID and the Federated Logon in GAE

2010-08-03 Thread Saqib Ali
Hello All,

I am trying to make the Verisign's PIP OpenID work with the Federated
Logon in GAE, but to no avail. Anyone else running into the same
issue? Other OpenID providers work fine for the app.

You can try it out at:
http://crowdedintelligence.appspot.com

Thanks,
Saqib

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



[google-appengine] Re: Verisign's PIP OpenID and the Federated Logon in GAE

2010-08-05 Thread Saqib Ali
any thoughts on this

On Aug 3, 11:03 am, Saqib Ali  wrote:
> Hello All,
>
> I am trying to make the Verisign's PIP OpenID work with the Federated
> Logon in GAE, but to no avail. Anyone else running into the same
> issue? Other OpenID providers work fine for the app.
>
> You can try it out at:http://crowdedintelligence.appspot.com
>
> Thanks,
> Saqib

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



[google-appengine] check for existence of a entity (object) in the datastore?

2010-08-08 Thread Saqib Ali
How do I check if an entity (object) exist in the datastore? I am
using an application generated Unencoded String for the key...


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



[google-appengine] Unable to getFederatedIdentity() for stored user objects

2010-08-08 Thread Saqib Ali
I am storing all the users who have logged in as user objects in the
datastore. however, whenever i try to getFederatedIdentity() for a
stored user object, it fails. i can do a getNickname() but not
getFederatedIdentity() what gives


saqib

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



[google-appengine] Re: check for existence of a entity (object) in the datastore?

2010-08-08 Thread Saqib Ali
Stephen,

Thanks for the response. Do you have some sample code for this? I have
trying to do exactly this, but can't seem to make it work. I am new to
datastore..

saqib

On Aug 8, 10:35 am, Stephen Johnson  wrote:
> If your using Java you can create an encoded key by using the
> KeyFactory class (I don't know the equivalent in Python) and then
> create a query to just query for the key field (not the entire entity)
> and see if you get any results back. You want to just query for the
> key field alone so that it is as fast as possible. I don't know if
> there is any other way than actually performing a query.
>
> Stephen
>
> On Aug 8, 9:04 am, Saqib Ali  wrote:
>
>
>
> > How do I check if an entity (object) exist in the datastore? I am
> > using an application generated Unencoded String for the key...

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



[google-appengine] Re: check for existence of a entity (object) in the datastore?

2010-08-08 Thread Saqib Ali
yup Java/JDO. Thanks in advance! :)


On Aug 8, 11:17 am, Stephen Johnson  wrote:
> Hi Saqib,
> It depends on what your using. If your using Java/JDO, then I can
> write something up for you.
> Stephen
>
> On Aug 8, 10:50 am, Saqib Ali  wrote:
>
>
>
> > Stephen,
>
> > Thanks for the response. Do you have some sample code for this? I have
> > trying to do exactly this, but can't seem to make it work. I am new to
> > datastore..
>
> > saqib
>
> > On Aug 8, 10:35 am, Stephen Johnson  wrote:
>
> > > If your using Java you can create an encoded key by using the
> > > KeyFactory class (I don't know the equivalent in Python) and then
> > > create a query to just query for the key field (not the entire entity)
> > > and see if you get any results back. You want to just query for the
> > > key field alone so that it is as fast as possible. I don't know if
> > > there is any other way than actually performing a query.
>
> > > Stephen
>
> > > On Aug 8, 9:04 am, Saqib Ali  wrote:
>
> > > > How do I check if an entity (object) exist in the datastore? I am
> > > > using an application generated Unencoded String for the key...

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



[google-appengine] Persistent ArrayList of Serialized Object resulting in " is not a supported property type" exception

2010-08-08 Thread Saqib Ali
I have an object defined Serializable as follows:

public class comment implements Serializable {
/**
 *
 */
private static final long serialVersionUID = 1L;
private String commentText;
private String commenterFedID;

public comment (){
this.commentText = "";
this.commenterFedID = "";
}

public comment (String commentText, String commenterFedID){
this.commentText = commentText;
this.commenterFedID = commenterFedID;
}


public String getCommentText() {
return commentText;
}


public String getCommenterFedID() {
return commenterFedID;
}
}



I am using this serialized object in a Data Class as follows:

@Persistent
private ArrayList comments = new ArrayList();


But it generates the following exception:

java.lang.IllegalArgumentException: comments: testapp.comment is not a
supported property type.
at
com.google.appengine.api.datastore.DataTypeUtils.checkSupportedSingleValue(DataTypeUtils.java:
184)
at
com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:
149)
at
com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:
123)
at com.google.appengine.api.datastore.Entity.setProperty(Entity.java:
280)
at
org.datanucleus.store.appengine.DatastoreFieldManager.storeObjectField(DatastoreFieldManager.java:
843)
at
org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStateManager.java:
1037)
at testapp.idea.jdoProvideField(idea.java)
at testapp.idea.jdoProvideFields(idea.java)
at
org.datanucleus.state.JDOStateManagerImpl.provideFields(JDOStateManagerImpl.java:
2715)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.updateObject(DatastorePersistenceHandler.java:
534)
at
org.datanucleus.state.JDOStateManagerImpl.flush(JDOStateManagerImpl.java:
4576)
at
org.datanucleus.ObjectManagerImpl.flushInternal(ObjectManagerImpl.java:
2814)
at org.datanucleus.ObjectManagerImpl.flush(ObjectManagerImpl.java:
2754)
at org.datanucleus.ObjectManagerImpl.preCommit(ObjectManagerImpl.java:
2893)
at
org.datanucleus.TransactionImpl.internalPreCommit(TransactionImpl.java:
369)
at org.datanucleus.TransactionImpl.commit(TransactionImpl.java:256)
at org.datanucleus.ObjectManagerImpl.close(ObjectManagerImpl.java:
801)
at
org.datanucleus.jdo.JDOPersistenceManager.close(JDOPersistenceManager.java:
271)
at testapp.saveComment.doGet(saveComment.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:
97)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:
35)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
238)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
at
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
135)
at
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
250)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:7115)
at com.google.apphosting.base.RuntimePb

[google-appengine] Re: check for existence of a entity (object) in the datastore?

2010-08-08 Thread Saqib Ali
@Stephen,

Thank you very much. This looks promising. I will let you know how it
goes.

Saqib

On Aug 8, 12:41 pm, Stephen Johnson  wrote:
> It took me a little bit to figure out what was going on because in the
> datastore the key property is __key__ so if you query using the
> Datastore Viewer you would do something like:
>
>   select __key__ from Something
>
>   but when using JDO you've got to use the attribute name of the key
> field and JDO will map it to __key__
>
> Ok, so what I've done is to have all my datastore classes inherit from
> my own abstract Entity class where I've defined the following:
>
>     @PrimaryKey
>     @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>     @Extension(vendorName="datanucleus", key="gae.encoded-pk",
> value="true")
>     private String ek;  // some use encodedKey for this name, but I
> keep them short to save datastore space
>
>     @Persistent
>     @Extension(vendorName="datanucleus", key="gae.pk-name",
> value="true")
>     private String id;
>
> Then I wrote this utility method which works for any class that I want
> to check to see if a key already exists:
>
>         public static boolean doesEntityExist(Class
> entityClass, String id) {
>             PersistenceManager pm = null;
>             try {
>                 pm = PMF.getPersistenceManager();
>                 String idKeyString =
> KeyFactory.createKeyString(entityClass.getSimpleName(), id);
>                 Query q = pm.newQuery("select ek from " + 
> entityClass.getName()
> +
>                                                           " where ek = '" + 
> idKeyString + "'");
>                 List keys = (List)q.execute();
>                 return keys.size() > 0;
>             } catch (Exception e) {
>                 throw new RuntimeException(e);
>             } finally {
>                 if (pm != null) pm.close();
>             }
>         }
>
> So, if this is in a class called Utility and you have an entity class
> Employee and you want to check for an unencoded key string of
> "EMP-1234" just call it like this:
>
>    if (Utility.doesEntityExist(Employee.class, "EMP-1234")) {
>      // entity with key already exists
>    }
>
> Let me know if this helps,
> Stephen
>
> On Aug 8, 11:52 am, Saqib Ali  wrote:
>
>
>
> > yup Java/JDO. Thanks in advance! :)
>
> > On Aug 8, 11:17 am, Stephen Johnson  wrote:
>
> > > Hi Saqib,
> > > It depends on what your using. If your using Java/JDO, then I can
> > > write something up for you.
> > > Stephen
>
> > > On Aug 8, 10:50 am, Saqib Ali  wrote:
>
> > > > Stephen,
>
> > > > Thanks for the response. Do you have some sample code for this? I have
> > > > trying to do exactly this, but can't seem to make it work. I am new to
> > > > datastore..
>
> > > > saqib
>
> > > > On Aug 8, 10:35 am, Stephen Johnson  wrote:
>
> > > > > If your using Java you can create an encoded key by using the
> > > > > KeyFactory class (I don't know the equivalent in Python) and then
> > > > > create a query to just query for the key field (not the entire entity)
> > > > > and see if you get any results back. You want to just query for the
> > > > > key field alone so that it is as fast as possible. I don't know if
> > > > > there is any other way than actually performing a query.
>
> > > > > Stephen
>
> > > > > On Aug 8, 9:04 am, Saqib Ali  wrote:
>
> > > > > > How do I check if an entity (object) exist in the datastore? I am
> > > > > > using an application generated Unencoded String for the key...

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



[google-appengine] Re: Persistent ArrayList of Serialized Object resulting in " is not a supported property type" exception

2010-08-08 Thread Saqib Ali
Stephen,

had already tried that earlier. tried it now again. no luck :(



On Aug 8, 3:42 pm, Stephen Johnson  wrote:
> Hi Saqib,
> Try this:
>   �...@persistent(serialized = "true")
>
> Stephen
>
> On Aug 8, 2:52 pm, Saqib Ali  wrote:
>
>
>
> > I have an object defined Serializable as follows:
>
> > public class comment implements Serializable {
> >     /**
> >          *
> >          */
> >         private static final long serialVersionUID = 1L;
> >         private String commentText;
> >     private String commenterFedID;
>
> >     public comment (){
> >         this.commentText = "";
> >         this.commenterFedID = "";
> >     }
>
> >     public comment (String commentText, String commenterFedID){
> >         this.commentText = commentText;
> >         this.commenterFedID = commenterFedID;
> >     }
>
> >     public String getCommentText() {
> >         return commentText;
> >     }
>
> >     public String getCommenterFedID() {
> >         return commenterFedID;
> >     }
>
> > }
>
> > I am using this serialized object in a Data Class as follows:
>
> >     @Persistent
> >     private ArrayList comments = new ArrayList();
>
> > But it generates the following exception:
>
> > java.lang.IllegalArgumentException: comments: testapp.comment is not a
> > supported property type.
> >         at
> > com.google.appengine.api.datastore.DataTypeUtils.checkSupportedSingleValue( 
> > DataTypeUtils.java:
> > 184)
> >         at
> > com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTy 
> > peUtils.java:
> > 149)
> >         at
> > com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTy 
> > peUtils.java:
> > 123)
> >         at 
> > com.google.appengine.api.datastore.Entity.setProperty(Entity.java:
> > 280)
> >         at
> > org.datanucleus.store.appengine.DatastoreFieldManager.storeObjectField(Data 
> > storeFieldManager.java:
> > 843)
> >         at
> > org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStat 
> > eManager.java:
> > 1037)
> >         at testapp.idea.jdoProvideField(idea.java)
> >         at testapp.idea.jdoProvideFields(idea.java)
> >         at
> > org.datanucleus.state.JDOStateManagerImpl.provideFields(JDOStateManagerImpl 
> > .java:
> > 2715)
> >         at
> > org.datanucleus.store.appengine.DatastorePersistenceHandler.updateObject(Da 
> > tastorePersistenceHandler.java:
> > 534)
> >         at
> > org.datanucleus.state.JDOStateManagerImpl.flush(JDOStateManagerImpl.java:
> > 4576)
> >         at
> > org.datanucleus.ObjectManagerImpl.flushInternal(ObjectManagerImpl.java:
> > 2814)
> >         at org.datanucleus.ObjectManagerImpl.flush(ObjectManagerImpl.java:
> > 2754)
> >         at 
> > org.datanucleus.ObjectManagerImpl.preCommit(ObjectManagerImpl.java:
> > 2893)
> >         at
> > org.datanucleus.TransactionImpl.internalPreCommit(TransactionImpl.java:
> > 369)
> >         at org.datanucleus.TransactionImpl.commit(TransactionImpl.java:256)
> >         at org.datanucleus.ObjectManagerImpl.close(ObjectManagerImpl.java:
> > 801)
> >         at
> > org.datanucleus.jdo.JDOPersistenceManager.close(JDOPersistenceManager.java:
> > 271)
> >         at testapp.saveComment.doGet(saveComment.java:43)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> >         at 
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > 511)
> >         at org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.java:1166)
> >         at
> > com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo 
> > bUploadFilter.java:
> > 97)
> >         at org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.java:1157)
> >         at
> > com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionF 
> > ilter.java:
> > 35)
> >         at org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.java:1157)
> >         at
> > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans 
> > actionCleanupFilter.java:
> > 43)
> >         at org.mortbay.jetty.servlet.ServletHandler
> > $CachedChai

[google-appengine] Re: Persistent ArrayList of Serialized Object resulting in " is not a supported property type" exception

2010-08-09 Thread Saqib Ali
Thanks Stephen!!! The blog post was super helpful. I got to work! :)

Saqib

On Aug 8, 5:38 pm, Stephen Johnson  wrote:
> Check out:
>
> http://gae-java-persistence.blogspot.com/2009/10/serialized-fields.html
>
> Perhaps re-writing like that will work.
>
> On Aug 8, 4:59 pm, Saqib Ali  wrote:
>
>
>
> > Stephen,
>
> > had already tried that earlier. tried it now again. no luck :(
>
> > On Aug 8, 3:42 pm, Stephen Johnson  wrote:
>
> > > Hi Saqib,
> > > Try this:
> > >   �...@persistent(serialized = "true")
>
> > > Stephen
>
> > > On Aug 8, 2:52 pm, Saqib Ali  wrote:
>
> > > > I have an object defined Serializable as follows:
>
> > > > public class comment implements Serializable {
> > > >     /**
> > > >          *
> > > >          */
> > > >         private static final long serialVersionUID = 1L;
> > > >         private String commentText;
> > > >     private String commenterFedID;
>
> > > >     public comment (){
> > > >         this.commentText = "";
> > > >         this.commenterFedID = "";
> > > >     }
>
> > > >     public comment (String commentText, String commenterFedID){
> > > >         this.commentText = commentText;
> > > >         this.commenterFedID = commenterFedID;
> > > >     }
>
> > > >     public String getCommentText() {
> > > >         return commentText;
> > > >     }
>
> > > >     public String getCommenterFedID() {
> > > >         return commenterFedID;
> > > >     }
>
> > > > }
>
> > > > I am using this serialized object in a Data Class as follows:
>
> > > >     @Persistent
> > > >     private ArrayList comments = new ArrayList();
>
> > > > But it generates the following exception:
>
> > > > java.lang.IllegalArgumentException: comments: testapp.comment is not a
> > > > supported property type.
> > > >         at
> > > > com.google.appengine.api.datastore.DataTypeUtils.checkSupportedSingleValue(
> > > >  DataTypeUtils.java:
> > > > 184)
> > > >         at
> > > > com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTy
> > > >  peUtils.java:
> > > > 149)
> > > >         at
> > > > com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTy
> > > >  peUtils.java:
> > > > 123)
> > > >         at 
> > > > com.google.appengine.api.datastore.Entity.setProperty(Entity.java:
> > > > 280)
> > > >         at
> > > > org.datanucleus.store.appengine.DatastoreFieldManager.storeObjectField(Data
> > > >  storeFieldManager.java:
> > > > 843)
> > > >         at
> > > > org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStat
> > > >  eManager.java:
> > > > 1037)
> > > >         at testapp.idea.jdoProvideField(idea.java)
> > > >         at testapp.idea.jdoProvideFields(idea.java)
> > > >         at
> > > > org.datanucleus.state.JDOStateManagerImpl.provideFields(JDOStateManagerImpl
> > > >  .java:
> > > > 2715)
> > > >         at
> > > > org.datanucleus.store.appengine.DatastorePersistenceHandler.updateObject(Da
> > > >  tastorePersistenceHandler.java:
> > > > 534)
> > > >         at
> > > > org.datanucleus.state.JDOStateManagerImpl.flush(JDOStateManagerImpl.java:
> > > > 4576)
> > > >         at
> > > > org.datanucleus.ObjectManagerImpl.flushInternal(ObjectManagerImpl.java:
> > > > 2814)
> > > >         at 
> > > > org.datanucleus.ObjectManagerImpl.flush(ObjectManagerImpl.java:
> > > > 2754)
> > > >         at 
> > > > org.datanucleus.ObjectManagerImpl.preCommit(ObjectManagerImpl.java:
> > > > 2893)
> > > >         at
> > > > org.datanucleus.TransactionImpl.internalPreCommit(TransactionImpl.java:
> > > > 369)
> > > >         at 
> > > > org.datanucleus.TransactionImpl.commit(TransactionImpl.java:256)
> > > >         at 
> > > > org.datanucleus.ObjectManagerImpl.close(ObjectManagerImpl.java:
> > > > 801)
> > > >         at
> > > > org.datanucleus.jdo.JDOPersistenceManage

[google-appengine] Re: Unable to access the Datastore Viewer

2010-08-14 Thread Saqib Ali
seems like if I use Federated Identity for authentication, and store
user objects in the entities, I will invariably cause the Server Error
(500) on the Datastore Viewer.

Is this something that Google can address?

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



[google-appengine] Re: OpenID + SSL give ssl_error_rx_record_too_long

2010-08-16 Thread Saqib Ali
OpenID is not supported if your app runs in secure mode using HTTPS
See: http://code.google.com/appengine/articles/openid.html


On Aug 16, 6:15 am, MLTrim  wrote:
> Hi to all the group
>
> I'm developing a small webapp with Gae and i have enabled OpenID to
> test it as primary login.
> Has anyone has succesfully use it with SSL enabled?
>
> After clicking allow button on google accounts that should redirect
> user to the calling app, i get this error:
> Secure Connection Failed
> An error occurred during a connection to gsystempuntoout.appspot.com:
> 80.
> SSL received a record that exceeded the maximum permissible length.
> (Error code: ssl_error_rx_record_too_long)
>
> any clue?
>
> p.s.
> I submitted this 
> issues:http://code.google.com/p/googleappengine/issues/detail?id=3586

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



[google-appengine] Re: Unable to access the Datastore Viewer

2010-08-16 Thread Saqib Ali
Ikai,

Not sure if this is what you are looking for:

UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();

Now I can take the user and store it in an entity, and the
applications works fine. But the Datastore Viewer gives me a 500
error.

Saqib



On Aug 16, 11:40 am, "Ikai L (Google)"  wrote:
> That sounds like a different topic. Can you describe which Users are causing
> the error?
>
>
>
>
>
> On Sat, Aug 14, 2010 at 1:52 PM, Saqib Ali  wrote:
> > seems like if I use Federated Identity for authentication, and store
> > user objects in the entities, I will invariably cause the Server Error
> > (500) on the Datastore Viewer.
>
> > Is this something that Google can address?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com > e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> 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

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



[google-appengine] Unable to rollback GAE Deployment Transaction

2010-08-24 Thread Saqib Ali
I am trying to use the appcfg.sh in the GAE Java SDK to rollback a
stuck (in progress) deployment. However the rollback is failing
because I have an space character in the Folder name for the Project:

appengine-java-sdk-1.3.5/bin/appcfg.sh rollback "workspace/Crowded\
Intelligence/war/" (fails)
appengine-java-sdk-1.3.5/bin/appcfg.sh rollback 'workspace/Crowded\
Intelligence/war/' (fails)
appengine-java-sdk-1.3.5/bin/appcfg.sh rollback workspace/Crowded\
Intelligence/war/ (fails)

Any thoughts on how I can get around this?

Thanks,
Saqib

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



[google-appengine] Re: Unable to rollback GAE Deployment Transaction

2010-08-24 Thread Saqib Ali
Not sure if renaming to remove space will break something else. I use
eclipse. Any thoughts?



On Aug 24, 12:42 pm, Robert Kluin  wrote:
> On Tue, Aug 24, 2010 at 13:40, Saqib Ali  wrote:
> > I am trying to use the appcfg.sh in the GAE Java SDK to rollback a
> > stuck (in progress) deployment. However the rollback is failing
> > because I have an space character in the Folder name for the Project:
>
> If that is the cause, why not just rename the folder without a space?
> Perhaps to CrowdedIntelligence...?
>
>
>
>
>
> > appengine-java-sdk-1.3.5/bin/appcfg.sh rollback "workspace/Crowded\
> > Intelligence/war/" (fails)
> > appengine-java-sdk-1.3.5/bin/appcfg.sh rollback 'workspace/Crowded\
> > Intelligence/war/' (fails)
> > appengine-java-sdk-1.3.5/bin/appcfg.sh rollback workspace/Crowded\
> > Intelligence/war/ (fails)
>
> > Any thoughts on how I can get around this?
>
> > Thanks,
> > Saqib
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine?hl=en.

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



[google-appengine] Re: Unable to rollback GAE Deployment Transaction

2010-08-24 Thread Saqib Ali
Thanks!! :) Just renamed the project from within Eclipse, performed
the rollback successfully, and nothing broke! :)

saqib


On Aug 24, 2:00 pm, Robert Kluin  wrote:
> I do not use eclipse very often, but as I recall you can rename (or
> move) the project through it.  Then it should handle updating all of
> your references etc
>
> Robert
>
>
>
> On Tue, Aug 24, 2010 at 16:19, Saqib Ali  wrote:
> > Not sure if renaming to remove space will break something else. I use
> > eclipse. Any thoughts?
>
> > On Aug 24, 12:42 pm, Robert Kluin  wrote:
> >> On Tue, Aug 24, 2010 at 13:40, Saqib Ali  wrote:
> >> > I am trying to use the appcfg.sh in the GAE Java SDK to rollback a
> >> > stuck (in progress) deployment. However the rollback is failing
> >> > because I have an space character in the Folder name for the Project:
>
> >> If that is the cause, why not just rename the folder without a space?
> >> Perhaps to CrowdedIntelligence...?
>
> >> > appengine-java-sdk-1.3.5/bin/appcfg.sh rollback "workspace/Crowded\
> >> > Intelligence/war/" (fails)
> >> > appengine-java-sdk-1.3.5/bin/appcfg.sh rollback 'workspace/Crowded\
> >> > Intelligence/war/' (fails)
> >> > appengine-java-sdk-1.3.5/bin/appcfg.sh rollback workspace/Crowded\
> >> > Intelligence/war/ (fails)
>
> >> > Any thoughts on how I can get around this?
>
> >> > Thanks,
> >> > Saqib
>
> >> > --
> >> > You received this message because you are subscribed to the Google 
> >> > Groups "Google App Engine" group.
> >> > To post to this group, send email to google-appeng...@googlegroups.com.
> >> > To unsubscribe from this group, send email to 
> >> > google-appengine+unsubscr...@googlegroups.com.
> >> > For more options, visit this group 
> >> > athttp://groups.google.com/group/google-appengine?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine?hl=en.

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