-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: I´m in problems and need help!
PostPosted: Fri Nov 02, 2012 8:31 am 
Newbie

Joined: Thu Nov 01, 2012 4:57 pm
Posts: 3
Hello to all!

I´m developing some kind of social network using Hibernate´s reverse engineering.
It´s also my first experience with Hibernate so you can imagine the headaches i´ve had.

Well, i´ve been working for 3 months and now i have it workin' but not at %100.
I have two problems and i would appreciate very much any help or advice.

1 - When i lift up the server sometimes some tables are locked, but i can´t find out the reason.
Sometimes is one table, sometimes is another. It´s not the code (or at least i think so) because i recompile and
refresh and the table that wasn´t working works, but another doesn´t.
I´m getting:
Could not insert in X
Lockwait Timeout excedeed

This is driving me mad!!!!!

2 - Sometimes im getting different data for the same stimulus.
I´m using <property name="hibernate.connection.isolation">2</property> since i had this problem.
Also i generated th Equals and hashcode using GETTERS for the id´s. I had to do this because equals by id (and not getId())
was malfunctioning. I think this happened because the ids weren´t initialiazed, so using getters (ergo lazy-loading... am i right?)
was a solution.
But it still happens sometimes!!!!!!!!!!


ANY help or advice would be really really appreciated.
Thank you all and sorry to bother.


Top
 Profile  
 
 Post subject: Re: I´m in problems and need help!
PostPosted: Thu Nov 08, 2012 10:43 am 
Newbie

Joined: Thu Nov 01, 2012 4:57 pm
Posts: 3
Just letting you know that im still having these problems and im running out of time!

The "monster" problem is the one that locks the tables.
If i restart the server the problem goes away. But this is no solution for production.

Please i need any ideas.
What may be causing this?

Help! I need somebody´s help!


Top
 Profile  
 
 Post subject: Re: I´m in problems and need help!
PostPosted: Thu Nov 22, 2012 4:13 pm 
Newbie

Joined: Thu Nov 01, 2012 4:57 pm
Posts: 3
I just wanted to thank you all for expert help.

I know Hibernate its a great framework, but i know now that its community its not that great.

Thanks again.


Top
 Profile  
 
 Post subject: Re: I´m in problems and need help!
PostPosted: Fri Nov 23, 2012 1:36 pm 
Newbie

Joined: Fri Nov 23, 2012 12:03 pm
Posts: 4
Hello

I dont know whether you got the solution by now or not. Are you trying to do any simultaneous operation on Database.
Normally timeout happens and table gets lock when we try to do 2 transaction at a time.
Second transaction waits for the first to finish its operation in DB and it waits till the first transaction releases the lock. So if in case the second transaction has to wait for longer period say more than time out period, it gives this error message.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.