play.sbt.PlayExceptions$CompilationException: Compilation error[no suitable method found for select(models.QMember) method com.querydsl.jpa.impl.JPAQuery.<U>select(com.querydsl.core.types.Expression<U>) is not applicable (cannot infer type-variable(s) U (argument mismatch; models.QMember cannot be converted to com.querydsl.core.types.Expression<U>)) method com.querydsl.jpa.impl.JPAQuery.select(com.querydsl.core.types.Expression<?>...) is not applicable (varargs mismatch; models.QMember cannot be converted to com.querydsl.core.types.Expression<?>)]

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

Samebug tips

,

Import these into your controller:

import play.api.Play.current
import play.api.i18n.Messages.Implicits._
,

BugmateHits had no serialization method.

Solutions on the web

via Stack Overflow by jkratz55
, 1 year ago
Compilation error[no suitable method found for select(models.QMember) method com.querydsl.jpa.impl.JPAQuery.<U>select(com.querydsl.core.types.Expression<U>) is not applicable (cannot infer type-variable(s) U (argument mismatch; models.QMember
via Stack Overflow by raju
, 1 year ago
Compilation error[method thenApply in interface java.util.concurrent.CompletionStage<T> cannot be applied to given types; required: java.util.function.Function<? super com.fasterxml.jackson.databind.JsonNode,? extends U> found: (res)->{ S[...]s); } reason: cannot infer type-variable(s) U (argument mismatch; bad return type in lambda expression missing return value)]
via Stack Overflow by geoHeil
, 1 year ago
Compilation error[trait Singleton is abstract; cannot be instantiated]
via Stack Overflow by MrHappy
, 1 year ago
Compilation error[Cannot use a method returning java.util.concurrent.CompletionStage[play.mvc.Result] as a Handler for requests]
via Stack Overflow by Vikram
, 10 months ago
Compilation error[_root_ cannot be imported]
via GitHub by eyasuyuki
, 1 year ago
Compilation error[No Json deserializer found for type example.yaml.UserMoney. Try to implement an implicit Reads or Format for this type.]
play.sbt.PlayExceptions$CompilationException: Compilation error[no suitable method found for select(models.QMember) method com.querydsl.jpa.impl.JPAQuery.<U>select(com.querydsl.core.types.Expression<U>) is not applicable (cannot infer type-variable(s) U (argument mismatch; models.QMember cannot be converted to com.querydsl.core.types.Expression<U>)) method com.querydsl.jpa.impl.JPAQuery.select(com.querydsl.core.types.Expression<?>...) is not applicable (varargs mismatch; models.QMember cannot be converted to com.querydsl.core.types.Expression<?>)]
at play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:27)
at play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:27)
at scala.Option.map(Option.scala:145)
at play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:49)
at play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:44)
at scala.Option.map(Option.scala:145)
at play.sbt.run.PlayReload$.taskFailureHandler(PlayReload.scala:44)
at play.sbt.run.PlayReload$.compileFailure(PlayReload.scala:40)
at play.sbt.run.PlayReload$$anonfun$compile$1.apply(PlayReload.scala:17)
at play.sbt.run.PlayReload$$anonfun$compile$1.apply(PlayReload.scala:17)

Users with the same issue

124 times, 7 months ago
401 times, 9 months ago
Once, 1 year ago
Once, 6 months ago
19 times, 11 months ago

Write tip

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