B, SHA1 Digest error in the first line in the error code. With Java errors, always focus on the first line in the error code, rest of the lines are garbage **mostly**.
The most likely cause of the error is that one of the JAR files in your application has been tampered with or is corrupt. The SHA1 digest error indicates that the JAR file's signature does not match the expected value, which could be due to tampering or corruption.
To fix the issue, you should try uploading missing JAR files and redeploying your application. If the issue persists, you may need to digitally sign all of your JAR files and redeploy your application to ensure that the signatures are valid. You should not try to recompile the Cloaked
1. JAR signing and integrity: Digitally signing your JAR files ensures their authenticity and integrity. It adds a digital signature that verifies the origin and confirms that the file hasn't been tampered with. This is crucial for security and prevents issues like the SHA1 digest error you're encountering.
2. App Engine requirement: Google App Engine enforces JAR signing for security reasons. All deployed applications must have properly signed JAR files.
A SHA1 digest error during the deployment of a Java application to Google App Engine (GAE) typically indicates an issue with the integrity of your JAR files. This error can arise due to corrupted, modified, or missing JAR files that are essential for your application to run correctly.
A missing JAR (Java ARchive) file indicates a problem with the code to be deployed.
B Digitally signing all of your JAR files indicates a problem with the signature.
A is better
A. Upload missing JAR files and redeploy your application.
The error message indicates that there is a problem with the SHA1 digest for the "com/altostrat/cloakedservlet.class" file. This can be caused by a corrupted or incomplete JAR file. Therefore, the best course of action is to upload any missing JAR files and redeploy the application.
Ok B but how is this question related to a GCP exam? I guess a google search will be faster than reading the theory around Java (unless you are a developer).
I see your point, but for basic troubleshooting of apps, i will usually have access to google (aka stackoverflow homepage). This could have been a cloud developer question that they repurposed.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Eroc
Highly Voted 5 years agotartar
4 years, 3 months agoUrban_Life
3 years, 1 month agonitinz
3 years, 8 months agoomermahgoub
Highly Voted 1 year, 11 months agoEkramy_Elnaggar
Most Recent 2 days, 18 hours agochrissamharris
1 week, 3 days agolisabisa
8 months, 3 weeks agoAdityaGupta
1 year, 1 month agoSantoshPanigrahi
1 year, 3 months agoJC0926
1 year, 8 months agotocsa
5 months, 2 weeks agoRacinely
2 years agominmin2020
2 years, 1 month agozr79
2 years, 1 month agoAzureDP900
2 years, 1 month ago[Removed]
1 year, 10 months agoholerina
2 years, 2 months agoavinashvidyarthi
2 years, 6 months agoMunna19
2 years, 6 months agovincy2202
2 years, 11 months agoduocnh
2 years, 11 months agoTheCloudBoy77
3 years agobala786
3 years, 4 months ago