Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nautural ID mapping error for UserInfo #1418

Closed
johnaohara opened this issue Mar 6, 2024 · 0 comments · Fixed by #1422
Closed

Nautural ID mapping error for UserInfo #1418

johnaohara opened this issue Mar 6, 2024 · 0 comments · Fixed by #1422
Assignees
Labels
area/backend branch/master The master branch branch/stable The stable branch priority/high High priority type/bug Something isn't working
Milestone

Comments

@johnaohara
Copy link
Member

Describe the bug

make a GET call to /api/user/roles results in the following exception:

2024-03-05 14:33:47,279 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (vert.x-eventloop-thread-8) HTTP Request to /api/user/roles failed, error id: 62259dbd-85c5-421e-a895-fa78bd5c0c92-1: org.hibernate.HibernateException: Entity [io.hyperfoil.tools.horreum.entity.user.UserInfo] did not define a natural id
at org.hibernate.loader.internal.BaseNaturalIdLoadAccessImpl.<init>(BaseNaturalIdLoadAccessImpl.java:48)
at org.hibernate.loader.internal.SimpleNaturalIdLoadAccessImpl.<init>(SimpleNaturalIdLoadAccessImpl.java:31)
at org.hibernate.internal.SessionImpl.bySimpleNaturalId(SessionImpl.java:1203)
at io.hyperfoil.tools.horreum.entity.user.UserInfo__JpaIdentityProviderImpl.authenticate(Unknown Source)
at io.quarkus.security.jpa.runtime.JpaIdentityProvider.authenticate(JpaIdentityProvider.java:60)
at io.quarkus.security.jpa.runtime.JpaIdentityProvider$1.get(JpaIdentityProvider.java:51)
at io.quarkus.security.jpa.runtime.JpaIdentityProvider$1.get(JpaIdentityProvider.java:39)
at io.quarkus.vertx.http.runtime.security.VertxBlockingSecurityExecutor$1$1.call(VertxBlockingSecurityExecutor.java:43)
at io.vertx.core.impl.ContextBase.lambda$executeBlocking$0(ContextBase.java:167)
at io.vertx.core.impl.ContextInternal.dispatch(ContextInternal.java:277)
at io.vertx.core.impl.ContextBase.lambda$internalExecuteBlocking$2(ContextBase.java:199)
at io.vertx.core.impl.TaskQueue.run(TaskQueue.java:76)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:840)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend branch/master The master branch branch/stable The stable branch priority/high High priority type/bug Something isn't working
Projects
None yet
1 participant