An internal error occurred during deploying app engine - google-app-engine

I am a fresher & Currently working in java spring boot . I have converted my spring project to app engine project by adding libraries and plugins to pom.xml. But while trying to deploy this, I am getting corresponding error . I would be pleased if someone helps me to resolve this.
The error is:
An internal error occurred during: "Deploying to App Engine".
java.lang.NullPointerException

Related

Google App Engine - Failed to generate quickstart-web.xml

I have java8 project in Google App Engine . I already deployed one version of it. Now I made some changes and trying to redeploy with same command as before:
mvn package appengine:deploy
But it always fails with message:
Failed to generate quickstart-web.xml
Any idea what to do? I don't know what happened that it suddenly stopped working. Only thing I thought it could be was that I generated indexes for datastore inside Google Shell with .yaml file (java-11 version), so it somehow messed up, but I am not really sure.
The log looks like this
com.google.appengine.tools.admin.AdminException: Unable to stage app: Failed to generate quickstart-web.xml.
at com.google.appengine.tools.admin.AppAdminImpl.stageApplication(AppAdminImpl.java:543)
at com.google.appengine.tools.admin.AppAdminImpl.stageApplicationWithDefaultResourceLimits(AppAdminImpl.java:492)
at com.google.appengine.tools.admin.AppCfg$StagingAction.execute(AppCfg.java:2508)
at com.google.appengine.tools.admin.AppCfg.executeAction(AppCfg.java:363)
at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:211)
at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:118)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:114)
Caused by: java.lang.IllegalStateException: Failed to generate quickstart-web.xml.
at com.google.appengine.tools.admin.Application.createQuickstartWebXml(Application.java:1732)
at com.google.appengine.tools.admin.Application.populateStagingDirectory(Application.java:1002)
at com.google.appengine.tools.admin.Application.createStagingDirectory(Application.java:862)
at com.google.appengine.tools.admin.AppAdminImpl.stageApplication(AppAdminImpl.java:539)
... 6 more
To migrate from Java8 project to Java11 in App Engine Standard, you can follow the next Official Documentation.

Google App Engine deploy error: Error scanning entry module-info.class

I'm developing an application and I would like to deploy in Google app engine.
I'm using Eclipse with google cloud plug in.
I'm using JDK 1.8.
When I deploy the application I receive this error:
java.lang.RuntimeException: Error scanning entry module-info.class
from jar
file:///var/lib/jetty/webapps/root/WEB-INF/lib/yasson-1.0.jar

Google Managed VMs error while deploying

We just moved to VMs and while deploying we are having issues in Java Environment. The error is
Error Create Config Bucket failed. during VmCreateConfigBucket.
Then tried all the steps in the Google Page - deploying to Production. Nothing seems to work. (https://cloud.google.com/appengine/docs/managed-vms/sdk)
Then We manually tried to create the buckets in Google Console. Retried our deployement but got the same error.
DETAILED Error message in the LOG :: Unable to update:
java.lang.RuntimeException: Fatal problem encountered during deployment. Please refer to the logs for more information.
at com.google.appengine.tools.admin.AppVersionUpload.isServing(AppVersionUpload.java:900)
at com.google.appengine.tools.admin.AppVersionUpload.access$100(AppVersionUpload.java:41)
at com.google.appengine.tools.admin.AppVersionUpload$2.call(AppVersionUpload.java:779)
at com.google.appengine.tools.admin.AppVersionUpload$2.call(AppVersionUpload.java:776)
at com.google.appengine.tools.admin.AppVersionUpload.retryWithBackoff(AppVersionUpload.java:1029)
at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java:776)
Removing the image did the trick for me.
docker rmi <image>
Then:
gcloud preview app deploy --version=my_version my_dir/app.yaml

How to deal with App Engine Devserver exception due to FormatStyle restricted class?

Developing a Google App Engine app with Spring MVC, the following exception presents itself while running the dev server on OSX:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0':
Initialization of bean failed [...]
nested exception is java.lang.NoClassDefFoundError:
java.time.format.FormatStyle is a restricted class. Please see the
Google App Engine developer's guide for more details.
This error does not present itself if I upload my app to Google App Engine's cloud server.
How to get around it?
Downgrading Java 1.8 to 1.7 fixed the issue.
Well, that is not the answer most people would look for. Following is the solution to fix the problem.
use
<runtime>java8</runtime>
in
appengine-web.xml
This will fix the problem. This doesn't require you to downgrade you java version from 1.8 to 1.7.

GWT app not uploading on app engine

I am trying to upload simple web app created using GWT eclipse plugin to google app engine.
I have created and tried with three ids but I can't deploy on the contrary it throws an error that
"This application does not exist"
ERROR:
Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=lathik6&version=1&
404 Not Found
This application does not exist (app_id=u'lathik6').
I am using eclipse3.6 and jdk1.6 in windows7.
Have you added the App engine support in your gwt application . . ?? if not then add the support.

Resources