javax.jdo.JDOUserException: The given filter/ordering String "( ( (_collection1.isEmpty() == false) && (_collection1.contains( string )) ) || ( (_collection2.isEmpty() == false) && (_collection2.contains( string )) ) )" is not valid. Make sure all parentheses are properly matched and that the filter uses proper Java syntax.

Oracle Community | 3004 | 2 decades ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Contains Queries on Empty Collections

    Oracle Community | 2 decades ago | 3004
    javax.jdo.JDOUserException: The given filter/ordering String "( ( (_collection1.isEmpty() == false) && (_collection1.contains( string )) ) || ( (_collection2.isEmpty() == false) && (_collection2.contains( string )) ) )" is not valid. Make sure all parentheses are properly matched and that the filter uses proper Java syntax.

    Root Cause Analysis

    1. javax.jdo.JDOUserException

      The given filter/ordering String "( ( (_collection1.isEmpty() == false) && (_collection1.contains( string )) ) || ( (_collection2.isEmpty() == false) && (_collection2.contains( string )) ) )" is not valid. Make sure all parentheses are properly matched and that the filter uses proper Java syntax.

      at com.techtrader.modules.jdo.query.QueryImpl.getExpression()
    2. com.techtrader.modules
      QueryImpl.executeWithArray
      1. com.techtrader.modules.jdo.query.QueryImpl.getExpression(QueryImpl.java:371)
      2. com.techtrader.modules.jdo.impl.jdbc.runtime.JDBCQuery.getExpression(JDBCQuery.java:49)
      3. com.techtrader.modules.jdo.query.QueryImpl.executeWithMap(QueryImpl.java:312)
      4. com.techtrader.modules.jdo.query.QueryImpl.executeWithArray(QueryImpl.java:393)
      4 frames