cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcin Skladaniec (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAY-1551) orderings with "+." in the path fail when performing in memory sort
Date Thu, 17 Mar 2011 01:56:29 GMT

    [ https://issues.apache.org/jira/browse/CAY-1551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13007776#comment-13007776
] 

Marcin Skladaniec commented on CAY-1551:
----------------------------------------

.... while the same ordering added to a query works fine.

> orderings with "+." in the path fail when performing in memory sort
> -------------------------------------------------------------------
>
>                 Key: CAY-1551
>                 URL: https://issues.apache.org/jira/browse/CAY-1551
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.1M1
>            Reporter: Marcin Skladaniec
>
> Example stack:
> Exception in thread "AWT-EventQueue-0" org.apache.cayenne.exp.ExpressionException: [v.3.0.1
Sep 06 2010 15:09:38] Error evaluating expression 'invoiceLine+.invoice.invoiceNumber'
> 	at org.apache.cayenne.exp.parser.SimpleNode.evaluate(SimpleNode.java:339)
> 	at org.apache.cayenne.query.Ordering.compare(Ordering.java:336)
> 	at java.util.Arrays.mergeSort(Arrays.java:1270)
> 	at java.util.Arrays.sort(Arrays.java:1210)
> 	at java.util.Collections.sort(Collections.java:159)
> 	at org.apache.cayenne.query.Ordering.orderList(Ordering.java:324)
> ....
> Caused by: java.beans.IntrospectionException: No property 'invoiceLine+' found in class
ish.oncourse.cayenne.Enrolment
> 	at org.apache.cayenne.reflect.PropertyUtils.getSimpleProperty(PropertyUtils.java:203)
> 	at org.apache.cayenne.reflect.PropertyUtils.getProperty(PropertyUtils.java:116)
> 	at org.apache.cayenne.exp.parser.ASTObjPath.evaluateNode(ASTObjPath.java:54)
> 	at org.apache.cayenne.exp.parser.SimpleNode.evaluate(SimpleNode.java:335)
> 	... 52 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message