Hallo! I am trying to program a producer / consumer example. I am getting a IllegalMonitorStateException trying to call wait() although I have synchronized on the object I am calling wait() on. public class MessageConsumer implements Runnable { private MessageProducer producer; public MessageConsumer(MessageProducer producer) { super(); this.producer = producer; } public void run() { synchronized (this.producer) { while (true) { try ...