Google App Engine for Java meet DFP API- V201302 - google-app-engine

I am not able to access DFP Api using latest version (v201302) on Google App Engine, it works fine at localhost:8888 but gives error at Google App Engine.
Error: Exception retrieving data; nested exception is:
java.net.SocketException: Permission denied: Attempt to access a blocked recipient without permission. (mapped-IPv4)

This is fixed by adding right jars from maven repository.
see complete servlet here.

Related

Unable to create Google App Engine application

When I tried to create a Google App Engine application via gcloud app create at terminal on Ubuntu and on the web, it gives me the following error,
"ERROR: (gcloud.app.create) Error Response: [13] An internal error occurred while ensuring the default service account exists."
I guess the reason why I don't have the default service account because I deleted a default project on GCP which was made when I started using GCP, not sure though.
I made a service account at IAM & admin menu, but not work. Any idea?
Although I found this answer, it didn't work for me.
How to recover Google App Engine's "default service account"
But I didn't delete the default google app engine service account, it was missing at the first place. Maybe because I tried to create a GAE app on the web and left the page before it's done. I don't know.
Anyway, I make a new project and create a GAE app via gcloud cli, and now it's good to go.

Google App Engine not supported Java.io.FileOutputStream

I am very new to google App engine please give me proper solution,my problem is below
when i am trying to deploy my web application to google app engine it shows me error like Java.io.FileOutputStream restricted in google app engine
How to fix it.Is there any setting in google app angine so that this class is supportable without changing java code,
If not what is the alternative way for this problem. Below is my error code.
Uncaught exception from servlet
java.lang.NoClassDefFoundError: java.io.FileOutputStream is a restricted class.
Please see the Google App Engine developer's guide for more details.
On the Google App Engine lots of classes are simply not available or give you an SecurityException. You are simply not allowed to read or write files on GAE.

Endpoints configuration not updated

Hello i am trying to deploy backends to google apps engine got error java.lang.RuntimeException: Endpoints configuration not updated,Front end deployed successfully but backends showing consistently loading,i didn't changed anything in code even also my eclipse,jdk & google sdk are same.Eclipse=indigo,jdk=1.7 & google sdk=1.8.5.
please let me know where i did mistakes.

Deploy cloud endpoints on custom domain

I'm testing with Google Cloud Endpoints on App Engine and I've mapped my app to a custom domain. It appears that this is not possible. I've tried accessing the endpoint url, changing the host but this gives me a 404.
I've also tried to change the root url and backend url for the service, but then I get this error after deployment:
Endpoints: https://test.neenbedankt.com/_ah/api/myapi#v1 Error: API root https://test.neenbedankt.com/_ah/api not allowed on host version.myappid.appspot.com
Can somebody confirm this is a limitation? For my current project this would be a showstopper.
Correct, you can not map to a custom domain at current.
edit: Google CloudEndpoints 2.0 will support this, which is now BETA. As explained by Google in the link below.
Google has now announced this "will be supported" but has not given an ETA.
https://code.google.com/p/googleappengine/issues/detail?id=9384#c44

Different behaviour in Eclipse with Google Eclipse Plugin than Google App Engine

I have a Google App Engine project created in Eclipse with the Google Eclipse Plugin.
When I run some of its services locally with the GAE SDK they work fine, but when I deploy the app on "the real" Google App Engine and try to access any of these services, chrome throws the following error:
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.
On the other hand, I also get THIS error locally when trying to call an upload method.
All of this is someone else's project and it's meant to work, besides I don't think the error is related to the code, hence, I don't think it's worth it posting it here.

Resources