The IllegalMonitorStateException is thrown at the aServer.insertElementWithKey(anElement, aKey, aMetadata); line of code. The exception states: "java.lang.IllegalMonitorStateException: current thread not owner" This code worked fine when it was running locally, but when the code was moved to an EJB server and the process started remotely, it threw this exception. [ June 07, 2002: Message edited by: Joel McNary ]
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Joined: Aug 20, 2001
I solved it almost immediately after I posted the message. (That's why I post messages; it makes me solve my problems faster ) It had nothing to do with the code; instead, the machine on which the code was written/compiled/tested was running Java 1.4, and the EJB server was running 1.2.2. 1.2.2 didn't like the 1.4 code, needless to say. I recompiled everything under 1.2.2, and it worked fine.