Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-16-2008, 03:42 PM
Member
 
Join Date: Jun 2008
Posts: 1
Rep Power: 0
Ice_Angel is on a distinguished road
Exclamation help needed with project
Hello everyone. Some help would be appreciated. I have created a wildlife resort database with access.
It has an animals table with 5 entries, a species table with 3 entries and a user table with 3 entries.
I have set up a JDBC-ODBC bridge.
The server side of this application when run gets stuck upon pressing connect the first time so I have to run the server again while the first server window is running in the background and press connect for it to start running. The server works just fine after that. I can add and remove from the tables using the server.
When I run the client and try to connect it. It connects but can't log in. It doesn't accept a username or password. So I can't add or remove tables on the client side of the aplication.
I think the problem is with the threads but I'm not sure what to do to fix it.
Also I use net beans for coding.
I have attached one of the classes i think might have the problem.
Attached Files:
File Type: txt Connect.txt (7.5 KB, 2 views)

Last edited by Ice_Angel; 06-17-2008 at 02:32 PM.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 06-22-2008, 09:00 PM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 1,018
Rep Power: 3
Nicholas Jordan is on a distinguished road
Default Well, yes, it is a Threading issue - but......
This could be done in a Thread: public void connecting() throws IOException { and single threading is what is blocking the app, yes - but implementing reasonably relaible threading even as a student level work is remarkably fraught with frustrations and hidden errors that do not detect even with sophisticated techniques paired with deep consideration of the Threading domain.

Do you need help getting threads to talk across the application? Getting some get-going techinques for intra-process communication is neither difficult nor advanced, it is shielding ones efforts from failure in commercial grade applications that proves wisdom to be 'leave it alone'. Inter-process communication is another matter.

Just start with a static synchornized accessor( Object getSet ) and do a little twiddling in a super-simplified one-off written for the purpose of learning. If you are getting paid to do the work, you are on your own. Google for Java Real Time Specification, read the whole tuna.

Read every word in it's entire current form.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed!!! :S mark-mlt Networking 1 04-14-2008 10:27 AM
Help needed. necro-1000 AWT / Swing 2 01-12-2008 12:37 PM
Help Needed pks New To Java 1 01-09-2008 01:07 AM
Uni Project - GUI - Help Needed deeadeed New To Java 0 12-04-2007 12:10 AM
help needed. dirtycash New To Java 3 12-03-2007 10:17 PM


All times are GMT +2. The time now is 06:06 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org