tracker issue : CF-3038283

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 76761:When using ormsettings and setting the Dialect to OracleDialect (Oracle10gDialect or any other Oracle dialect) the server responses with error: "Dialect class not found: OracleDialect"

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Miro Hryckowiak / Miro Hryckowiak (firstmiro)

Created: 04/22/2009

Components: ORM Support

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Major / Unknown

Locale/System: English / Win All

Vote Count: 0

Problem:

When using ormsettings and setting the Dialect to OracleDialect (Oracle10gDialect or any other Oracle dialect) the server responses with error: "Dialect class not found: OracleDialect".

The dialect classes are available in the CF_FOLDER/lib/hibernate3.jar.
Method:

Under new folder:
1. Create a simple Application.cfc with the following code:
<cfscript>
	this.name = "TestORADialect";
	this.ormenabled = "true";
	this.datasource = "ORAXE_HR";
	this.ormsettings = {Dialect="OracleDialect", savemapping="true"};
</cfscript>

2. Create Employee.cfc:
<cfcomponent persistent="true" table="EMPLOYEES">
	<cfproperty name="employee_id" fieldtype="id"/>
	<cfproperty name="first_name"/>
	<cfproperty name="last_name"/>
	<cfproperty name="email"/>
</cfcomponent>

3. Create DiplayEmployees.cfm:
<cfset empObjectArry=EntityLoad('employee')>
<cfloop array="#empObjectArry#" index="empObj">
	<tr>
		<cfoutput>
		<td><b>#empObj.getFirst_name()# #empObj.getLast_name()#</b></td>
		<td>#empObj.getEmail()#</td>
		</cfoutput>
	</tr>
</cfloop>

4. Run the DiplayEmployees.cfm
Result:

Dialect class not found: OracleDialect
 
Resources:

    * Check the ColdFusion documentation to verify that you are using the correct syntax.
    * Search the Knowledge Base to find a solution to your problem.

Browser   	Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8
Remote Address   	127.0.0.1
Referrer   	http://127.0.0.1:8501/tests/orm_adv/
Date/Time   	22-Apr-09 10:19 AM
Stack Trace


org.hibernate.HibernateException: Dialect class not found: OracleDialect
	at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:104)
	at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:65)
	at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:460)
	at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:155)
	at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)
	at coldfusion.orm.hibernate.HibernateConfiguration.buildSessionFactory(HibernateConfiguration.java:288)
	at coldfusion.orm.hibernate.HibernateProvider.InitializeORMForApplication(HibernateProvider.java:174)
	at coldfusion.orm.hibernate.HibernateProvider.beforeApplicationStart(HibernateProvider.java:83)
	at coldfusion.filter.ApplicationFilter.fireBeforeAppStartEvent(ApplicationFilter.java:377)
	at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:213)
	at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
	at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
	at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)
	at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
	at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
	at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)
	at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
	at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
	at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
	at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
	at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
	at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)
	at coldfusion.CfmServlet.service(CfmServlet.java:177)
	at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
	at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
	at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
	at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
	at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
	at jrun.servlet.FilterChain.service(FilterChain.java:101)
	at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
	at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
	at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
	at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
	at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
	at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
	at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
	at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
	at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3038283

External Customer Info:
External Company:  
External Customer Name: Miro Hryckowiak
External Customer Email: 45FB677C43821AD49920157F
External Test Config: 04/22/2009

Attachments:

Comments: