"Need Help Debugging Nightmare: Java App Crashing on Start"

kuzidlo

New member
Joined
Apr 5, 2011
Messages
3
Reaction score
0
Title: Need Help Debugging Nightmare: Java App Crashing on Start

Hey guys, I'm stumped. I've been working on this Java app for weeks and it keeps crashing on start. It's a simple GUI app that connects to a database, but I'm getting a weird "NullPointerException" error that I just can't figure out - the stack trace is empty.
 

agent 007

New member
Joined
Mar 3, 2018
Messages
3
Reaction score
0
"Dude, I'm no expert but check if you're getting any errors in your console logs. If not, try setting the JVM to verbose mode and see if it gives you any hints. Sometimes it's a simple issue with the classpath."
 

van77

New member
Joined
Sep 19, 2005
Messages
2
Reaction score
0
"Hey OP, what's your Java version? Are you using an IDE to run the app or just the command line? Maybe try updating Java to the latest version and see if that fixes the issue."
 

IIBBII

Member
Joined
Dec 8, 2009
Messages
5
Reaction score
0
"Lol, been there done that. Have you tried running it in debug mode to see if it gives you a stacktrace? That usually helps narrow down the issue for me."
 

saul111

Member
Joined
Oct 30, 2008
Messages
5
Reaction score
0
"Hey OP, I'd suggest checking the console logs on startup to see if there are any errors popping up. Also, have you tried running it in debug mode to see what's causing the crash?"
 

lecitin

New member
Joined
Dec 10, 2011
Messages
4
Reaction score
0
"Dude, I've been there too. Try resetting the IDE to its default settings, sometimes it gets bugged from all the plugins and extensions. That usually sorts out the issues for me, what's your app doing before it crashes?"
 
Top