1 Reply Latest reply on May 28, 2010 3:09 PM by cmschofield

    Enabling ORM causes coldfusion.security.SecurityManager$UnauthenticatedCredentialsException

    cmschofield

      I'm working on a Windows 2008 Enterprise server with ColdFusion 9 Standard datasourcing MySQL 5.1. When I enable ORM in my application.cfc I receive the following error:

       

      coldfusion.security.SecurityManager$UnauthenticatedCredentialsException
           at coldfusion.security.SecurityManager.authenticateAdmin(SecurityManager.java:1826)
           at coldfusion.featurerouter.handler.standard.StandardSecurityManager.authenticateAdmin(StandardSecurityManager.java:47)
           at coldfusion.sql.Executive.getDatasource(Executive.java:439)
           at coldfusion.orm.hibernate.HibernateConfiguration.initHibernateConfiguration(HibernateConfiguration.java:160)
           at coldfusion.orm.hibernate.HibernateConfiguration.<init>(HibernateConfiguration.java:141)
           at coldfusion.orm.hibernate.ConfigurationManager.initConfiguration(ConfigurationManager.java:69)
           at coldfusion.orm.hibernate.HibernateProvider.InitializeORMForApplication(HibernateProvider.java:182)
           at coldfusion.orm.hibernate.HibernateProvider.beforeApplicationStart(HibernateProvider.java:85)
           at coldfusion.filter.ApplicationFilter.fireBeforeAppStartEvent(ApplicationFilter.java:475)
           at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:221)
           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.ExceptionFilter.invoke(ExceptionFilter.java:70)
           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:200)
           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.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
           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)

       

      I have confirmed the following:

      1. CF 9 ORM does work on my development environment for this same application.
      2. This error only occurs when I enable ORM for the CF application on this server.
      3. I previously thought that the MySQL user for ColdFusion may not have valid permissions. However, giving that user all permissions still did not fix the error.
      4. ORM was working for this same application in the past. One conclusion may be an issue with the latest CF hotfix provided by Adobe (which I did install about a month ago). However, I can confirm that the application did work AFTER that install.

       

      Any suggestions on how to get ORM working would be much appreciated!