Hi guys.
Now I met this error in jta environment. When I first use the processEngine and want to do some stuff on it. The initial job and the continues jobs are in the same jta transaction. the inital job won't flush to database, so other operations will fail with couldn't acquire block of ids.
If I let session.flush() after PropertyImpl.setNextDbid(session, 1);, this problem could be solved. Just thinking about whether it is the right way to do.