Martin Melka

Pilsen, Czech Republic

w3sayit.wz.cz

Age: 21

Studying CTU, Faculty of Information Technology, Software Engineering

5h
revised Grails org.hibernate.StaleObjectStateException for simultaneous requests
added 189 characters in body
6h
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?
10h
comment Grails org.hibernate.StaleObjectStateException for simultaneous requests
I added code that is executed. Sadly, I still get the same error, even using criteria
10h
revised Grails org.hibernate.StaleObjectStateException for simultaneous requests
added 2751 characters in body
11h
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?
11h
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)?
12h
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
12h
asked Grails org.hibernate.StaleObjectStateException for simultaneous requests
12h
accepted How to force device to get new GCM ID?
12h
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)
15h
answered Create a synchronize HTTP GET request in Android
15h
revised How to force device to get new GCM ID?
added 155 characters in body
15h
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.
16h
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.
1d
asked How to force device to get new GCM ID?
Jul
9
awarded Notable Question
Jul
2
awarded Inquisitive
Jul
2
awarded Curious
Jul
2
awarded Curious
Jun
26
asked Full duplex TCP connection using Grails's ServerSocket.accept?
1 2 3 4 5