com.mysema.codegen.CodegenException: Compilation of public class Q_02078139909_65821278_1275614662 { public static java.util.List<Object[]> eval(Iterable<Cat> cat1_) { java.util.List<Object[]> rv = new java.util.ArrayList<Object[]>(); for (Cat cat1 : cat1_) { for (Cat cat2 : com.querydsl.collections.CollQueryFunctions.<java.util.List>get(cat1, "kittens")) { rv.add(new Object[]{cat1,cat2}); } } return rv; } } failed. /Q_02078139909_65821278_1275614662.java:6: error: incompatible types: Object cannot be converted to Cat for (Cat cat2 : com.querydsl.collections.CollQueryFunctions.<java.util.List>get(cat1, "kittens")) { ^ 1 error

GitHub | bkempe | 5 months ago
  1. 0

    QueryDSL Collections join query does not work with Scala vars

    GitHub | 5 months ago | bkempe
    com.mysema.codegen.CodegenException: Compilation of public class Q_02078139909_65821278_1275614662 { public static java.util.List<Object[]> eval(Iterable<Cat> cat1_) { java.util.List<Object[]> rv = new java.util.ArrayList<Object[]>(); for (Cat cat1 : cat1_) { for (Cat cat2 : com.querydsl.collections.CollQueryFunctions.<java.util.List>get(cat1, "kittens")) { rv.add(new Object[]{cat1,cat2}); } } return rv; } } failed. /Q_02078139909_65821278_1275614662.java:6: error: incompatible types: Object cannot be converted to Cat for (Cat cat2 : com.querydsl.collections.CollQueryFunctions.<java.util.List>get(cat1, "kittens")) { ^ 1 error
  2. 0

    querydsl-collections: Evaluator compilation failure

    GitHub | 2 years ago | jotak
    com.mysema.codegen.CodegenException: Compilation of public class Q_0390602011_1275614662_1275614662_566403833 { public static Iterable<cat.Cat> eval(Iterable<cat.Cat> cat_, com.google.common.base.Present a1) { java.util.List<cat.Cat> rv = new java.util.ArrayList<cat.Cat>(); for (cat.Cat cat : cat_) { try { if (com.mysema.query.collections.CollQueryFunctions.equals(cat.getPedigree(), a1)) { rv.add(cat); } } catch (NullPointerException npe) { } } return rv; } } failed. /Q_0390602011_1275614662_1275614662_566403833.java:3: error: Present is not public in com.google.common.base; cannot be accessed from outside package public static Iterable<cat.Cat> eval(Iterable<cat.Cat> cat_, com.google.common.base.Present a1) { ^ 1 error
  3. 0

    Mocking db queries with querydsl - issue with Optional

    Stack Overflow | 2 years ago
    com.mysema.codegen.CodegenException: Compilation of public class Q_01363784216_1275614662_1275614662_1573163836_01698119955_566403833 { public static Iterable<xxx.OpenedInterruption> eval(Iterable<xxx.OpenedInterruption> openedInterruption_, xxx.InterruptionType a1, xxx.InterruptionTargetType a2, com.google.common.base.Present a3) { java.util.List<xxx.OpenedInterruption> rv = new java.util.ArrayList<xxx.OpenedInterruption>(); for (xxx.OpenedInterruption openedInterruption : openedInterruption_) { try { if (com.mysema.query.collections.CollQueryFunctions.equals(com.mysema.query.collections.CollQueryFunctions.<xxx.InterruptionType>get(openedInterruption, "type"), a1) && com.mysema.query.collections.CollQueryFunctions.equals(com.mysema.query.collections.CollQueryFunctions.<xxx.InterruptionTargetType>get(openedInterruption, "targetType"), a2) && com.mysema.query.collections.CollQueryFunctions.equals(com.mysema.query.collections.CollQueryFunctions.<com.google.common.base.Optional>get(openedInterruption, "target"), a3)) { rv.add(openedInterruption); } } catch (NullPointerException npe) { } } return rv; } } failed. /Q_01363784216_1275614662_1275614662_1573163836_01698119955_566403833.java:3: error: Present is not public in com.google.common.base; cannot be accessed from outside package public static Iterable<xxx.OpenedInterruption> eval(Iterable<xxx.OpenedInterruption> openedInterruption_, xxx.InterruptionType a1, xxx.InterruptionTargetType a2, com.google.common.base.Present a3) { ^ 1 error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue found with left join in querydsl-collection 4.1.3 which is related to Generics

    Stack Overflow | 3 months ago | user125798
    com.mysema.codegen.CodegenException: Compilation of public class Q_1462119976_65821278_1275614662 { public static java.util.List<Object[]> eval(Iterable<querydsl.model.Cat> cat1_) { java.util.List<Object[]> rv = new java.util.ArrayList<Object[]>(); for (querydsl.model.Cat cat1 : cat1_) { for (querydsl.model.Cat cat1 : com.querydsl.collections.CollQueryFunctions.leftJoin(com.querydsl.collections.CollQueryFunctions.<java.util.List>get(category1, "cats"))) { rv.add(new Object[]{cat1,cat1}); } } return rv; } } failed. /Q_01009724352_65821278_1275614662.java:6: error: incompatible types: Object cannot be converted to Cat for (querydsl.model.Cat cat1 : com.querydsl.collections.CollQueryFunctions.leftJoin(com.querydsl.collections.CollQueryFunctions.<java.util.List>get(category1, "cats"))) { ^ ...
  6. 0

    Aggregate projections not supported in Querydsl Collections

    GitHub | 2 years ago | oscarbou
    com.mysema.codegen.CodegenException: Compilation of public class Q_01085021648_0500385818_2137843372_0522559049 { public static com.xms.framework.risk.reporting.model.NumberOfRisksByLevelOfRisk eval(com.xms.framework.risk.domain.model.Risk risk, com.mysema.query.types.QBean a1) { return (com.xms.framework.risk.reporting.model.NumberOfRisksByLevelOfRisk)(a1.newInstance(risk.getEffectiveLevelOfRisk(), count(*))); } } failed. /Q_01085021648_0500385818_2137843372_0522559049.java:4: error: illegal start of expression return (com.xms.framework.risk.reporting.model.NumberOfRisksByLevelOfRisk)(a1.newInstance(risk.getEffectiveLevelOfRisk(), count(*))); } ^ /Q_01085021648_0500385818_2137843372_0522559049.java:4: error: illegal start of expression return (com.xms.framework.risk.reporting.model.NumberOfRisksByLevelOfRisk)(a1.newInstance(risk.getEffectiveLevelOfRisk(), count(*))); } ^ 2 errors

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.mysema.codegen.CodegenException

      Compilation of public class Q_02078139909_65821278_1275614662 { public static java.util.List<Object[]> eval(Iterable<Cat> cat1_) { java.util.List<Object[]> rv = new java.util.ArrayList<Object[]>(); for (Cat cat1 : cat1_) { for (Cat cat2 : com.querydsl.collections.CollQueryFunctions.<java.util.List>get(cat1, "kittens")) { rv.add(new Object[]{cat1,cat2}); } } return rv; } } failed. /Q_02078139909_65821278_1275614662.java:6: error: incompatible types: Object cannot be converted to Cat for (Cat cat2 : com.querydsl.collections.CollQueryFunctions.<java.util.List>get(cat1, "kittens")) { ^ 1 error

      at com.mysema.codegen.JDKEvaluatorFactory.compile()
    2. com.mysema.codegen
      AbstractEvaluatorFactory.createEvaluator
      1. com.mysema.codegen.JDKEvaluatorFactory.compile(JDKEvaluatorFactory.java:74)
      2. com.mysema.codegen.AbstractEvaluatorFactory.createEvaluator(AbstractEvaluatorFactory.java:128)
      2 frames
    3. com.querydsl.collections
      AbstractCollQuery.fetch
      1. com.querydsl.collections.DefaultEvaluatorFactory.createEvaluator(DefaultEvaluatorFactory.java:262)
      2. com.querydsl.collections.DefaultQueryEngine.evaluateMultipleSources(DefaultQueryEngine.java:109)
      3. com.querydsl.collections.DefaultQueryEngine.list(DefaultQueryEngine.java:82)
      4. com.querydsl.collections.AbstractCollQuery.fetch(AbstractCollQuery.java:182)
      4 frames
    4. Unknown
      ScalaMain$delayedInit$body.apply
      1. ScalaMain$.delayedEndpoint$ScalaMain$1(Main.scala:13)
      2. ScalaMain$delayedInit$body.apply(Main.scala:7)
      2 frames
    5. Scala
      App$class.main
      1. scala.Function0$class.apply$mcV$sp(Function0.scala:34)
      2. scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
      3. scala.App$$anonfun$main$1.apply(App.scala:76)
      4. scala.App$$anonfun$main$1.apply(App.scala:76)
      5. scala.collection.immutable.List.foreach(List.scala:381)
      6. scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
      7. scala.App$class.main(App.scala:76)
      7 frames
    6. Unknown
      ScalaMain.main
      1. ScalaMain$.main(Main.scala:7)
      2. ScalaMain.main(Main.scala)
      2 frames