Results 1 to 2 of 2
  1. #1
    Ice_Angel is offline Member
    Join Date
    Jun 2008
    Posts
    1
    Rep Power
    0

    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 Attached Files
    Last edited by Ice_Angel; 06-17-2008 at 01:32 PM.

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    7

    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.

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •