This may not be a good posting for "Beginners Corner", but I sure wasn't able to find another forum that seemed like a good fit. Here goes.
We are using the org.jboss.varia.scheduler.ScheduleManager class, and have been getting ClassCastExceptions. Looking at the code, I can see why. There are a number of places where there is code like this:
Iterator i = mSchedules.entrySet().iterator();
while (i.hasNext()) {
ScheduleInstance lInstance = (ScheduleInstance) i.next();
...
Iterator i = mSchedules.values().iterator();
while (i.hasNext()) {
ScheduleInstance lInstance = (ScheduleInstance) i.next();
...
Iterator i = mSchedules.entrySet().iterator();
while (i.hasNext()) {
Map.Entry entry = (Map.Entry) i.next();
Integer id = (Integer) entry.getKey();
ScheduleInstance lInstance = (ScheduleInstance) entry.getValue();
...