Code Which Runs in IDE Causes Hang In Run Time

First some basics:
IDE: Oracle JDeveloper 9.0.3
JDK: 1.3.1_02
Runtime: 1.3.1_07

After adding the following code, I tested in the IDE and all works as expected. It basically populates a JList based on a menu selection.

When the code is run in the runtime, it causes the program to hang. I have also tried this using jre 1.4.0_01 with the same results.

Does anyone have any thoughts on why this might be?




try {
    while ( {
      // Fill the drop down
catch (SQLException ex)
    JOptionPane.showMessageDialog(this, "A SQL Error Has Occurred while re-populating the project list box for active projects: ".concat(ex.toString()), "BOS Project Manager", javax.swing.JOptionPane.ERROR_MESSAGE);
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 Which one is the line that hangs? Do you get any error messages?
print the SQL exception stack trace and start again your application. Tell me if there is an exception dumped to the java console:
try {
} catch (SQLException ex) {

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.