This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Why JVM report tableScrollPane1.getViewport().add(jdbTable1, null); NullPointerException errors?
Posted by Xieyun on November 26, 2001 at 1:45 AM
I found put these words in the codes that report error: tableScrollPane1.getViewport().add(jdbTable1, null); but use jar these codes have not problem. Error is so: java.lang.ExceptionInInitializerError: java.lang.NullPointerException at javax.swing.ImageIcon.(Unknown Source) at com.borland.dbswing.DBTextDataBinder$UndoAction.(DBTextDataBinder.java:1523) at com.borland.dbswing.DBTextDataBinder.(DBTextDataBinder.java:160) at com.borland.dbswing.JdbTextField.commonInit(JdbTextField.java:133) at com.borland.dbswing.JdbTextField.(JdbTextField.java:119) at com.borland.dbswing.JdbTextField.(JdbTextField.java:102) at mobile.sys.myApplet.(myApplet.java:39) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Replies:
|