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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by bkempe
, 1 year ago
: 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
via Stack Overflow by user125798
, 1 year ago
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
via GitHub by jotak
, 2 years ago
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
via Stack Overflow by Ivan Sopov
, 2 years ago
Compilation of public class Q_838101820_201273267_01405199074_997653153 { public static com.mysema.query.Tuple eval(com.sopovs.moradanen.zkoss.QuerydslCollectionsGroupByTest.Foo foo, com.mysema.query.types.QTuple a1) { return
via GitHub by mattrebor
, 2 years ago
Compilation of return (Object[])(a1.newInstance(g.getQuantity() * g.getPrice(), g.getDesc())); failed. /Q_01356270177_614832599_082509057_01258778333.java:6: operator * cannot be applied to java.math.BigDecimal,java.math.BigDecimal return (Object
via GitHub by oscarbou
, 2 years ago
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
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(JDKEvaluatorFactory.java:74)
at com.mysema.codegen.AbstractEvaluatorFactory.createEvaluator(AbstractEvaluatorFactory.java:128)
at com.querydsl.collections.DefaultEvaluatorFactory.createEvaluator(DefaultEvaluatorFactory.java:262)
at com.querydsl.collections.DefaultQueryEngine.evaluateMultipleSources(DefaultQueryEngine.java:109)
at com.querydsl.collections.DefaultQueryEngine.list(DefaultQueryEngine.java:82)
at com.querydsl.collections.AbstractCollQuery.fetch(AbstractCollQuery.java:182)
at undefined.ScalaMain$.delayedEndpoint$ScalaMain$1(Main.scala:13)
at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
at scala.App$class.main(App.scala:76)
at undefined.ScalaMain$.main(Main.scala:7)
at undefined.ScalaMain.main(Main.scala)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.