[google-appengine] Re: App Engine can't handle any kind of burst ...

2015-03-12 Thread Kaan Soral
Many .put_async's failed, I couldn't count the exact number, but I'm 
guessing 50%, as the result of the operation was ~460k instead of a clean 
million

I don't utilise entity groups, they are free entities

200 instances spinned up, tasks definitely queued, yet this was a burst 
operation, so that was expected

on the .put_async front, I don't think .put's should ever timeout

on the .delete_async front, I don't know why delete's are in a transaction, 
should they really be?
I mean shouldn't you be able to delete an entity 3 times simultaneously?

As a result of the operation, I found a bug that affected the .delete_async 
part, yet I'm sure the overload would occur without the bug, the .put_async 
part is separate from the .delete_async part

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ad971dee-4872-45a9-b295-1ab761423f51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] How to Upload file to GCS via GAE with Android Application SSL connect

2015-03-12 Thread Vinny P
When you get an error 500 from GAE, is your App Engine application
returning the 500 or is it from the upload handler URL? What version of
Android are you using? If you're using an old version of Android, can you
re-test using a recent-ish version of Android? Can you view this page using
your Android machine and see if it shows good SSL support?
https://www.ssllabs.com/ssltest/viewMyClient.html

If you're using a newer version of Android and still can't get the app to
run, can you post the request  coming out of the application? I mean the
whole request, with specific emphasis on lines that show
"content-disposition" information. Here's a few ways to watch the HTTP
requests from your phone:
http://stackoverflow.com/questions/22353717/list-http-requests-from-android-phone




-
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com



On Wed, Mar 11, 2015 at 11:51 PM, Tomonori Yoshino <
tomonori.yosh...@gmail.com> wrote:

> Hello
> I develop android application with GAE/php.
>
> I want to file upload from android application.
>
> I'm using CloudStorageTools.
> https://cloud.google.com/appengine/docs/php/googlestorage/user_upload
>
> First,Android application request GCS uploadurl to GAE/php on
> CloudStorageTools::createUploadUrl.
>
> and Android application upload file that connect response URL from GAE/p
>
> Http connection using is OK.I can confirm file on GCS buckket.
>
> But, Https(SSL) connection using ,I have error 500 from GAE(Google
> Frontend).
>
> How to Upload file with SSL connect.
>
> Please help me.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALSvALBBHiVDtiFv6VucbnKQpbPD0FKeUXutcghEQfytJVjPHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] The API call remote_socket.GetSocketOptions() required more quota than is available.

2015-03-12 Thread Vinny P
On Thu, Mar 12, 2015 at 5:06 PM, Keith Johnston  wrote:

> Today is the first time I have seen this error. It occurs when I am trying to 
> write some data to Amazon using the Amazon client library. I looked at the 
> AppEngine quota page and there is no indication that anything there is over 
> quota.
>
> javax.net.ssl.SSLException: 
> com.google.apphosting.api.ApiProxy$OverQuotaException: The API call 
> remote_socket.GetSocketOptions() required more quota than is available.
>
>


Does this error always happen when connecting to Amazon, or does it only
intermittently/rarely occur? If you try requests using insecure (HTTP, not
HTTPS) connections, do you see any difference or does a similar error pop
up?

Side note: depending on the client library and Amazon service you're using
insecure access may not be possible. But you can try it; for example here's
how to set HTTP/HTTPS settings in the Java library:
http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/ClientConfiguration.html#setProtocol(com.amazonaws.Protocol)


-
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALSvALBD2EVOmV_46G2iBgOTKe82LLHKpc%3DOnsCPVpEfknJFkg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] NoClassDefFoundError (org.eclipse.core.runtime.Platform)

2015-03-12 Thread Vinny P
On Thu, Mar 5, 2015 at 11:06 AM, Syed Rizvi  wrote:

>
> Error for /cron/loadDataset
> java.lang.NoClassDefFoundError: Could not initialize class
> org.eclipse.core.runtime.Platform
> As you can see in the Platform.class.PNG screenshot, the class is present
> (At least at compile time. I don't know how it vanishes at runtime?), The
> dependencies are downloaded from the public Maven repo.
> All these Maven dependencies including the external JAR are packaged with
> the WAR file (as seen in Dependencies.PNG). Where could the problem lie? I
> have spent days but still cannot find where the problem exists
>



I'm curious to see what is actually on App Engine servers. I'd try
uploading your application, then downloading it again using appcfg:
https://cloud.google.com/appengine/docs/java/tools/uploadinganapp#Downloading_an_Application
. As the sample in the link shows, you should also get back a printed list
of the files and directory structure.

The problem is that there might be a deeper issue here. Your stack trace
shows that the exception message comes from Platform. A
NoClassDefFoundError can also pop from errors in statically-initialized
code, and unfortunately Platform has exactly that:
http://grepcode.com/file/repository.grepcode.com/java/eclipse.org/3.7/org.eclipse.core/runtime/3.7.0/org/eclipse/core/runtime/Platform.java
. It looks like part of the static code
calls org.eclipse.core.internal.runtime.Messages which (within static)
calls org.eclipse.osgi.util.NLS.initializeMessages which makes some calls
requiring privileged actions

-
meaning that GAE's SecurityManager would have to allow the calls, and I'm
not sure if those calls run properly due to the GAE sandbox - you'd have to
ask a Googler to investigate.

Happily enough, there's a shortcut instead of drilling through mountains of
code to debug: try moving your application to use Managed VMs
. If this really
is a SecurityManager issue, the more-permissive Managed VM instance should
be able to run the code perfectly fine.



-
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALSvALBBRkgELSRkYADsFwjmAD8bUF7J_9RjHg%2BgXQ0OjUQoYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] How do I debug "no default robot"?

2015-03-12 Thread Vinny P
On Thu, Mar 12, 2015 at 3:58 AM, Lorenz Leutgeb 
 wrote:

> > Secondly, try making sure Cloud Integration is active. Go to appspot.com
>  (the
> > "old" App Engine console), click on your app name, then click on
> > Application Settings on the left hand navigation bar. Scroll all the way
> down
> > and ensure your app is integrated.
>
> That apparently did the trick! I don't know why, but this showed an
> error before:
> http://imgur.com/G4NwRve  After retrying, everything worked out!
>
> Thank you very much!
>



It's always the last solution that works, never the first one :-) Glad to
hear it worked out for you!

-V

-
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALSvALCOx%2BeTahJjPEzPm8tFmOfV_bUsDcqNMWZCg4cCMKz5DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Search API - Problem creating a Document with a java.lang.Double Field

2015-03-12 Thread Vinny P
On Thu, Mar 12, 2015 at 5:31 PM, Rafael Martony  wrote:

> Hi, my application is being developed in Java using Search API.
> I'm having trouble storing a double value when creating a new Document and
> in App Engine Logs appears
>



You are correct in saying that your number fits into a Java double
primitive, but it exceeds the Search API's  maximum number value

.



-
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALSvALALfLDC5B1AwZ%3DoTOM54y06pMv4cEY64m%3DAYEcLkXgo6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Search API - Problem creating a Document with a java.lang.Double Field

2015-03-12 Thread Rafael Martony
Hi, my application is being developed in Java using Search API.
I'm having trouble storing a double value when creating a new Document and 
in App Engine Logs appears

Uncaught exception from servlet
java.lang.IllegalArgumentException: number value, 3638255040.00, must 
be less than or equal to 2147483647.00
 at com.google.appengine.api.search.checkers.Preconditions.checkArgument(
Preconditions.java:54)
 at com.google.appengine.api.search.checkers.FieldChecker.checkNumber(
FieldChecker.java:137)
 at com.google.appengine.api.search.Field$Builder.setNumber(Field.java:136)
 at com.appspot.comprasestatalesuy.server.service.DocumentService.
preCreateDocumentBuilder(DocumentService.java:604)
 at com.appspot.comprasestatalesuy.server.service.DocumentService.
createDocument(DocumentService.java:127)

I'm creating a Document like this

...
Document.Builder docBuilder = Document.newBuilder().addField(Field.
newBuilder().setName("monto_adj").setNumber(adjudicacion.getMonto())); // 
Monto is a double
...
Document document = docBuilder.build(); 



Isn't 3638255040.00 a valid double number?

Your help would be greatly appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/32b5cf96-5395-4aa8-8002-1650573b57fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] The API call remote_socket.GetSocketOptions() required more quota than is available.

2015-03-12 Thread Keith Johnston


Today is the first time I have seen this error. It occurs when I am trying to 
write some data to Amazon using the Amazon client library. I looked at the 
AppEngine quota page and there is no indication that anything there is over 
quota.

javax.net.ssl.SSLException: 
com.google.apphosting.api.ApiProxy$OverQuotaException: The API call 
remote_socket.GetSocketOptions() required more quota than is available.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5dda2d64-966b-4503-ac81-04d46ff19769%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: App Engine can't handle any kind of burst ...

2015-03-12 Thread Jay
Hmm ... ALL the puts fail? How many instances does the scheduler spin up? 
Are the entities all in their own entity group? 
You said that each task executes 1 second after the previous task. So you 
expect the put part of the test to take about 16, 17 minutes. Is that right?
How deep does the task queue(s) that you are using get? Are you saying 
"countdown=1 but perhaps the tasks are queuing up?

On Thursday, March 12, 2015 at 7:16:10 AM UTC-5, Kaan Soral wrote:
>
> I'm really fed up with app engine lately
>
> I had a routine to test an internal system, it triggers 1000 tasks that 
> each adds 1000 items to datastore with .put_async / totalling 1M entities, 
> each of these secondary tasks execute 1 second after each other
>
> Another routine handles these entities, and deletes them with 
> .delete_async (deletes are sequential/slow and delayed, so it's not a 1 
> second datastore contention issue)
>
> When this routine runs, each/any operation on that model fails
>
> .put_async's fail with: suspended generator put(context.py:810) raised 
> DeadlineExceededError(The API call datastore_v3.Put() took too long to 
> respond and was cancelled.)
>
> .delete_async's fail with: suspended generator delete(context.py:844) 
> raised TransactionFailedError(too much contention on these datastore 
> entities. please try again.)
>
> the model locks up
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ffe0f9a3-2735-4455-a8dc-2493958ae500%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: See the log file 'C:\Program Files\Google\google_appengine\launcher\GoogleAppEngineLauncher.exe.log'

2015-03-12 Thread Mars Lan
Please report the bug 
to https://code.google.com/p/googleappengine/issues/list thanks.

On Wednesday, March 11, 2015 at 12:22:09 PM UTC-7, Cristiano Nunes wrote:
>
> Hello Community, I am  beginner on App Engine and I have one problem, 
> when I try run it appears the window "Errors ocurred" with the message "See 
> the log file 'C:\Program 
> Files\Google\google_appengine\launcher\GoogleAppEngineLauncher.exe.log'" 
> (like the JPEG file attached show) but the file does not match the 
> specified folder because this log is in "C:\Users\Myname\Google". I use the 
> Windows 7 Utimate 32bits SP1 and App Engine for Python, I have the Python 
> 2.7.9 installed. One solution what I found on web is erase the two .ini 
> files ('google_appengine_launcher' and 'google_appengine_projects') located 
> on "C:\Users\Myname\Google" but this solution works once and to work again 
> I have to repeat the steps. I open the file 'google_appengine_launcher' on 
> Notepad but this file does not tell me anything important, only the Python 
> version installed and the line 'mainwindowrect = -8 -8 1382 744' what the 
> significance of this line ?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3d9d4b0d-60ef-4800-af85-3ab61cca8008%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Search API - weird issue, investigating further before bug report

2015-03-12 Thread Jay
Using the Python 2.7 runtime.

We have a search index that has some user information in it. One of these 
fields is a simple number field "total_points".  I just observed that one 
of our top players was not showing up in results. They should have been the 
number 2 player. 
I manually looked at the index using the admin console tool. It was 
sufficient for this purpose. Sure enough, the document representing that 
player was in there. And the total_points field had the correct value. I 
removed all the sorts from the query we are using when querying the index 
except for that total_points sort. The player still did not show up in the 
index. Just to try something, I "manually" re-indexed the player into the 
search  index through the api. And just like that, the player showed up 
again in the search results.

>From what I can tell it is as if the document got "stale", it had not been 
updated in about a week, and was not returned by the search service - even 
though the sort was not on a field that had anything to do with time 
(although total_points does change of course, this player was so far out in 
front that they were still number 2 even after a week of no points). 

Has anyone else run across this sort of scenario? I wouldn't know how to 
reproduce it.

Thanks for any input.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c850841d-72a0-41a1-8de5-9497a3c31839%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] App Engine can't handle any kind of burst ...

2015-03-12 Thread Kaan Soral
I'm really fed up with app engine lately

I had a routine to test an internal system, it triggers 1000 tasks that 
each adds 1000 items to datastore with .put_async / totalling 1M entities, 
each of these secondary tasks execute 1 second after each other

Another routine handles these entities, and deletes them with .delete_async 
(deletes are sequential/slow and delayed, so it's not a 1 second datastore 
contention issue)

When this routine runs, each/any operation on that model fails

.put_async's fail with: suspended generator put(context.py:810) raised 
DeadlineExceededError(The API call datastore_v3.Put() took too long to 
respond and was cancelled.)

.delete_async's fail with: suspended generator delete(context.py:844) 
raised TransactionFailedError(too much contention on these datastore 
entities. please try again.)

the model locks up

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9767dc5f-8dcf-4fca-9005-0c82da28f4e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Could not get response from Google API's via Java servlet in GAE

2015-03-12 Thread Michael
This sort of programming/development question would be better directed to Stack 
Overflow's App Engine tag 
. I recommend 
posting there for more technical issues as it is more likely that you will 
get a solution to your problem.

On Wednesday, March 11, 2015 at 6:20:40 AM UTC-4, foot...@umiack.com wrote:
>
> I can get the response from Google API's via web browser. It is say,
>
> Access to 
>
>
> https://www.googleapis.com/blogger/v3/blogs/4871538073781423026?access_token=
>
> by some web browser, and get response
>
> {
>  "kind": "blogger#blog",
>  "id": "4871538073781423026",
>  "name": "SoffeeShop",
>  "description": "",
>  "published": "2012-10-24T23:55:32+09:00",
>  "updated": "2015-03-04T14:31:00+09:00",
>  "url": "http://soffeeshop.blogspot.com/";,
>  "selfLink": 
> "https://www.googleapis.com/blogger/v3/blogs/4871538073781423026";,
>  "posts": {
>   "totalItems": 58,
>   "selfLink": 
> "https://www.googleapis.com/blogger/v3/blogs/4871538073781423026/posts";
>  },
>  "pages": {
>   "totalItems": 0,
>   "selfLink": 
> "https://www.googleapis.com/blogger/v3/blogs/4871538073781423026/pages";
>  },
>  "locale": {
>   "language": "en",
>   "country": "",
>   "variant": ""
>  }
> }
>
>
> Although, when I do REST in the servlet in GAE, like
>
>
> URL url = new 
> URL("https://www.googleapis.com/blogger/v3/blogs/4871538073781423026?access_token=X";);
> HttpURLConnection connection = (HttpURLConnection) url.openConnection();
> connection.setRequestMethod("GET");
> connection.setRequestProperty("X-Appengine-Inbound-Appid", "X");
> connection.setRequestProperty("Accept", "application/json");
> connection.setRequestProperty("Host", "googleapis.com");
>
>
> or
>
>
> URL url = new 
> URL("https://www.googleapis.com/blogger/v3/blogs/4871538073781423026);
> HttpURLConnection connection = (HttpURLConnection) url.openConnection();
> connection.setRequestMethod("GET");
>
> connection.setRequestProperty("Authorization", "Bearer " + access_token); 
>
> connection.setRequestProperty("X-Appengine-Inbound-Appid", "X"); 
> connection.setRequestProperty("Accept", "application/json"); 
> connection.setRequestProperty("Host", "googleapis.com");
>
>
> i just got "404 Not Found" Error. 
>
>
> I could get access_token with OAuth2 using HttpURLConnection in the same 
> servlet in GAE, just could not do access to google API's. So, it's mean Http 
> Connections are working well to access to other servers.
>
>
> Why I could not access only Google API's via servlet in GAE? Please help me...
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/954f6b8a-2819-4a0d-abf8-0e3f2e2f21df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: NoClassDefFoundError (org.eclipse.core.runtime.Platform)

2015-03-12 Thread Syed Rizvi
Hey Patrice,

I actually posted this 

 
on StackOverflow yesterday. Nothing helpful yet though. Will now report on 
the public issue tracker as you suggested.

Thank you!

On Wednesday, March 11, 2015 at 11:37:35 PM UTC+1, Patrice wrote:
>
> Hey Syed,
>
> This kind of question would be better suited for Stack Overflow 
> . If it's an actual defect, go on our public 
> issue tracker 
>  to 
> report it.
>
> Thank you!
>
> On Thursday, March 5, 2015 at 12:06:21 PM UTC-5, Syed Rizvi wrote:
>
> Hi,
> I am making a maven based GAE project. It's a service that is supposed to 
> serve some data to its clients. The project works perfectly on the local 
> machine, but gives the NoClassDefFoundError when deployed to GAE. Here's 
> the complete StackTrace:
>
> Error for /cron/loadDataset
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.eclipse.core.runtime.Platform at 
> org.eclipse.ocl.common.OCLCommon.getPreference(OCLCommon.java:74 
> 
> ) at org.eclipse.ocl.lpg.AbstractBasicEnvironment.getValue(
> AbstractBasicEnvironment.java:440 
> 
> ) at org.eclipse.ocl.options.ParsingOptions.getValue(
> ParsingOptions.java:330 
> 
> ) at org.eclipse.ocl.AbstractEnvironment.createTypeChecker(
> AbstractEnvironment.java:1214 
> 
> ) at org.eclipse.ocl.AbstractEnvironment.getTypeChecker(
> AbstractEnvironment.java:1196 
> 
> ) at org.eclipse.ocl.AbstractEnvironment.getAdapter(
> AbstractEnvironment.java:1236 
> 
> ) at org.eclipse.ocl.util.OCLUtil.getAdapter(OCLUtil.java:102 
> 
> ) at org.eclipse.ocl.util.TypeUtil.getTypeCheckerAdapter(TypeUtil.java:800 
> 
> ) at org.eclipse.ocl.util.TypeUtil.findAttribute(TypeUtil.java:171 
> 
> ) at org.eclipse.ocl.AbstractEnvironment.doLookupProperty(
> AbstractEnvironment.java:657 
> 
> ) at org.eclipse.ocl.AbstractEnvironment.lookupProperty(
> AbstractEnvironment.java:638 
> 
> ) at org.eclipse.ocl.AbstractTypeResolver.findTupleType(
> AbstractTypeResolver.java:430 
> 
> ) at org.eclipse.ocl.AbstractTypeResolver.resolveTupleType(
> AbstractTypeResolver.java:382 
> 

Re: [google-appengine] How do I debug "no default robot"?

2015-03-12 Thread Lorenz Leutgeb
Dear Vinny P.,

> In your SO post you say that deployment to a different project ID works.
> Are there any notable changes between the original and different project IDs?
> For instance, is one of the IDs significantly older or were they created at
> roughly the same time?

Yes, I created the second one specifically to help resolving my issue, so it's
about nine months younger than the original one. I cannot tell you exactly,
because could not find that information in the Cloud Console.

> If you use your custom domain only and not the appspot url, you could repoint
> your domain to use the project ID that is working and skip the problem
> entirely.

I know I could to that, but that's quite cumbersome and a dirty solution. The
project has a history (billing) that I want to keep intact for audit purposes,
also transitioning to a different project would mean migrating Datastore. I bet
there are a few other interfaces where the ID matters (authenticating with my
Application?!).

> There's also a couple of things you can try. Try making sure that
> Compute Engine API access is available to your project: go to the APIs
> section in the cloud console, and make sure that all the Compute Engine
> services are enabled.

All those APIs are enabled. I crosschecked with the working project beforehand.

> Secondly, try making sure Cloud Integration is active. Go to appspot.com (the
> "old" App Engine console), click on your app name, then click on
> Application Settings on the left hand navigation bar. Scroll all the way down
> and ensure your app is integrated.

That apparently did the trick! I don't know why, but this showed an
error before:
http://imgur.com/G4NwRve  After retrying, everything worked out!

Thank you very much!

All the best,
Lorenz Leutgeb

On 11 March 2015 at 23:05, Vinny P  wrote:
> On Tue, Mar 10, 2015 at 6:20 AM, Lorenz Leutgeb 
> wrote:
>>
>> I have asked a question on StackOverflow and did not get any response for
>> about a month.
>> Please consider taking a look: http://stackoverflow.com/questions/28128598
>
>
>
> In your SO post you say that deployment to a different project ID works. Are
> there any notable changes between the original and different project IDs?
> For instance, is one of the IDs significantly older or were they created at
> roughly the same time? If you use your custom domain only and not the
> appspot url, you could repoint your domain to use the project ID that is
> working and skip the problem entirely.
>
> There's also a couple of things you can try. Try making sure that Compute
> Engine API access is available to your project: go to the APIs section in
> the cloud console, and make sure that all the Compute Engine services are
> enabled. Your screen should enable the following services:
> http://imgur.com/3rBrNhv
>
> Secondly, try making sure Cloud Integration is active. Go to appspot.com
> (the "old" App Engine console), click on your app name, then click on
> Application Settings on the left hand navigation bar. Scroll all the way
> down and ensure your app is integrated. If your screen looks like this,
> press the Create button:  http://imgur.com/qpEs2ju
>
>
>
> -
> -Vinny P
> Technology & Media Consultant
> Chicago, IL
>
> App Engine Code Samples: http://www.learntogoogleit.com
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-appengine/9yyRgsu6SGs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/CALSvALBLkX8L6BOjZArBMMn7ykUG-9WLr%2BFFwezBV1%3DWkPViyw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAM3yxzFijSW6w7T-bB%3DeUk07wGVgej0EkAQhp6RcrZjM1VvcHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Could not get response from Google API's via Java servlet in GAE

2015-03-12 Thread footprint
Thanks Michael :-) I will post there.

2015年3月12日木曜日 3時06分51秒 UTC+9 Michael:
>
> This sort of programming/development question would be better directed to 
> Stack 
> Overflow's App Engine tag 
> . I 
> recommend posting there for more technical issues as it is more likely that 
> you will get a solution to your problem.
>
> On Wednesday, March 11, 2015 at 6:20:40 AM UTC-4, foot...@umiack.com 
> wrote:
>>
>> I can get the response from Google API's via web browser. It is say,
>>
>> Access to 
>>
>>
>> https://www.googleapis.com/blogger/v3/blogs/4871538073781423026?access_token=
>>
>> by some web browser, and get response
>>
>> {
>>  "kind": "blogger#blog",
>>  "id": "4871538073781423026",
>>  "name": "SoffeeShop",
>>  "description": "",
>>  "published": "2012-10-24T23:55:32+09:00",
>>  "updated": "2015-03-04T14:31:00+09:00",
>>  "url": "http://soffeeshop.blogspot.com/";,
>>  "selfLink": 
>> "https://www.googleapis.com/blogger/v3/blogs/4871538073781423026";,
>>  "posts": {
>>   "totalItems": 58,
>>   "selfLink": 
>> "https://www.googleapis.com/blogger/v3/blogs/4871538073781423026/posts";
>>  },
>>  "pages": {
>>   "totalItems": 0,
>>   "selfLink": 
>> "https://www.googleapis.com/blogger/v3/blogs/4871538073781423026/pages";
>>  },
>>  "locale": {
>>   "language": "en",
>>   "country": "",
>>   "variant": ""
>>  }
>> }
>>
>>
>> Although, when I do REST in the servlet in GAE, like
>>
>>
>> URL url = new 
>> URL("https://www.googleapis.com/blogger/v3/blogs/4871538073781423026?access_token=X";);
>> HttpURLConnection connection = (HttpURLConnection) url.openConnection();
>> connection.setRequestMethod("GET");
>> connection.setRequestProperty("X-Appengine-Inbound-Appid", "X");
>> connection.setRequestProperty("Accept", "application/json");
>> connection.setRequestProperty("Host", "googleapis.com");
>>
>>
>> or
>>
>>
>> URL url = new 
>> URL("https://www.googleapis.com/blogger/v3/blogs/4871538073781423026);
>> HttpURLConnection connection = (HttpURLConnection) url.openConnection();
>> connection.setRequestMethod("GET");
>>
>> connection.setRequestProperty("Authorization", "Bearer " + access_token); 
>>
>> connection.setRequestProperty("X-Appengine-Inbound-Appid", "X"); 
>> connection.setRequestProperty("Accept", "application/json"); 
>> connection.setRequestProperty("Host", "googleapis.com");
>>
>>
>> i just got "404 Not Found" Error. 
>>
>>
>> I could get access_token with OAuth2 using HttpURLConnection in the same 
>> servlet in GAE, just could not do access to google API's. So, it's mean Http 
>> Connections are working well to access to other servers.
>>
>>
>> Why I could not access only Google API's via servlet in GAE? Please help 
>> me...
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3833eb61-a4a4-4d4c-bff4-66feb87d978f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Why is my Google App Engine application throwing AccessControlExceptions?

2015-03-12 Thread 'Roberto Chinnici' via Google App Engine
Could you post the code you use to initialize FreeMarker?

On Tue, Mar 10, 2015 at 10:44 AM, Holger Weissböck <
holger.weissbo...@gmail.com> wrote:

> Hello everyone,
>
> I am in panic mode today and would very much appreciate your precious help:
>
> Since three hours now our Java-based Google App Engine application is
> throwing AccessControlExceptions when it tries to load a FreeMarker
> template. The code of this application did not change for 11 days. Since
> approximately 3h however each template loading request throws something
> like this:
>
> java.security.AccessControlException: access denied ("java.io.FilePermission" 
> "/WEB-INF/freemarker/panel/root.ftl" "read")
> at com.google.appengine.runtime.Request.process-e5a6df6e4f6e9c58(Request.java)
> at 
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:382)
> at java.security.AccessController.checkPermission(AccessController.java:572)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
> at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
> at java.io.File.isFile(File.java:961)
> at freemarker.cache.FileTemplateLoader$2.run(FileTemplateLoader.java:165)
> at java.security.AccessController.doPrivileged(AccessController.java:63)
> at 
> freemarker.cache.FileTemplateLoader.findTemplateSource(FileTemplateLoader.java:161)
> at 
> freemarker.cache.TemplateCache.acquireTemplateSource(TemplateCache.java:628)
> at freemarker.cache.TemplateCache.findTemplateSource(TemplateCache.java:618)
> at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:316)
> at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:205)
> at freemarker.template.Configuration.getTemplate(Configuration.java:740)
> at freemarker.template.Configuration.getTemplate(Configuration.java:665)...
>
> As you can see the problem seems to be that the application is not allowed
> to load this file any more, although it was allowed to load it in the past.
>
> *Did the behaviour of App Engine change when it comes to file reading
> permissions? Am I missing something?*
>
> Thanksalot for your input!
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/4088eb7a-0848-4490-b404-1f8851cf9b7f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAKQgnXV8%2BjkbrieRJsnDaBPObEKVUd%3Da2uqnmLDu%3DPgMbrraTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Question about Google App Engine Instance Hours estimation

2015-03-12 Thread 'Alex Martelli' via Google App Engine
http://stackoverflow.com/questions/16782136/how-are-frontend-instance-hours-calculated-on-app-engine
appears to answer your question.

Alex

On Mon, Mar 9, 2015 at 10:14 PM, Kampanat Metawuthinun <
kampana...@tangerine.co.th> wrote:

> I have to calculated the Cloud’s cost for my project but I have many
> question about Google App Engine Instance Hours estimation.
>
>
> I’ve test send 100 Concurrency request to Google App Engine  and
> monitoring Instance hours consuming values from Dashboard.I’ve noticed
> Instance Hours running up and when my jobs are already finished (I know
> this because my data are already saved) it’s still consume instance hours
> for a while after that.Even though no more request.
>
> And after the consuming has stop. there are 1 or 2 idle instance remain in
> my dashboard.
>
> but it not consume instance hours values anyways until my next request.
>
>
>   Can anyone  explain the condition of google app engine to consume
> instance hours values.
>
> If values are consume because of my jobs are working .Why when the job
> finished they still consume instance hours values for a while.
>
> If instance hours consume are depended on  idle instances.Why it’s no
> longer consume when I have 1 or more instances in my dashboard
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/426bc1db-66db-4c06-a954-3d7b1ce8c933%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAE46Be8OfxLaj5GFYgpbsN5N2xZFSOjqDQbP5NAhCHyO65ZOcg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Lost my developer account after migrating Google Apps Console

2015-03-12 Thread Gabriel Piassetta
Hello,

I have a product in chrome webstore, using this user 'gabriel at 
cloudncodes.com.br'.

Last weekend we migrated our reseller and now my domain is in another panel.

After migrating console, I cant manage my extension anymore. 

How can I recovery it?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f206d94d-3225-44d0-8919-6c56a651156d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.