Martin Melka

Pilsen, Czech Republic

w3sayit.wz.cz

Age: 21

Studying CTU, Faculty of Information Technology, Software Engineering

1h
awarded Yearling
1h
awarded Yearling
1d
awarded Popular Question
Jul
29
awarded Supporter
Jul
29
awarded Autobiographer
Jul
25
revised Grails org.hibernate.StaleObjectStateException for simultaneous requests
added 189 characters in body
Jul
25
comment Grails org.hibernate.StaleObjectStateException for simultaneous requests
Now I am getting the StaleObjectStateException when calling game.lock(). I wonder, does Grails handle waiting for releasing the lock, or does it just throw an exception in my face and I have to deal with it myself?
Jul
25
comment Grails org.hibernate.StaleObjectStateException for simultaneous requests
I added code that is executed. Sadly, I still get the same error, even using criteria
Jul
25
revised Grails org.hibernate.StaleObjectStateException for simultaneous requests
added 2751 characters in body
Jul
25
comment Grails org.hibernate.StaleObjectStateException for simultaneous requests
I retrieve the object like so def player = Player.findAllByLogin(login).get(0) .. is it enough to call player.lock() afterwards, or not?
Jul
25
comment Grails org.hibernate.StaleObjectStateException for simultaneous requests
does the lock apply to the whole domain hierarchy? e.g. I retrieve a Player object from the database, it owns a Game object and that in turn owns a Turn object. Do all 3 get locked (because I might update them all)?
Jul
25
comment How to force device to get new GCM ID?
As commented above, you are right. I changed package names of all the permissions, except for one. That was the problem. Silly me
Jul
25
asked Grails org.hibernate.StaleObjectStateException for simultaneous requests
Jul
25
accepted How to force device to get new GCM ID?
Jul
25
comment How to force device to get new GCM ID?
ah, yes, I did change that. (solved my problem, I forgot to change one package name in AndroidManifest - it had the name of the previous app. meh)
Jul
25
answered Create a synchronize HTTP GET request in Android
Jul
25
revised How to force device to get new GCM ID?
added 155 characters in body
Jul
25
comment How to force device to get new GCM ID?
Sending a message when the app was uninstalled helped. But you were right, it didn't help. My device still doesn't receive the notification. Google's response is ok, exactly what it should be, yet the device doesn't react at all.
Jul
25
comment How to force device to get new GCM ID?
If you mean the device's ID, then yes. Every device has its unique GCM id, to which the server sends notifications. Devices register themselves against the project's number - which they all share.
Jul
24
asked How to force device to get new GCM ID?
1 2 3 4 5