[appengine-java] Strange behavior by " App Engine Eclipse Plugin"

2011-05-23 Thread cp
I am working on personal project in my eclipse environment. Today i decided 
to deploy the application version (4th version).
Strange thing is happening.

1. When i click on icon "Deploy app engine project". It is probably opening 
firefox or ie browser window instead of usual eclipse dialog box.
Browser window says below:
  *"A third party service is requesting permission to access your Google 
Account. *
In order to authorize a third party service to access your account, you must 
sign in."

Once i enter the user pass then it says:

Your  browser's cookie functionality is turned off. Please turn it on. 
[?
]



-- 
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] Iframe does not allow thrid party cookies in IE7 and IE9

2011-05-23 Thread thangavel s
Hi buddies,


I have to use google doc viewer in iframe,but here problem is IE7
and IE9 are don't allow third party cookies in iframe, because of default
browser setting . i tried p3p like as follows
 response.addHeader("P3P","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi
IVDi CONi HIS OUR IND CNT\"").It could not work . there is any other
solution to use.








Regards,
thangavel.s

-- 
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] UserService--Fails to get the right "current user"

2011-05-23 Thread July
Hi All:
 I met a strange behavior when using UserService, i'm a Google Apps 
user.

1. I have two Google apps domains, first login the first domain by entering 
the gmail of my domain.
2. Login to my own application Using OpenID which deployed at GAE, then the 
userService.getCurrentUser() is my account in first domain.
3. Click the upper right "logout" link to logout my first domain, then login 
using my second domain email address
4. Now try to access my GAE project, and found userService.getCurrentUser() 
is still the first domain's email. I think it should be the email of second 
domain.

Any ideas about this? thanks very much.
-July

-- 
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] Google App Engine + Java Applet

2011-05-23 Thread SKP
Hi

I have been trying to do Encryption /Decryption (using javax.crypto)
on browser side i.e. using javascript. Data is stored in GAE's
datastore.  I created a java applet that can encrypt/decrypt to use
javax.crypto. But now i see that google app engine doesnt support
java.applet.Applet . Is there any work around or anyway I can go about
browser side encryption /decryption?

Thanks
Sharada

-- 
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] Backend + push task queue, does it work?

2011-05-23 Thread de Witte
Hello,

Looking for any tips to get this working.


try {
Queue queue = QueueFactory.getQueue("test");
TaskOptions options = 
TaskOptions.Builder.withUrl("/test/task/worker");

options = options.param(TestTask.task, params);
options = options.header("Host", 
BackendServiceFactory.getBackendService().getBackendAddress("testtask", 1));

queue.add(options);
}
catch(Exception exc) {
log.log(Level.SEVERE, "queue", exc);
return false;
}

I have setup the backend.xml:


  
B2
1
1

  false
  true

  


Didn't make any other changes.

The dashboard shows that the backend is active, but the doPost method of the 
TaskServlet is never being called.

Any ideas?

-- 
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] Java => Google app

2011-05-23 Thread Brandon Donnelson
I see nothing wrong with what you said. Its fun to see others perspectives.
That's what this group is all about. :)
On May 23, 2011 4:58 PM, "Rusty Wright"  wrote:
> Sorry, my post was slightly tongue in cheek; sometimes I can't resist
> sticking a twig into a hornet's nest.
>
>
> On 2011-05-23 08:26, Ugorji wrote:
>> +1 all the way to Jeff's comments.
>>
>
> --
> 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] Java => Google app

2011-05-23 Thread Rusty Wright
Sorry, my post was slightly tongue in cheek; sometimes I can't resist 
sticking a twig into a hornet's nest.



On 2011-05-23 08:26, Ugorji wrote:

+1 all the way to Jeff's comments.



--
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] Local Server and local_db.bin

2011-05-23 Thread pavb
Hello

I have a problem to initiate my local datastore with test data.
I have created a unit test to populate my local datastore and create
the file local_db.bin. (ApplicationId and versionId correctly set)
Everything looks ok. But when I use this binary file with the local
server in the war/WEB-INF/appengine-generated I can not browse my
entities. Nothing is displayed with the admin console.
I can create entities directly from my application and these ones are
visible.

Could you help me please?

Thanks

PA

-- 
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] DeadlineExceededException on Jetty session loading

2011-05-23 Thread Francois Masurel
Hi Don,

I was just wondering : could these buggy DeadlineExceededExceptions cause a 
memory leak ?

I've seen my instance take up to 134MB just running 2 simple datastore 
queries (DeadlineExceededException) every minute.

Do you know when will the next SDK version be released ?

BTW, it looks like I get these deadline exceptions every 500 datastore api 
calls, quite far from the every 3000 announced. 

Thanx for your help.

Francois

-- 
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] About 500 Server Error

2011-05-23 Thread Handsome Jason
Dear All ~

   Have anyone meet this "500 Server Error" problem??
My app's url is : http://jason-first-test.appspot.com/get_open_id_url?op=Google

It always show the message as below :

Error: Server Error

The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this
error message and the query that caused it.

How can I resolve this problem ??

Many Thanks !!

 by Jason Hsu.

-- 
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 - Java - JSON?

2011-05-23 Thread yuvi
Hi,

Gson worked for me on Gadglet.

see: dev.gadglet.com




On May 20, 1:29 pm, "Ikai Lan (Google)"  wrote:
> +1 for GSON.
>
> Not sure how "compatible" it is with the default org.json stuff Android
> uses. I mean, JSON is JSON, but different libraries do different things
> escaping single and double quotes.
>
> On the server side, I've used this in GAE:http://www.restlet.org/
>
> There's *some* warmup time, but it's not that bad from what I remember.
>
> 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 Fri, May 20, 2011 at 7:55 AM, Wilson MacGyver wrote:
>
>
>
>
>
>
>
> > Give Gaelyk a tryhttp://gaelyk.appspot.com/
>
> > It has a plugin for JSON
>
> >https://github.com/bmuschko/gaelyk-jsonlib-plugin
>
> > On Fri, May 20, 2011 at 8:11 AM, Pop Vasile  wrote:
> > > Hi,
> > > I want to create an app based on GAE / Java and I want to use JSON, for
> > > interaction with different GUIs (GWT, Android, etc.). I am looking in
> > some
> > > books about GAE, but all I can find is RPC... Is there a book or is there
> > a
> > > good link on how to implement JSON based services in GAE, using Java?
>
> > > Thanks!
> > > Vasile
>
> > > --
> > > 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.
>
> > --
> > Omnem crede diem tibi diluxisse supremum.
>
> > --
> > 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: Change where Deploy is built

2011-05-23 Thread WillSpecht
I'm guessing this isn't possible?

On May 17, 9:51 pm, WillSpecht  wrote:
> It seems that whenever I deploy, thebuildfiles are all being saved
> to my local settigns/Temp folder.  Is there a way tochangewhere
> these files are saved? My C folder is very full and building to this
> folder takes a long time.  I think I could deploy much faster if these
> files were written to the same folder the project is saved in or at
> least the same drive.

-- 
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: Upload blob never calls success path

2011-05-23 Thread Daniel Florey
Hi,
thanks a lot for the info.
I did not even upload to App Engine, just using the development server. So I 
guess there is just the default version?

My servlet is never called, so I cannot even send a redirect yet.
I just end up with an entry in the  __BlobUploadSession__ table and I assume 
that I may need to turn on some flags to call my success path after upload?

Is there a way to turn on debug logging for the core services?

Thanks!

Daniel

-- 
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] Java => Google app

2011-05-23 Thread Ugorji
+1 all the way to Jeff's comments.

-- 
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: Is possible to create a datastore index programmatically

2011-05-23 Thread Max
+1

This will be a quite useful feature to develop a powerful framework

-- 
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] Is possible to create a datastore index programmatically

2011-05-23 Thread Pablo Salgado
Hello,

I'm storing schema-less data (the columns are not fixed, they are
created at application runtime). I need to make some index for those
columns to sort and filter rows by some of those columns.
Is it possible to create a datastore index programmatically at
application runtime?
Thank you in advance,
Regards,

Pablo D. Salgado

-- 
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] VerifyError Appengine and jibx

2011-05-23 Thread pavb
Hello

Does anybody know if jibx can be used with Appengine?
When I test my app on the test server I have such exception:

23 mai 2011 14:20:04 com.google.apphosting.utils.jetty.JettyLogger
warn
ATTENTION: /widget/project/list
java.lang.VerifyError: (class: org/jibx/runtime/BindingDirectory,
method: getFactoryFromName signature: (Ljava/lang/String;Ljava/lang/
Class;Ljava/lang/ClassLoader;)Lorg/jibx/runtime/IBindingFactory;)
Accessing value from uninitialized register 12
...

Thanks for your help

PA

-- 
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: Upload blob never calls success path

2011-05-23 Thread Juan Hernandez
Hi,

I just posted a similar question to yours:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/b6b540e20b3730ca

My successUrl is being called but it only works if I'm using the
default version of the app. Put a System.out or a logger statement in
your success page and check the logs on the AppEngine console to see
if it goes thru your default version.

Do you get back any error in your browser? error 500 or some other
error?

You can only do a redirect in the success page (3xx return codes), you
cannot return any content, did you know that??

Hope that helps
Juan

On May 23, 12:49 pm, Daniel Florey  wrote:
> I guess I'm just dumb, but please help me anyway ;-)
> I've just tried to upload a blob into the blobstore. When I upload the blobs
> I can see an entry for each upload in the __BlobUploadSession__ table.
> I also can see in there that the success path is properly set, but my mapped
> servlet is never called. (I can call it from the browser though, so it seems
> to be mapped correctly).
>
> Do I have to enable some option on the devserver so that the success path
> servlet will be called once the upload is complete?
>
> Thanks for any hints,
>
> Daniel

-- 
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] Uploading files not working with the BlobstoreService when the app version is not the default one

2011-05-23 Thread Juan Hernandez
Hi,

I'm using the Blobstore service to upload files in my webapp and found
that that service doesn't work properly when I have multiple versions
of my app.

The problem is that my "successUrl", the one passed in the
createUploadUrl(...) method, is not being called after the form is
submitted ... well the URL is called but the one in the default
version of the app.
If I'm testing version 2 of the app and the default version is 1 
the upload ends calling the "successUrl" but in version 1 of the
app !!??

Has anybody experienced that issue?

I have tried different types of URLs when calling the
createUploadUrl(...) just in case the one I was using was wrong, but
haven't had any luck ...

I tried absolute to the site URLs (eg. /blobstore/uploaded.jsp),
relative URLs (eg. uploaded.jsp), absolute URLs (http://
2.appname.appspot.com/blobstore/uploaded.jsp) and none of them work
with any other version than the default one.

Looking into the logs it calls the uploaded.jsp on the default version
of the app when using the first type of URL (/blobstore/uploaded.jsp).

This is a sample code I'm using for the upload form:

<%@ page import="com.google.appengine.api.blobstore.BlobstoreService"
%>
<%@ page
import="com.google.appengine.api.blobstore.BlobstoreServiceFactory" %>
<%
BlobstoreService blobstoreService =
BlobstoreServiceFactory.getBlobstoreService();
%>

" method="post" enctype="multipart/form-data">





Thanks
Juan

-- 
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: couple questions about consume REST services using jersey(works on prod however doesn't work on dev)

2011-05-23 Thread xdfbb
Hi Brandon ,
thanks for the replay, yes we include jaxb-api-2.1 and jaxbimpl-2.1.12
in the lib folder, this seems to work, but we found this is not
required on local dev server

for the second question, "BIG xmls content will be "trunked" into 3853
on local dev server, we still struggling with it, we are now debugging
our app in prod env and print statement, this is really annoying


On May 23, 2:18 pm, Brandon Donnelson  wrote:
> As to the inclusion of the libs in war/WEB-INF/lib, that is a yes. You may
> have to check jaxb dependencies to make sure all of them are whitelisted or
> the dependencies have to be included in the lib folder.
>
> Brandon Donnelsonhttp://gwt-examples.googlecode.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] Upload blob never calls success path

2011-05-23 Thread Daniel Florey
I guess I'm just dumb, but please help me anyway ;-)
I've just tried to upload a blob into the blobstore. When I upload the blobs 
I can see an entry for each upload in the __BlobUploadSession__ table.
I also can see in there that the success path is properly set, but my mapped 
servlet is never called. (I can call it from the browser though, so it seems 
to be mapped correctly).

Do I have to enable some option on the devserver so that the success path 
servlet will be called once the upload is complete?

Thanks for any hints,

Daniel

-- 
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] GAE - Java - JSON?

2011-05-23 Thread Pop Vasile
I think Restlet or Resteasy is what I need, cause I don't need JSP pages, I 
just need a way in server-side to work with json GET or POST requests from a 
mobile or desktop app. Spring Mobile looks interesting too, but I am not 
sure it's what I need.

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