Board index » jbuilder » Wierd initialization error

Wierd initialization error


2004-06-13 07:18:02 AM
jbuilder5
I started to get this error with dbswing components.
the offending code is:
public class Detail extends EditPanel // EditPanel extends JPanel
{
....
JdbTextField jdbDestination = new JdbTextField(); // line 41:
...
}
the resulting stack trace is:
java.lang.ExceptionInInitializerError
at com.borland.dbswing.JdbTextField.commonInit(JdbTextField.java:258)
at com.borland.dbswing.JdbTextField.<init>(JdbTextField.java:244)
at com.borland.dbswing.JdbTextField.<init>(JdbTextField.java:136)
at myapp.Detail.<init>(Detail.java:41)
at myapp.Something.jbInit(Something.java:116)
at myapp.Something.<init>(Something.java:52)
at myapp.My_Applet.jbInit(My_Applet.java:309)
at myapp.My_Applet.init(My_Applet.java:191)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at
com.borland.dbswing.DBTextDataBinder$UndoAction.<init>(DBTextDataBinder.java
:2030)
at com.borland.dbswing.DBTextDataBinder.<clinit>(DBTextDataBinder.java:388)
... 10 more
The error occurs randomly when executing an applet via web browser. It
doesn't happen when using the de{*word*81}. It happens early in the class
initialization process and looks like there is an unassigned variable deep
within JdbTextField, totally outside of my control, and quite frankly
outside of my desire to know.
btw, running JBuilderX 10.0.204.0 (patched) on win2k, using MS Explorer 6.0,
Java Version 1.4.2_03
thanks for your help.
regards,
Dar7yl (the 7 is silent)
 
 

Re:Wierd initialization error

I started to get this error with dbswing components.
the offending code is:
public class Detail extends EditPanel // EditPanel extends JPanel
{
....
JdbTextField jdbDestination = new JdbTextField(); // line 41:
...
}
the resulting stack trace is:
java.lang.ExceptionInInitializerError
at com.borland.dbswing.JdbTextField.commonInit(JdbTextField.java:258)
at com.borland.dbswing.JdbTextField.<init>(JdbTextField.java:244)
at com.borland.dbswing.JdbTextField.<init>(JdbTextField.java:136)
at myapp.Detail.<init>(Detail.java:41)
at myapp.Something.jbInit(Something.java:116)
at myapp.Something.<init>(Something.java:52)
at myapp.My_Applet.jbInit(My_Applet.java:309)
at myapp.My_Applet.init(My_Applet.java:191)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at
com.borland.dbswing.DBTextDataBinder$UndoAction.<init>(DBTextDataBinder.java
:2030)
at com.borland.dbswing.DBTextDataBinder.<clinit>(DBTextDataBinder.java:388)
... 10 more
The error occurs randomly when executing an applet via web browser. It
doesn't happen when using the de{*word*81}. It happens early in the class
initialization process and looks like there is an unassigned variable deep
within JdbTextField, totally outside of my control, and quite frankly
outside of my desire to know.
btw, running JBuilderX 10.0.204.0 (patched) on win2k, using MS Explorer 6.0,
Java Version 1.4.2_03
thanks for your help.
regards,
Dar7yl (the 7 is silent)