Migrating to Hibernate 6 cause Unknown service requested [ca.uhn.fhir.jpa.util.ISequenceValueMassager]

124 views
Skip to first unread message

Hanan Awwad

unread,
Dec 19, 2023, 6:53:13 AM12/19/23
to HAPI FHIR
Hi Team,

I built a micro-service using the Hapi Fhir dependencies, and it was working perfectly with the latest version 6.10.0. I tried to upgrade to the latest snapshot 6.11.7-SNAPSHOT which contains hibernate 6 changes, though I faced the following exception

rg.hibernate.service.UnknownServiceException: Unknown service requested [ca.uhn.fhir.jpa.util.ISequenceValueMassager]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:211)

Does anyone face it? any help?

James Agnew

unread,
Dec 19, 2023, 8:20:50 AM12/19/23
to Hanan Awwad, HAPI FHIR
Hi Hanan,

The starter project hasn't yet been updated in master to the new Jakarta changes, but you can preview them on this branch: https://github.com/hapifhir/hapi-fhir-jpaserver-starter/pull/618

For your specific issue, it sounds like you're not using HapiEntityManagerFactoryUtil to create the EntityManager. You can see how to do this in the branch above.

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/c8eaa773-51e8-43a3-ba06-362035586319n%40googlegroups.com.

Rawan Hamed

unread,
Jan 21, 2024, 5:10:29 AM1/21/24
to HAPI FHIR
Hi Team, 

I apply  HapiEntityManagerFactoryUtil and create the EntityManager bean , but I still have the same exception.

Thanks,
Rawan.

Reply all
Reply to author
Forward
0 new messages