Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. SessionFactoryImpl.openSession() has thrown an UnknownServiceException
    Hibernate Core
    1
    2
    0
  2. Concurrent usage of a session
    Hibernate Core
    33
    6
    1

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.cache.spi.RegionFactory]
    at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:184)
    at org.hibernate.cfg.Settings.getRegionFactory(Settings.java:300)
    at org.hibernate.internal.SessionFactoryImpl$SessionBuilderImpl.openSession(SessionFactoryImpl.java:1322)
    at org.hibernate.internal.SessionFactoryImpl.openSession(SessionFactoryImpl.java:672)
1 frame hidden

Solution

poroszd1 month ago

Hibernate sessions are not thread safe. As a rule of thumb, you should not use the same session on multiple threads.

External results for this pattern (10)

  1. YSSeriousvia GitHub1 month ago
    Could not open Hibernate Session for transaction; nested exception is org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.service.jdbc.connections.spi.ConnectionProvider]
    Show stack trace
  2. Unknown service requested [org.hibernate.engine.jdbc.connections.spi.ConnectionProvider]
    Show stack trace
  3. Steffi S.via Stack Overflow4 months ago
    Unknown service requested [org.hibernate.envers.boot.internal.EnversService]
    Show stack trace
  4. Ramin Haeri Azadvia JIRA4 months ago
    Unknown service requested [org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform]
    Show stack trace
  5. Etienne Morency-Bachand [X]via JIRA4 months ago
    Unknown service requested [org.hibernate.service.jta.platform.spi.JtaPlatform]
    Show stack trace
  6. Unknown authorvia jboss.org4 months ago
    Unknown service requested [org.hibernate.service.classloading.spi.ClassLoaderService]
    Show stack trace
  7. Kazvia Stack Overflow4 months ago
    Request processing failed; nested exception is org.springframework.orm.jpa.JpaSystemException: Unknown service requested [org.hibernate.service.jta.platform.spi.JtaPlatform]; nested exception is org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.service.jta.platform.spi.JtaPlatform]
    Show stack trace
  8. Unknown authorvia hibernate.org4 months ago
    Request processing failed; nested exception is org.springframework.orm.jpa.JpaSystemException: Unknown service requested [org.hibernate.service.jta.platform.spi.JtaPlatform]; nested exception is org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.service.jta.platform.spi.JtaPlatform]
    Show stack trace
  9. Subhamvia Stack Overflow4 months ago
    org.springframework.orm.hibernate4.HibernateSystemException: Unknown service requested [org.hibernate.stat.spi.StatisticsImplementor]; nested exception is org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.stat.spi.StatisticsImplementor]
    Show stack trace
  10. Felix Wassmervia Hibernate JIRA4 months ago
    Unknown service requested [org.hibernate.envers.boot.internal.EnversService]
    Show stack trace