IDEA 2024.2 Ultimate for Spring Data JPA support issue

Answered

[2024-08-08 16:39:13] Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
[2024-08-08 16:39:13] org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

Why am I encountering the above issue in the new version of IDEA when using entityManagerFactory under JPA console?
I have included spring data JPA in my pom file.
In the properties file, I have: spring.jpa.database-platform=org.hibernate.dialect.SQLServer2016Dialect
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServer2016Dialect
The database can be connected normally through IDEA's built-in tools.
I have also assigned data sources.
How should I resolve this issue?

0
5 comments

Hello,

Do you have password saved for your DB: https://youtrack.jetbrains.com/issue/IDEA-206638

Is it possible to share idea.log ("Help | Show Log in…") after reproducing the issue to check full error trace? You may share files via https://uploads.jetbrains.com/ form. Don't forget to provide Upload ID afterwards.

0

Upload ID: 2024_08_09_zzaZia3fiXkC7WvcRrtDqC

[2024-08-09 09:05:42] Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
[2024-08-09 09:05:42] org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

I have already saved the password in the database. I am attaching the file ID along with the timestamp when the issue was reproduced. Please help me resolve this problem. I appreciate your assistance very much.

0

Thanks!

Looks like there is some issue with project configuration. Could you please provide sample project example or at least application.properties and persistence.xml files? 

0

Upload ID: 2024_08_12_WRqijNgMz4WwR6nHR25c9b

Hello,

I have uploaded my application.properties. I hope this file will help in resolving the issue. Thank you for your assistance.

0

Thanks!

Do you have “persistence.xml” or “hibernate.cfg.xml” files in your project? Could you please share them as well?

Also please attach screenshot with your DB configuration (select used DB and press “Properties” button);

 

0

Please sign in to leave a comment.