• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Error in ormseetings.dialect for Azure

Community Beginner ,
Oct 12, 2021 Oct 12, 2021

Copy link to clipboard

Copied

Hi All,

We are trying to connect Azure DB by CF ORM. But it keeps showing the error message like either

 

Unable to determine Dialect to use [name=Microsoft Azure SQL Database, majorVersion=12]; user must register resolver or explicitly set 'hibernate.dialect'

 

OR

java.lang.NullPointerException
at coldfusion.orm.hibernate.HibernateConfiguration.determineDialect(HibernateConfiguration.java:401)
a

 

We tried to setup "ormseetings.dialect" with different values in application.cfc,

e.g.

MicrosoftSQLServer

org.hibernate.dialect.SQLServer2008Dialect
org.hibernate.dialect.SQLServer2012Dialect
org.hibernate.dialect.SQLServerDialect
org.hibernate.dialect.MicrosoftSQLServer2012Dialect
SQLServer2012Dialect
SQLServer2008Dialect

 

But all failed, any idea which value would be correct in "ormseetings.dialect" to make it works?

 

Thanks,

CF Dev

 

TOPICS
Connector , Database access , Server administration

Views

169

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Oct 13, 2021 Oct 13, 2021

the DB name attribute is correct, which works in any CF queries, just didn't work for CF ORM, we setup a new CF instance, it works now.

Thank you for your reply!

Votes

Translate

Translate
Community Expert ,
Oct 12, 2021 Oct 12, 2021

Copy link to clipboard

Copied

You've said 3 times, ormseetings.dialect. Is that just a typo here, and you're really using ormsettings.dialect instead in your code? If it's correct, I have nothing else to offer on the problem for now. Perhaps others will. 


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 13, 2021 Oct 13, 2021

Copy link to clipboard

Copied

Sorry, I did a typo here which should be "this.ormsettings", it works after we setup a new CF instance.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 13, 2021 Oct 13, 2021

Copy link to clipboard

Copied

LATEST

Thank you again!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 12, 2021 Oct 12, 2021

Copy link to clipboard

Copied

What is in your JDBC URL, if anything? I think you need to make sure that "databaseName" is set properly in there, so that CF doesn't try to connect to the master DB, which isn't allowed in Azure SQL.

 

Dave Watts, Eidolon LLC

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 13, 2021 Oct 13, 2021

Copy link to clipboard

Copied

the DB name attribute is correct, which works in any CF queries, just didn't work for CF ORM, we setup a new CF instance, it works now.

Thank you for your reply!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation