Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-296

EJBQL query with many-to-many join clause causes an AssertionError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.7.0
    • 4.7.0
    • cmp2
    • None

    Description

      java.lang.AssertionError
      at org.tranql.builder.QueryTileBuilder.buildJoinCondition(QueryTileBuilder.java:205)
      at org.tranql.builder.QueryTileBuilder.buildJoinCondition(QueryTileBuilder.java:168)
      at org.tranql.builder.QueryTileBuilder.buildJoinCondition(QueryTileBuilder.java:118)
      at org.tranql.ejbqlcompiler.DerivedTableToCrossJoinTransformer.visit(DerivedTableToCrossJoinTransformer.java:91)
      at org.tranql.ql.Where.visit(Where.java:29)
      at org.tranql.query.QueryCloner.visitChildren(QueryCloner.java:70)
      at org.tranql.query.QueryCloner.visit(QueryCloner.java:259)
      at org.tranql.ejbqlcompiler.AbstractSubQueryAwareTransformer.visit(AbstractSubQueryAwareTransformer.java:41)
      at org.tranql.ejbqlcompiler.DerivedTableToCrossJoinTransformer.visit(DerivedTableToCrossJoinTransformer.java:57)
      at org.tranql.ql.Query.visit(Query.java:59)
      at org.tranql.ejbqlcompiler.InterRepresentationTransformer.transform(InterRepresentationTransformer.java:41)
      at org.tranql.ejbqlcompiler.DerbyEJBQLCompilerFactory$DerbyEJBQLCompiler.transform(DerbyEJBQLCompilerFactory.java:69)
      at org.tranql.sql.EJBQLToPhysicalQuery.expandToSQLQuery(EJBQLToPhysicalQuery.java:243)
      at org.tranql.sql.EJBQLToPhysicalQuery.buildView(EJBQLToPhysicalQuery.java:198)
      at org.tranql.sql.EJBQLToPhysicalQuery.buildFinder(EJBQLToPhysicalQuery.java:140)
      at org.tranql.sql.EJBQLToPhysicalQuery.buildFinders(EJBQLToPhysicalQuery.java:90)
      at org.tranql.builder.SQLQueryBuilder.buildFinders(SQLQueryBuilder.java:173)
      at org.apache.openejb.entity.cmp.TranqlCommandBuilder.createFinderQueries(TranqlCommandBuilder.java:105)
      at org.apache.openejb.entity.cmp.TranqlEjbCmpEngine.createQueries(TranqlEjbCmpEngine.java:211)
      at org.apache.openejb.entity.cmp.TranqlEjbCmpEngine.<init>(TranqlEjbCmpEngine.java:125)
      at org.apache.openejb.entity.cmp.TranqlModuleCmpEngine.getEjbCmpEngine(TranqlModuleCmpEngine.java:99)

      Attachments

        Activity

          People

            dain Dain Sundstrom
            dain Dain Sundstrom
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: