My Oracle Support Banner

[WLS12c] JPQL Initialization Constructor Doesn't Support CONCAT (Doc ID 2435930.1)

Last updated on MARCH 01, 2019

Applies to:

Oracle TopLink - Version and later
Information in this document applies to any platform.


On WebLogic Server version and
while creating a query like with JPA application
  SELECT NEW model.ReturnType(,, CONCAT(, FROM EntityA a

throws the following exception:

Exception Description: An Exception was thrown while executing a ReportQuery with a constructor expression: java.lang.NoSuchMethodException: model.ReturnType.(java.lang.String, java.lang.String, java.lang.Boolean)
Internal Exception: java.lang.NoSuchMethodException: model.ReturnType.(java.lang.String, java.lang.String, java.lang.Boolean)
Query: ReportQuery(name="MyClassConcat" referenceClass=EntityA jpql="
SELECT NEW model.ReturnType(,, CONCAT(, FROM EntityA a
at org.eclipse.persistence.internal.jpa.QueryImpl.getDatabaseQueryInternal(
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createNamedQuery(
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createNamedQuery(

The return type for CONCAT should be String, not Boolean.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.