To debug lock timeout errors, set derby.locks.monitor=true and derby.locks.deadlockTrace=true in derby.properties. This will print the lock table information to the derby.log when the timeout happens. If you also set derby.language.logStatementText=true, then all the statements executed on the system will be written out to the derby.log
H. Aher, P. Shirode, K. Shinde, and A. Jadhav. International Journal on Recent and Innovation Trends in Computing and Communication, 3 (1):
46--51(January 2015)
J. Triplett, P. McKenney, and J. Walpole. Proceedings of the 2011 USENIX conference on USENIX annual technical conference, page 11. Berkeley, CA, USA, USENIX Association, (2011)
M. Shaker, H. Ibrahim, A. Mustapha, and L. Abdullah. Proceedings of the 11th International Conference on Information Integration and Web-based Applications & Services, page 470--476. New York, NY, USA, ACM, (2009)
M. Kurnaz, E. Gultepe, and I. Kurnaz. Abstract Book of the XXIII IUPAP International Conference on Statistical Physics, Genova, Italy, (9-13 July 2007)
W. Gatterbauer, and P. Bohunsky. Proceedings of the 21st National Conference on Artificial Intelligence - Volume 2, page 1313--1318. AAAI Press, (2006)