java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • In version 1.8.x was changed the way property path is resolved in class {{QSort}}. There is a private method {{preparePropertyPath(.)}}, which should return the correct path. But if the parent is {{null}}, it returns an empty {{String}} and this is probably not correct. For example when I use Querydsl {{StringPath}} like this: {code:java} QSort sort = new QSort(new OrderSpecifier<>(com.mysema.query.types.Order.ASC, new StringPath("eventTime"))); {code} an {{IllegalArgumentException}} is thrown: {noformat} java.lang.IllegalArgumentException: Property must not null or empty! at org.springframework.data.domain.Sort$Order.<init>(Sort.java:320) ~[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.domain.Sort$Order.<init>(Sort.java:282) ~[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.domain.Sort$Order.<init>(Sort.java:304) ~[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.querydsl.QSort.toOrder(QSort.java:98) ~[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.querydsl.QSort.toOrders(QSort.java:76) ~[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.querydsl.QSort.<init>(QSort.java:59) ~[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.querydsl.QSort.<init>(QSort.java:50) ~[spring-data-commons-1.9.3.RELEASE.jar:na] … {noformat} In version 1.7.x is it working as expected, no parent is needed. The recursion method {{preparePropertyPath(…)}} should be fixed.
    via by Michal Ondrovic,
  • In version 1.8.x was changed the way property path is resolved in class {{QSort}}. There is a private method {{preparePropertyPath(.)}}, which should return the correct path. But if the parent is {{null}}, it returns an empty {{String}} and this is probably not correct. For example when I use Querydsl {{StringPath}} like this: {code:java} QSort sort = new QSort(new OrderSpecifier<>(com.mysema.query.types.Order.ASC, new StringPath("eventTime"))); {code} an {{IllegalArgumentException}} is thrown: {noformat} java.lang.IllegalArgumentException: Property must not null or empty! at org.springframework.data.domain.Sort$Order.<init>(Sort.java:320) ~[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.domain.Sort$Order.<init>(Sort.java:282) ~[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.domain.Sort$Order.<init>(Sort.java:304) ~[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.querydsl.QSort.toOrder(QSort.java:98) ~[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.querydsl.QSort.toOrders(QSort.java:76) ~[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.querydsl.QSort.<init>(QSort.java:59) ~[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.querydsl.QSort.<init>(QSort.java:50) ~[spring-data-commons-1.9.3.RELEASE.jar:na] … {noformat} In version 1.7.x is it working as expected, no parent is needed. The recursion method {{preparePropertyPath(…)}} should be fixed.
    via by Michal Ondrovic,
    • java.lang.IllegalArgumentException: Property must not null or empty! at org.springframework.data.domain.Sort$Order.<init>(Sort.java:320)[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.domain.Sort$Order.<init>(Sort.java:282)[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.domain.Sort$Order.<init>(Sort.java:304)[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.querydsl.QSort.toOrder(QSort.java:98)[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.querydsl.QSort.toOrders(QSort.java:76)[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.querydsl.QSort.<init>(QSort.java:59)[spring-data-commons-1.9.3.RELEASE.jar:na] at org.springframework.data.querydsl.QSort.<init>(QSort.java:50)[spring-data-commons-1.9.3.RELEASE.jar:na]
    No Bugmate found.