0

ID Generation produces not unique IDs

asked 2008-06-19 10:37:41 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5041628

By: draymann

Hi there,

I experienced problems with the generated IDs. I have a large list (data-bound) and got the message "Not unique in ID space of ..." although all explicitely given IDs were different. I managed to fix this error by explicitley giving the listitem a calculated ID (starting from listitem-0). I then changed the mold to paging. On my WINDOWS PC all was fine, but on a LINUX machine I got the same error message again (maybe not for the listitems but for something different?). The difference between the two systems let me think of a problem with threads or something like that.

The workaround was to implement my own IdGenerator that generates unique IDs in a threadsafe way. Now, all works fine.

Do you know if there's a problem with the standard way IDs are generated? Is the generation properly synchronized?

Kind regards,

Dominik

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-06-20 03:29:21 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5043255

By: waterbottle

Hi, Dominik.
Could you post this issue to HELP forum? then we can discuss there.
And is it possible provide a simple reproducible code and the code how you implemented the IdGnerator to make it thread-safe.

/Dennis

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-06-19 10:37:41 +0800

Seen: 202 times

Last updated: Jun 20 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More