I made an android gluon app, testing the validity of the model before going "big boy".
I had some struggles, mainly due to how different a gluon app on desktop and mobile (android) react.
I was able to overcome all of them, except one.
When my app starts, i open some websockets connections and get this exception
[Thu Aug 11 08:39:13 CEST 2022][INFO] [SUB] D/GraalCompiled(22536): Caused by: java.lang.NoSuchMethodException: java.lang.Byte.valueOf(java.lang.String)
[Thu Aug 11 08:39:13 CEST 2022][INFO] [SUB] D/GraalCompiled(22536): at java.lang.Class.getMethod(DynamicHub.java:1114)
[Thu Aug 11 08:39:13 CEST 2022][INFO] [SUB] D/GraalCompiled(22536): at org.eclipse.jetty.util.TypeUtil.<clinit>(TypeUtil.java:147)
[Thu Aug 11 08:39:13 CEST 2022][INFO] [SUB] D/GraalCompiled(22536): ... 35 more
I've had lots of reflection problems, but this one i don't know how to tackle.
Here are the various parameters:
app compiled on linux (ubuntu)
netbeans 13
jdk 17.0.4
gluon plugin 2.8.4
graalvm-svm-java17-linux-gluon-22.0.0.3-Final
javaStaticSdkVersion='18-ea+prep18-8
galaxy tab A8, android 11
Don't know what else to say, i don't have a clue as to where to start, there are too many paths i can go and search.
Thanks for any input.
You're seeing this error because Jetty's TypeUtil class uses reflection for some String-to-basic type conversions.
Access via reflection is difficult to resolve upon compilation time, which is probably why your GraalVM native-image build fails: native-image only includes classes that are deemed necessary, and in this case it just missed to include it.
A proper fix would be to change TypeUtil to use method references instead of reflection (I ran into the same problem, and I've just filed Jetty pull request #9115).
However, you will most likely want to run your code now, and can't wait for this to be merged. Additionally, you may probably encounter more of these reflection issues even if this particular one is fixed.
In order for GraalVM native-image to know which classes and methods are accessed via reflection, you can specify them via configuration files in the resource classpath, under META-INF/native-image/com.yourdomain/your-project/reflect-config.json. Upon assembly, native-image will pick up this configuration from the classpath.
You can also use the GraalVM native-image Tracing Agent to create this file automatically.
To do this, invoke your app with the GraalVM JRE (i.e., using Hotspot, not native-image), and specify the following VM argument:
-agentlib:native-image-agent=config-output-dir=/tmp/native-image.{pid}
Interact with your app like you normally would (cover as much as possible), then terminate the VM.
You will see a bunch of JSON files created under /tmp/native-image.(PID). Copy all of them under the META-INF path described above and rebuild your native image.
For details see the GraalVM documentation, e.g., Reflection Use in Native Images
and Native Image Tracing Agent.
Related
I am creating a swing based application in Java which uses some encryption technique. But
javax.crypto.KeyGenerator.getInstance("AES", "BC") gives exception:
java.security.NoSuchProviderException: JCE cannot authenticate the provider BC
at javax.crypto.SunJCE_b.a(DashoA13*..)
at javax.crypto.KeyGenerator.getInstance(DashoA13*..)
So what is the problem?
edit jre\lib\security\java.security
add security.provider.10=org.bouncycastle.jce.provider.BouncyCastleProvider
copy bc*.jar to jre\lib\ext
To expand on the comment from GregS, all JCE provider JARs must be signed before they will be trusted by your Java runtime.
BouncyCastle dutifully supplies signed JARs that will work without a problem. However, if you extract class files from this JAR, or recompile the source, it will remove the signature and cause Java to reject the code.
See this related SO question: How to sign a custom JCE security provider
For those finding this issue but actually using SpongyCastle, it might be interesting to know that on Android there is no such signature test and for your tests you can use SpongyCastle via the openJDK-8 as that doesn't care about signatures neither.
For reference, with SpongyCastle the error reads:
java.lang.SecurityException: JCE cannot authenticate the provider SC
More information in this issue
We have been suffering with the same issue for a few weeks and had tried a lot of the suggested steps to no avail. Providing our solution below so others don't have to suffer like we did!
We were attempting to use bcprov-ext-jdk15on-162.jar, added to classpath, included in JBoss lib directories, bundled with WAR, marked as provided and added to JBoss /lib directories but no luck.
In the end, we tried different versions of bouncycastle and found a less recent version who's signature could be verified by our particular Java version's jarsigner (1.5X).
Despite the jar's signature being verifiable by our Java version, when the .jar is packaged into a WAR the signature was invalidated somehow by JBoss.
In the end, the solution for us was to;
1. Add bouncycastle jar to JBoss classpath
2. Add 'org.bouncycastle.jce.provider.BouncyCastleProvider' to 'java.security' providers
3. Mark bouncycastle in your WAR as a 'provided' dependency
Once we had a version of the .jar on our classpath and were sure that our WAR was not packaging it in we were golden.
The issue seems to be tightly coupled to whatever Java/JBoss version you happen to be using. So if this solution does not work for you I would suggest to test different versions of bouncycastle with
jarsigner -verify <bouncycastle.jar>
There are lot of solutions to this problem but unfortunately nobody talks about the causing issue.
If you are generating an executable jar that has BC.jar in it(in form of any dependency) than this issue would occur if below condition matches:
Generating jar via eclipse's export option i.e. Export-> Runnable Jar File -> Libary Handling {extract required libraries into generated Jar}-> FINISH
Boom, now you have landed into trouble and you will face an error i.e. JCE can't authenticate the provider BC
The reason for above problem is, when you create a jar with option 1 than you are actually unpacking the BouncyCastle jar again that violates the security assosiated with BC. So, whenever you run it again java validates it and finds current BC.jar in your assosiated jar has an error.
So, guys make sure what you are doing is justified because by changing the JDK's security data that will make it work but not for everyone.
How to make it work?{This will work on local/personal machine only,not on every machine }
edit jre\lib\security\java.security file
add security.provider.10=org.bouncycastle.jce.provider.BouncyCastleProvider
copy bc*.jar to jre\lib\ext
That's it.
For me the issue was bcprov-ext-jdk16.jar was being discarded by sbt assembly.
[warn] Merging 'META-INF/license/LICENSE.bouncycastle.txt' with strategy 'discard'
..
[warn] Merging 'META-INF/maven/org.jasypt/jasypt/pom.properties' with strategy 'discard'
[warn] Merging 'META-INF/maven/org.jasypt/jasypt/pom.xml' with strategy 'discard'
..
So I ended up using the bouncycastle.jar from -classpath as below,
java -Denvironment=dev -cp chat-server.jar:/Users/prayagupd/.ivy2/cache/org.bouncycastle/bcprov-ext-jdk16/jars/bcprov-ext-jdk16-1.46.jar com.chat.server.ChatServer
What also works is putting the bouncycastle.jar to $JAVA_HOME/jre/lib/ext,
cp /Users/prayagupd/.ivy2/cache/org.bouncycastle/bcprov-ext-jdk16/jars/bcprov-ext-jdk16-1.46.jar $JAVA_HOME/jre/lib/ext/
$ ls -l $JAVA_HOME/jre/lib/ext/
total 55208
-rw-r--r-- 1 root wheel 1887089 May 7 21:22 bcprov-ext-jdk16-1.46.jar
-rw-rw-r-- 1 root wheel 3860502 Sep 5 2017 cldrdata.jar
-rw-rw-r-- 1 root wheel 8286 Sep 5 2017 dnsns.jar
-rw-rw-r-- 1 root wheel 44516 Sep 5 2017 jaccess.jar
-rwxrwxr-x 1 root wheel 18610276 Sep 5 2017 jfxrt.jar
-rw-rw-r-- 1 root wheel 1179093 Sep 5 2017 localedata.jar
-rw-rw-r-- 1 root wheel 1269 Sep 5 2017 meta-index
-rw-rw-r-- 1 root wheel 2022735 Sep 5 2017 nashorn.jar
-rw-rw-r-- 1 root wheel 41672 Sep 5 2017 sunec.jar
-rw-rw-r-- 1 root wheel 274148 Sep 5 2017 sunjce_provider.jar
-rw-rw-r-- 1 root wheel 248726 Sep 5 2017 sunpkcs11.jar
-rw-rw-r-- 1 root wheel 68924 Sep 5 2017 zipfs.jar
FYI: instead of modifying java.security and copying jar to \jre\lib\ext, below steps resolved my issue as well.
add Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()) in your class.
add provided scope to bcprov.*.jar dependency in pom.xml.
put bcprov.*.jar to your specific folder(e.g: \lib), then refer it when run the project.
Have large spring boot app and seeing the following message every few seconds in Kibana logs for Java app.
WARNING: Could not find Java_java_lang_ClassLoader_00024NativeLibrary_load
I suspect something that has come in between Java 11 OpenJdk version after 22nd Apr 2022 and on/at 25th Apr 2022.
11-jre-slim: Pulling from library/openjdk
Looked in the code and can not see anything standing out.
Looked at the Java source code and can see C code (oh no!)
Lots of these:
Showing entries from Apr 25, 20:11:32
20:11:32.492. WARNING: Could not find Java_java_lang_ClassLoader_00024NativeLibrary_load
20:11:37.500. WARNING: Could not find Java_java_lang_ClassLoader_00024NativeLibrary_load
20:11:37.702. WARNING: Could not find Java_java_lang_ClassLoader_00024NativeLibrary_load
20:11:42.701. WARNING: Could not find Java_java_lang_ClassLoader_00024NativeLibrary_load
20:11:42.905. WARNING: Could not find Java_java_lang_ClassLoader_00024NativeLibrary_load
20:11:47.913 WARNING: Could not find Java_java_lang_ClassLoader_00024NativeLibrary_load
20:11:48.099. WARNING: Could not find Java_java_lang_ClassLoader_00024NativeLibrary_load
For anyone waiting for a fix for this, Elastic APM Agent has been updated to include a new version of async-profiler which avoids the problem on the mentioned JDKs: https://github.com/elastic/apm-agent-java/issues/2759#issuecomment-1246507167
We opened a new Bug in Oracle because of this problem.
In our case we are using ElasticAPM with java 11.0.15 and that's causing this error. We checked the java source code and found that is probably related to the last changes in openJDK11
Here is the link to the bug in Oracle.
Highly likely that this is a bug in async-profiler, not in java.
Async profiler does try to intercept NativeLibraries::load resp. load0 and replace the original implementation the JVM provides with its own. See https://github.com/jvm-profiling-tools/async-profiler/blob/5312a793ec22106420883e8a274d10c390e6e4b1/src/profiler.cpp#L582-L615
Not sure if they still do this, but they did for a while.
See comments in bug report https://bugs.openjdk.org/browse/JDK-8288547.
I am creating a swing based application in Java which uses some encryption technique. But
javax.crypto.KeyGenerator.getInstance("AES", "BC") gives exception:
java.security.NoSuchProviderException: JCE cannot authenticate the provider BC
at javax.crypto.SunJCE_b.a(DashoA13*..)
at javax.crypto.KeyGenerator.getInstance(DashoA13*..)
So what is the problem?
edit jre\lib\security\java.security
add security.provider.10=org.bouncycastle.jce.provider.BouncyCastleProvider
copy bc*.jar to jre\lib\ext
To expand on the comment from GregS, all JCE provider JARs must be signed before they will be trusted by your Java runtime.
BouncyCastle dutifully supplies signed JARs that will work without a problem. However, if you extract class files from this JAR, or recompile the source, it will remove the signature and cause Java to reject the code.
See this related SO question: How to sign a custom JCE security provider
For those finding this issue but actually using SpongyCastle, it might be interesting to know that on Android there is no such signature test and for your tests you can use SpongyCastle via the openJDK-8 as that doesn't care about signatures neither.
For reference, with SpongyCastle the error reads:
java.lang.SecurityException: JCE cannot authenticate the provider SC
More information in this issue
We have been suffering with the same issue for a few weeks and had tried a lot of the suggested steps to no avail. Providing our solution below so others don't have to suffer like we did!
We were attempting to use bcprov-ext-jdk15on-162.jar, added to classpath, included in JBoss lib directories, bundled with WAR, marked as provided and added to JBoss /lib directories but no luck.
In the end, we tried different versions of bouncycastle and found a less recent version who's signature could be verified by our particular Java version's jarsigner (1.5X).
Despite the jar's signature being verifiable by our Java version, when the .jar is packaged into a WAR the signature was invalidated somehow by JBoss.
In the end, the solution for us was to;
1. Add bouncycastle jar to JBoss classpath
2. Add 'org.bouncycastle.jce.provider.BouncyCastleProvider' to 'java.security' providers
3. Mark bouncycastle in your WAR as a 'provided' dependency
Once we had a version of the .jar on our classpath and were sure that our WAR was not packaging it in we were golden.
The issue seems to be tightly coupled to whatever Java/JBoss version you happen to be using. So if this solution does not work for you I would suggest to test different versions of bouncycastle with
jarsigner -verify <bouncycastle.jar>
There are lot of solutions to this problem but unfortunately nobody talks about the causing issue.
If you are generating an executable jar that has BC.jar in it(in form of any dependency) than this issue would occur if below condition matches:
Generating jar via eclipse's export option i.e. Export-> Runnable Jar File -> Libary Handling {extract required libraries into generated Jar}-> FINISH
Boom, now you have landed into trouble and you will face an error i.e. JCE can't authenticate the provider BC
The reason for above problem is, when you create a jar with option 1 than you are actually unpacking the BouncyCastle jar again that violates the security assosiated with BC. So, whenever you run it again java validates it and finds current BC.jar in your assosiated jar has an error.
So, guys make sure what you are doing is justified because by changing the JDK's security data that will make it work but not for everyone.
How to make it work?{This will work on local/personal machine only,not on every machine }
edit jre\lib\security\java.security file
add security.provider.10=org.bouncycastle.jce.provider.BouncyCastleProvider
copy bc*.jar to jre\lib\ext
That's it.
For me the issue was bcprov-ext-jdk16.jar was being discarded by sbt assembly.
[warn] Merging 'META-INF/license/LICENSE.bouncycastle.txt' with strategy 'discard'
..
[warn] Merging 'META-INF/maven/org.jasypt/jasypt/pom.properties' with strategy 'discard'
[warn] Merging 'META-INF/maven/org.jasypt/jasypt/pom.xml' with strategy 'discard'
..
So I ended up using the bouncycastle.jar from -classpath as below,
java -Denvironment=dev -cp chat-server.jar:/Users/prayagupd/.ivy2/cache/org.bouncycastle/bcprov-ext-jdk16/jars/bcprov-ext-jdk16-1.46.jar com.chat.server.ChatServer
What also works is putting the bouncycastle.jar to $JAVA_HOME/jre/lib/ext,
cp /Users/prayagupd/.ivy2/cache/org.bouncycastle/bcprov-ext-jdk16/jars/bcprov-ext-jdk16-1.46.jar $JAVA_HOME/jre/lib/ext/
$ ls -l $JAVA_HOME/jre/lib/ext/
total 55208
-rw-r--r-- 1 root wheel 1887089 May 7 21:22 bcprov-ext-jdk16-1.46.jar
-rw-rw-r-- 1 root wheel 3860502 Sep 5 2017 cldrdata.jar
-rw-rw-r-- 1 root wheel 8286 Sep 5 2017 dnsns.jar
-rw-rw-r-- 1 root wheel 44516 Sep 5 2017 jaccess.jar
-rwxrwxr-x 1 root wheel 18610276 Sep 5 2017 jfxrt.jar
-rw-rw-r-- 1 root wheel 1179093 Sep 5 2017 localedata.jar
-rw-rw-r-- 1 root wheel 1269 Sep 5 2017 meta-index
-rw-rw-r-- 1 root wheel 2022735 Sep 5 2017 nashorn.jar
-rw-rw-r-- 1 root wheel 41672 Sep 5 2017 sunec.jar
-rw-rw-r-- 1 root wheel 274148 Sep 5 2017 sunjce_provider.jar
-rw-rw-r-- 1 root wheel 248726 Sep 5 2017 sunpkcs11.jar
-rw-rw-r-- 1 root wheel 68924 Sep 5 2017 zipfs.jar
FYI: instead of modifying java.security and copying jar to \jre\lib\ext, below steps resolved my issue as well.
add Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()) in your class.
add provided scope to bcprov.*.jar dependency in pom.xml.
put bcprov.*.jar to your specific folder(e.g: \lib), then refer it when run the project.
I am learning Apache Cayenne, so I am new to it.
I am following the official guide http://cayenne.apache.org/docs/3.0/tutorial.html.
I am doing exactly the same as the guide says, but when I save the project, it's generating 2 xml files, instead of 3, and when I run the java app (using the classes generated) following error appears:
Exception in thread "main" org.apache.cayenne.ConfigurationException: [v.3.0RC2 Feb 03 2010 13:38:54] Error during Configuration initialization. [v.3.0RC2 Feb 03 2010 13:38:54] [org.apache.cayenne.conf.DefaultConfiguration] : Domain configuration file "cayenne.xml" is not found.
at org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:168)
at org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:141)
at org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:121)
at org.apache.cayenne.conf.Configuration.getSharedConfiguration(Configuration.java:91)
at org.apache.cayenne.access.DataContext.createDataContext(DataContext.java:143)
at org.example.cayenne.Main.main(Main.java:21)
Caused by: org.apache.cayenne.ConfigurationException: [v.3.0RC2 Feb 03 2010 13:38:54] [org.apache.cayenne.conf.DefaultConfiguration] : Domain configuration file "cayenne.xml" is not found.
at org.apache.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:141)
at org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:159)
... 5 more
I don't know what happened
I think I know what's going on. If you look at the exception, your stack trace indicates Cayenne version being v.3.0RC2. This is a version of the runtime. 2 files (one of which is called something like "cayenne-project.xml"), were generated by the Modeler version 3.1. You need to ensure that both the Modeler and the runtime are of the same release.
3.1 Tutorial seems to be correct in respect to the actual files in the project:
http://cayenne.apache.org/docs/3.1/tutorial/ch02.html#create-new-project
I am a new programmer trying to deploy my Java web application to a web host for the first time. I started trying to do it with Jelastic but I need file storage, not just a .jar file, and it looks like you have to pay a LOT to upgrade.
If you know of a way I can upload my application and also store a single .png (image) file so my application can overwrite it by accessing the URL please let me know. I don't mind paying X money for a host but $150 or whatever is crazy.
In the meantime I found that Google App Engine lets you upload a Java application. I have been trying to do this for maybe 3 hours.
I am stuck with the error:
WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=animelist1&version=1&
404 Not Found
This application does not exist (app_id=u'animelist1').
I have checked that I am logged in under the correct Google account (no others, and rebooted and used CCleaner to clear my browser cache), that I have an empty project in Google App Engine called "animelist1" and have checked that my application is called "animelist1" with the appengine-web.xml with "animelist".
I am using the netbeans plugin to deploy to Google. I have the correct email set there.
There are many people with this issue who fixed it the same way. However as I am a beginner I am unable to figure out how to do this method. The method is
This application does not exist (app_id=xxx)
Google App Engine : this application does not exist
(and many others with similar answers)
The method is "appcfg.py update --no_cookies MyProjectDirectory/" or "appcfg.py update . --no_cookies"
Can you please assist me in doing this?
I have located appcfg.py at
C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine
there is another one at
C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools
there is also a appcfg_java.py here but we can come to that later if need be.
I have tried using the Google Cloud SDK Shell (which looks like the cmd console) to navigate to the directory and type those commands. This opens the file in a text file and doesn't seem to do anything else.
I believe I may have to find the appcfg relevant to my application/project (but I'm not sure). When I do a computer search for the file I get 8 files with that name returned:
image
All I want to do really is upload my Java Glassfish web application, then upload a .png file so I can point my application to it (it will overwrite the file).
I thought about changing my application to run on Tomcat because I thought I saw there was a free Java host that allows tomcat. That was several hours ago now because I have been headbutting this thing so maybe I should just abort and try that instead. Or if you know of a host that doesn't cost $150+ let me know. I don't know why they said they cost that, I thought you could host really cheaply.
Please help, thankyou!!!!
The full code of my error is below. I don't know why there is an error about System Java Compiler, I just checked my environment after messing it up, saw it hadn't saved, then rebooted, and now it is saved. I have a JAVA_HOME system variable set to C:\Program Files\Java\jdk1.8.0_40 and my Path system variable is
C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files\Java\jdk1.8.0_40
(maybe I don't need both, not sure). I have nothing else set there, nothing in User Variables though I will double check if that is needed.
Here is my full error log:
********************************************************
There is a new version of the SDK available.
-----------
Latest SDK:
Release: 1.9.19
Timestamp: Thu Feb 19 23:57:40 GMT 2015
API versions: [1.0]
-----------
Your SDK:
Release: 1.9.18
Timestamp: Thu Feb 12 19:30:16 GMT 2015
API versions: [1.0]
-----------
Please visit https://developers.google.com/appengine/downloads for the latest SDK.
********************************************************
Reading application configuration data...
Apr 20, 2015 6:51:40 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed C:/Users/J/Documents/NetBeansProjects/g5/target/animelist1-1.0-SNAPSHOT\WEB-INF/appengine-web.xml
Apr 20, 2015 6:51:40 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed C:/Users/J/Documents/NetBeansProjects/g5/target/animelist1-1.0-SNAPSHOT\WEB-INF/web.xml
Beginning interaction for module default...
Apr 20, 2015 6:51:40 AM com.google.appengine.tools.admin.AbstractServerConnection send1
WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=animelist1&version=1&
404 Not Found
This application does not exist (app_id=u'animelist1').
This is try #0
Apr 20, 2015 6:51:40 AM com.google.appengine.tools.admin.AbstractServerConnection send1
WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=animelist1&version=1&
404 Not Found
This application does not exist (app_id=u'animelist1').
This is try #1
Apr 20, 2015 6:51:41 AM com.google.appengine.tools.admin.AbstractServerConnection send1
WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=animelist1&version=1&
404 Not Found
This application does not exist (app_id=u'animelist1').
This is try #2
Apr 20, 2015 6:51:41 AM com.google.appengine.tools.admin.AbstractServerConnection send1
WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=animelist1&version=1&
404 Not Found
This application does not exist (app_id=u'animelist1').
This is try #3
0% Created staging directory at: 'C:\Users\J\AppData\Local\Temp\appcfg8900677438454325367.tmp'
5% Scanning for jsp files.
8% Compiling jsp files.
Error Details:
Apr 20, 2015 6:51:42 AM org.apache.jasper.JspC processFile
INFO: Built File: \index.jsp
java.lang.RuntimeException: Cannot get the System Java Compiler. Please use a JDK, not a JRE.
Unable to update app: Cannot get the System Java Compiler. Please use a JDK, not a JRE.
Please see the logs [C:\Users\J\AppData\Local\Temp\appcfg6599854602413633444.log] for further information.
I have an empty project in Google App Engine called "animelist1"
If you mean that you've used the SDK set up a local project, then you might have missed a step. When you visit http://appengine.google.com/ , does "animelist1" appear in the list of your applications? If not, you'll need to click the Create Application button (and hope that someone else hasn't already used that appid).
No project with ID 'animelist1' currently exists, but this ID is not available (it could exist in the past, but was deleted). If you already created the project your App ID is the same as Project ID, not Project name. If you didn't yet create the project, create one either in the old App Engine console as suggested by Dave or as per manual.
This is an credentials issue in most cases when you download code from already exsit project.
Make sure you have only one google account login your default browser.
Go to your lib/appengine-java-sdk-<version>/bin/ and run:
appcfg --no_cookies update <project-dir>
Note: early appcfg version command may like :appcfg update --no_cookies <project-dir>