Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Modify Issues

 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having a problem that I can't quite figure out what is going on. I tried posting a couple of times earlier this week, but got no response, and deleted them when I thought I had the problem fixed.
But alas, even though I was wait() and notifyAll() on the wrong object, this was not what is causing the big problem.
When I click my book button, it makes the seat available changes to a DataInfo class then passes it to the modify method().
Here is where things go wrong, because After this point, I cn no longer access the db.db file. Any ideas what might be going on?
Please help
Mark
 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I can't really help much but..
Do you get any exceptions thrown? Is there any way that you might be closing the db.db file? just try System.out.print and try and trace it that way.
When you say you can no longer access the db.db file do you mean you are getting null pointers errors?
In your locking system is anything still locked? (Is your client's lock actually relased?
Ian
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm. Well, I am pretty sure that the lock is released, but that might be a reason. I am getting Null pointers.
Before I even started the GUI, I had created a test class to test the lock and unlock, where one user had a lock, and the other tried to get it, and just waited till the first one released the lock, then it would get it, and that one worked, but maybe somehow, in my GUI, the call to unlock doesn't go through.
I'll have to test to see if unlock is running in my GUI. I know that it gets passed the call to unlock, but maybe the code within unlock skips over because of some if statement.
Thanks
Mark
 
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic