Forums Register Login

Null pointer Exception

+Pie Number of slices to send: Send
Exception in thread "main" java.lang.NullPointerException
at java.awt.Window.init(Unknown Source)
at java.awt.Window.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at javax.swing.JFrame.<init>(Unknown Source)
at Mantra.awt.UBSFrame.<init>(UBSFrame.java:11)
at Mantra.PUI.PDialogUI.CMantraConsoleUI.<init> (CMantraConsoleUI.java:15
)
at Mantra.PGeneral.CGlobal.initEnvironment(CGlobal.java:2614)
at Mantra.PMain.tcFrame.<init>(tcFrame.java:39)
at Mantra.PMain.tcFrame.main(tcFrame.java:25)

Actually i am getting this stack trace while i am trying to launch a product so please any solutions.

Thanks in advance
+Pie Number of slices to send: Send
Do you know how to use a debugger? It's an essential skill. Trap this exception in the debugger and look at the variables to see what's going on.

The first stack frame that's not in your application-specific code is javax.swing.JFrame.<init>. The constructor of a JFrame is being called. I am guessing that your code is passing a null as one of the parameters, when the API does not allow it.

No-one can help you debug your application-specific code, unless you post it. But don't post screeds of code. You need to make the effort to identify where the problem might be happening, and post just the few pertinent lines of code.
+Pie Number of slices to send: Send
In another thread (which I've deleted, since it was similar to this one) you added the details that this happens with ANY Swing application, and only with JDK 1.5, not with 1.4, and that you're using Windows 98.

Windows 98 second edition is a supported configuration for JDK 1.5; if you're not using the fully patched 2E, though, I'd make sure to apply all the patches you can and try again. Otherwise, one likely conclusion is that your JDK 1.5 install is simply broken, and ought to be wiped and redone. If this still doesn't help, then perhaps you've got some incompatible third-party software; not sure what to recommend there.
+Pie Number of slices to send: Send
This sounds like this AWT bug from the bug database, although it is marked "fixed". Check that page, try the workarounds, see if they help. Are you really using the release version of 1.5, or do you have an old beta version?
That is a really big piece of pie for such a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 976 times.
Similar Threads
error while trying to insert data into jtable
Brio Report ReportMartException
applet
java.security.AccessControlException
Exception regarding Linux environment
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:18:16.