• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modify Issues

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac 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
 
Ian B Anderson
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
Sheriff
Posts: 17278
6
IntelliJ IDE Mac 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic