I'm encountering a probem with my GWT app. Everything is working great in local but I got Error 500 when the application is deployed on Google App Engine.
To understand the problem, I tried to deploy the sample Web Application example with Greetings service and I still got the same error Remote Procedure Call - Failure.
I think it's coming from my IDE settings but can't figure out what is the problem.
Can anyone help ?
The problem you are facing is with ONLY servlet paths .
The environment and the folder structure will be cmpletely different in Dev-Mode and Deployment environment .
In The below link ,explained the problem you are facing.
Eclipse GWT sample greeting project RPC failure .
Related
I am new to GCP. I created a cloud-SQL instance (PostgreSQL 14) and tried to connect to it from the app engine.
I am using the following code on github.
https://github.com/GoogleCloudPlatform/python-docs-samples/tree/9d4343d0845d6e20e0b08d1242c38aaaf0d9c075/appengine/standard_python3/cloudsql
main_postgres.py-> as my main file
I updated the connection information in the app.yaml file according to the instance and database I created. I did not make any other changes to the main_postgres.py file.
I deployed app engine in the directory with main_postgres.py
After deploying when I go to the link it says :
I am not able to figure out where I am going wrong. any help is appreciated. thanks!
I managed to replicate the github link you provided. I solved it by renaming the main_postgres.py file to main.py. Here's the screenshot of the output link:
This issue dont seems related to DB but your application configuration.
check errors by running this in cloud shell when you hit appengine url.
gcloud app logs tail
Using Eclipse, I am experiencing an error when trying to deploy a rather basic web app with JAX-RS and JAXB. It runs okay locally, but when trying it on the remote servers I get the message shown below...
'Deploying to Google' has encountered a problem / This application does not exist
Below shows my appengine-web.xml
The XML file illustrates that I am using the same name in the xml as what's specified in the project properties...
The output window show...
------------ Deploying frontend ------------
Preparing to deploy:
Created staging directory at: '/var/folders/n8/6by626014jbfc0dwmxnb0ly00000gn/T/appcfg2754901216637807129.tmp'
Scanning for jsp files.
Scanning files on local disk.
Initiating update.
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=hillingarincident&version=0&
404 Not Found
This application does not exist (app_id=u'hillingarincident').
Debugging information may be found in /private/var/folders/n8/6by626014jbfc0dwmxnb0ly00000gn/T/appengine-deploy447984481661870877.log
The referenced debug logs show...
Unable to update:
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=hillingarincident&version=0&
404 Not Found
This application does not exist (app_id=u'hillingarincident').
at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:293)
at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:253)
at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:232)
at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:644)
at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:449)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:124)
at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:371)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:53)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:433)
at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:148)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Any answers will be appreciated. At one point my browser was not logged in to the target google account, so I swapped to the correct one a little later, Google does render the application name as expected.
Okay, this was simple in the end! Eclipse performs an auto-login to the Google account, unfortunately I created the Eclipse project whilst being logged in to one Google account and then tried to specify the application name afterwards.
You'll see in the bottom-right (or bottom-left in some versions) a Google icon with the name of the user that you are logged in as. If that's not the account where your application is defined, then simply logout of that account, then login as the correct Google account.
Now there's no error :-)
I know this question is super old but I had this issue all day and finally I found a solution. Maybe it will help someone out in the future.
After you create a project in Google Cloud Platform, you must go to google cloud shell in your project and run the command
gcloud beta app create
After you run this command, you will get prompted to choose a region. Then go back to eclipse and try deploying it. It worked for me.
There are not just 1 way can cause this problem. For me, I have this problem when I create the project using Maven. But I don't have the same issue if I directly create the project from the Google plugin.
There might be another issue, when you register with Google App Engine, you receive email indicating your activation. If you have not received the email yet, this problem could occur too.
Another issue could be to use the gmail account for the Google App Engine to avoid any such errors.
I have created an application using google app engine platform. Initially I tested the application locally using the GAE SDK with Eclipse and everything works fine. When I m trying to deploy it on Google`s server I get 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. "
This is a very generic error. Is there a way to see the server`s log to get an idea of what might have went wrong?
Thnx
Well after looking around on GAE site , I found that you can view the server log in the following location:
Admin console -> "MyAppplication" -> Logs
I have been successfully developing with Google AppEngine/Android C2DM stuff for many months now.
Suddenly, after updating with all the latest Android and AppEngine dev SDK's etc., even the Eclipse built in "App Engine Connected Android Project" (from the Google Plugin for Eclipse) gives the following server error when testing the C2DM:
Server Error: Could not initialize class sun.security.pkcs11.SunPKCS11
Any ideas?
Thanks.
I had a similar problem, and the solution was to choose a different JDK. Not sure if this is your case too but here's the link to the SO question.
Hope it helps.
I am using the Eclipse with the Google AppEngine plugins (Java) and following the http://code.google.com/appengine/docs/java/gettingstarted/uploading.html tutorial.
Everything works fine locally, but when I try to deploy to AppEngine I get an error
"Error While signing in"
An error occurred while trying to sign in 400 bad request. See the error logs for more details.
This error is before I enter any login info or anything.
I am copy/pasting the App ID from the AppEngine website so Im pretty sure I got it right.
I have no idea where the logs are on this thing, so any help there would also be appreciated.
Try logging out and back in again. That worked for me.
Change your proxy settings!
Please go to Window -> Preferences
Then from General find Network Connections and update your proxy settings.
This must solve your issue.