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?

Thanks!

=================================================

ViewAllMenu.setSelected(false);
ViewActiveMenu.setSelected(true);
listModel.clear();

try {
    adtt_bos_pnr_master.Get_Active_Project_Names();
    while (adtt_bos_pnr_master.projects.next()) {
      // Fill the drop down
      listModel.addElement(adtt_bos_pnr_master.projects.project_name());
     }
    }
   
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);
    }
Project_List.setModel(listModel);        
Project_List.setSelectedIndex(0);
Project_List.ensureIndexIsVisible(0);
tdennisoAsked:
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.

girionisCommented:
 Which one is the line that hangs? Do you get any error messages?
0
Venci75Commented:
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) {
   ex.printStackTrace();
   JOptionPane.showMessageDialog(...);
}
0

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
CleanupPingCommented:
tdenniso:
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 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
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
Java

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.