简体   繁体   中英

Hibernate Upgrade : Unknown service requested

Previously I was using hibernate 3 as my project framework and I upgraded it to the hibernate 4.3.5 .

I followed these steps:

  1. Replaced all the .jar files & also the dependent .jars
  2. Replaced all deprecated packages
  3. Replaced all the deprecated methods
  4. Replaced all the deprecated Data types, classes & others.

After this build my project successfully & then try to connect with the database. Connection is successful but when i am trying to save, It gives me following error:

Unknown service requested 
[org.hibernate.engine.jdbc.spi.JdbcServices]

Is there something that I missed out ? Please Help.

Thanks

Find the Solution for My problem:

Session object in Hibernate is not thread safe, you should not use the same session in different threads, unless you synchornize access to Session object.

Reference : Hibernate Upgrade : Unknown service requested

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM