Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I followed Google's tutorial for the Java version of App Engine and when I ran it on my machine it would work fine at localhost:8888/guestbook and all it displayed was Hello, World. However when I deployed it and then accessed it through app-name.appspot.com/guestbook, it gives me a 500 error.
Here's the GuestbookServlet code: http://pastebin.com/LrAjXjW4
web.xml and appengine-web.xml contents: http://pastebin.com/UYFw3ChZ
I'm really sorry if this is a noob mistake and easily found by searching but I looked around for half a day and still couldn't find an answer.
I'll post more code if necessary but its basically the first tutorial of AppEngine in Java
Thanks
Sounds like you're using Java 7, which App Engine doesn't support. Recompile with JDK6 and it should clear up.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I'm having trouble starting a webapp that works smoothly on TOMCAT 9, while in Tomcat 10.0.4 it just doesn't seem to want to start.
I have deployed the .war file and when I run the application, I report this error.
I have activated the DEBUG log, but nothing comes up. I can't understand what the problem is. On TOMCAT 9 it works great. has anything changed from TOMCAT 9 to 10?
The application makes only and exclusively use of API
Apache Tomcat 10.0.x requires Java 8 or later. This is unchanged from Tomcat 9.0.x.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I'm trying to learn Spring. I followed a tutorial with Java and Maven, and everything worked perfectly, However, I wanted to use Kotlin instead of Java, so I generated a new project by following this tutorial.
The first time I launched the app, I had no problems, but when I relaunched it, I received this exception:
Error: Could not find or load main class com.example.blog.BlogApplication
Caused by: java.lang.ClassNotFoundException: com.example.blog.BlogApplication
This error occurs with Java and Kotlin, and my class exists and is correctly compiled, so the only one problem comes from Gradle.
I found 2 solutions to fix this error:
Removing directory ".gradle/6.8.3"
Using an older version of gradle (5.6.4 instead of 6.8.3)
Of course, these are not fully satisfying and I'd like to use the latest version.
Does anyone have an idea? Is it simply impossible?
Ok. This is just not possible as said in this issue : https://github.com/spring-projects/spring-boot/issues/24225
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have a discord bot developed in Java using the latest version of JDA (4.2.0_168).
I have a few events in my bot and only one works.
The GuildMessageReceivedEvent works but other events like GuildMemberJoinEvent,GuildMemberRemoveEvent and GuildMessageReactionRemoveEvent don't work.
The problem is before I updated the version everything was working.
I didn't change anything but the GuildMemberRemoveEvent in the code so I have no idea what to do. I tried to read the docs but nothing is there.
First of all that's not the latest version of JDA. It currently is 4.2.0_212 and you can find the latest on Jenkins any time.
You didn't mention anything about the intents you use so I'll go off on a tangent and assume you don't use intents properly. In order for these events to work you need to enable the GatewayIntent.GUILD_MEMBERS. This is explained in the requirements section of the event documentation.
Use enableIntents(GatewayIntent.GUILD_MEMBERS) on your JDABuilder or DefaultShardManagerBuilder. This will allow you to use these events.
I recommend reading the troubleshooting guide if you experience any other issues.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I created an app game that runs perfectly on the eclipse emulator. However, when my friends download it in the Google Play Store it crashes on start up. I have attached the crash report from my Google Developer Dashboard, it says the crash is caused by java.lang.ClassNotFoundException but I can't figure out how to fix this. Can you guys please help me? I've been struggling with this for a few days.
https://i.stack.imgur.com/sL4E6.png
One suggestion I have - please check if user sometimes earlier already installed and tested older version of the game, and possibly old corrupted data stay at the device memory. In this case un-installing the app thru app manager, and cleaning-up the related data may help. Good luck!
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
So I'm following this tutorial http://masl.cis.gvsu.edu/2010/10/12/android-dev-tutorial-now-available-on-the-gvsu-itunes-u-portal/ and have had no problems what so ever until now.
On Module 3, the app downloads data from twitter and displays them in a list view. I followed the lecture video and understand everything. However, once I tried it on my own I ran into issues. I even copy and pasted the lecture source code and still can't get it to work.
What I'm wondering, is it my mistake? or does it have to do with some obsolete code, as the tutorial is more than a few years old?
Here's my 2 java classes:
http://pastebin.com/g27HrgN3
http://pastebin.com/d7kD0gr4
The app never lists any twitter data like it's supposed to. Here's the app output
here's what I get as output on my environment
As you can tell, I'm new to android programming, a point in the right direction would be great.
{"errors":[{"message":"The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.","code":64}]}
That explains.