🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9388

Re: dbswing problem outside jbuilder environment

#9388
From: atandrea
Date: Tue, 04 Apr 2000 00:00
51 lines
2946 bytes
The solution is:

Project -> Add to Project -> Packages tab -> open
com.borland.dbswing.image.*




atandrea@bellatlantic.net wrote:

> I am developing a java application using JBuilder 3.0 and I am using
> dbswing textfields.  I am using a database and queryset components
> for this screen which is a simply for data entry.  My application works
> fine in the JBuilder Environment.  I can update the
> underlying access database without issue.  However, when I deploy it and
> try running it in the sun jdk122 environment, everything
> works fine except for this one screen which uses dbswing components:
> The error message that I get is as follows:
> I am not sure why it is a null pointer error with ImageIcon as this
> screen has absolutely nothing to do with images and
> makes no reference to images.
>
> Regards,
>
> Exception occurred during event dispatching:
> java.lang.ExceptionInInitializerError: java.lang.NullPointerException:
>         at javax.swing.ImageIcon.<init>(Unknown Source)
>         at
> com.borland.dbswing.DBTextDataBinder$UndoAction.<init>(DBTextDataBind
> er.java:1247)
>         at
> com.borland.dbswing.DBTextDataBinder.<clinit>(DBTextDataBinder.java:1
> 58)
>         at
> com.borland.dbswing.JdbTextField.commonInit(JdbTextField.java:132)
>         at
> com.borland.dbswing.JdbTextField.<init>(JdbTextField.java:119)
>         at
> com.borland.dbswing.JdbTextField.<init>(JdbTextField.java:102)
>         at pos.edit_customer.<init>(edit_customer.java:48)
>         at pos.order_form.edit_customer(order_form.java:532)
>         at pos.order_form$2.mouseClicked(order_form.java:101)
>         at java.awt.Component.processMouseEvent(Unknown Source)
>         at java.awt.Component.processEvent(Unknown Source)
>         at java.awt.Button.processEvent(Unknown Source)
>         at java.awt.Component.dispatchEventImpl(Unknown Source)
>         at java.awt.Component.dispatchEvent(Unknown Source)
>         at java.awt.EventQueue.dispatchEvent(Unknown Source)
>         at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>         at java.awt.EventDispatchThread.run(Unknown Source)
Technical Details
Message-ID: <38E960A4.EE14F861@bellatlantic.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38E95DA0.B28D428D@bellatlantic.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,fca53e7efc792255
X-Google-Attributes: gid111d45,public
From: atandrea@bellatlantic.net
Subject: Re: dbswing problem outside jbuilder environment
Date: 2000/04/04
Message-ID: <38E960A4.EE14F861@bellatlantic.net>
X-Deja-AN: 606378041
Content-Transfer-Encoding: 7bit
References: <38E95DA0.B28D428D@bellatlantic.net>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: typhoon1.gnilink.net 954818199 141.150.44.187 (Mon, 03 Apr 2000 23:16:39 EDT)
MIME-Version: 1.0
Reply-To: atandrea@bellatlantic.net
NNTP-Posting-Date: Mon, 03 Apr 2000 23:16:39 EDT
Newsgroups: borland.public.jbuilder.java.swing