This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans 6.5: Populating JTable with MySQL database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans 6.5: Populating JTable with MySQL database" Watch "Netbeans 6.5: Populating JTable with MySQL database" New topic
Author

Netbeans 6.5: Populating JTable with MySQL database

Rudolf Meerkotter
Greenhorn

Joined: Apr 03, 2008
Posts: 14
Hi there,

I'm trying to populate a JTable with data from an online MySQL database. Here's what I've done so far:

1) Add the table to the form
2) Right click on table, select Table Contents, select bound, Import data to form (the connection works and the respective table can be viewed in the services window)
3) Right click on table again, select Bind, select Elements, shift Available to Selected

When I run the project, I get a load of errors with this being at the top:

SEVERE: Application class tabletesting.TableTestingApp failed to launch
Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The above procedure works fine on the sample databases (on localhost) that come with NetBeans.

Any ideas where the problem is with the remote connection?

Thanks,
Rudolf


SCJP 5, SCWCD 5, SCBCD 5
 
Consider Paul's rocket mass heater.
 
subject: Netbeans 6.5: Populating JTable with MySQL database