openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <>
Subject Re: multithreaded, read/write?
Date Thu, 18 Dec 2008 18:21:23 GMT

  Can you cook up a small test case that demonstrates this ClassCast

It looks like PCPath extends CandidatePath, but that fails:

around CandidatePath, line 139

            try {
                 // get the specified field value and switch candidate
                 Traversal traversal = (Traversal) action;
                 candidate = sm.fetchField(traversal.field.getIndex(), 
             } finally {

The _actions list contains PCPath$Action, which does not extend 
Traversal, so we get a class-cast exception here in the code, and thus 
the "getOrderingValue" method called by 
OrderingMergedResultObjectProvider returns null.. thus it does not get 
any of the appropriate field values to run it's sorting against.. thus 
everything remains unsorted..

View this message in context:
Sent from the OpenJPA Developers mailing list archive at

View raw message