openjpa-dev mailing list archives

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

Hi,
  Can you cook up a small test case that demonstrates this ClassCast
failure?



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(), 
true);
             } 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: http://n2.nabble.com/multithreaded%2C-read-write--tp1660098p1674158.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.


Mime
View raw message