Skip to content

HQL console in DevUI is not working #47663

@omasseau

Description

@omasseau

Describe the bug

See: #46728

The DevUI HQL console is not working in latest version of quarkus (3.22.1)

It just display this error :
Error executing query: Unable to encode results as JSON. Note circular associations are not supported at the moment, use @JsonIgnore to break circles.

Expected behavior

HQL Console should work with such a basic entity :

@Entity
public class MyEntity extends PanacheEntity {
    public String field;
}

Actual behavior

HQL Console displays an error.
The error message is misleading (there are no cicular associations here).

How to Reproduce?

To reproduce the problem:

  • Go to https://code.quarkus.io/
  • Generate a new project using the 'REST service with database' preset
  • Add this in import.sql :
    insert into myentity (id, field) values(1, 'field-1');
  • Start the app and go the the HQL console -> You will see the error displayed :

Image

Output of uname -a or ver

No response

Output of java -version

21.0.3

Quarkus version or git rev

3.22.1

Build tool (ie. output of mvnw --version or gradlew --version)

maven 3.9.9

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions