Skip to main content
Inspiring
May 8, 2013
Question

An exception occurred when instantiating a COM object

  • May 8, 2013
  • 2 replies
  • 1149 views

I have installed ColdFusion 9.1 on a 64-bit server running Windows 2008 R2.  I am using IIS 7.5.

When I try to access the following URL http://localhost/myhousing/security/login_admin.cfm I get the following error.  Is there a patch available for CF 9 to resolve this error?

The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.

The following information is meant for the website developer for debugging purposes. 

Error Occurred While Processing Request 
An exception occurred when instantiating a COM object. 
The cause of this exception was that: java.lang.RuntimeException: Can not use native code: Initialisation failed. 
 
The error occurred in C:/inetpub/wwwroot/MyHousing/Application.cfm: line 22

20 : <CFINCLUDE template="lib/housing_functions.cfm">
21 : <CFSET Application.obj_name = "UserInfo325DLL.UserClass">
22 : <CFOBJECT name="obj" action="create" type="com" class="#Application.obj_name#">
23 : <!------------------------------------------------------------------->
24 : <!--- END OF CONFIGURATION FILE --->

--------------------------------------------------------------------------------

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 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Remote Address   ::1
Referrer   
Date/Time   08-May-13 01:49 PM

Stack Trace (click to expand) 
at cfApplication2ecfm293894775.runPage(C:/inetpub/wwwroot/MyHousing/Application.cfm:22) at cfApplication2ecfm293894775.runPage(C:/inetpub/wwwroot/MyHousing/Application.cfm:22)


java.lang.RuntimeException: Can not use native code: Initialisation failed
at com.linar.jintegra.NativeObjRef.<init>(Unknown Source)
at com.linar.jintegra.Dispatch.createDispatch(Unknown Source)
at com.linar.jintegra.Dispatch.<init>(Unknown Source)
at com.intrinsyc.typeInfo.IMacroViewerProxy.<init>(IMacroViewerProxy.java:32)
at com.intrinsyc.typeInfo.MacroViewer.<init>(MacroViewer.java:90)
at com.intrinsyc.typeInfo.MacroViewer.<init>(MacroViewer.java:69)
at com.intrinsyc.typeInfo.InterfaceInfoFactory.getInfoGivenPROGID(InterfaceInfoFactory.java:50)
at coldfusion.runtime.com.ComProxy.<init>(ComProxy.java:114)
at coldfusion.runtime.com.ComProxyFactory.getProxy(ComProxyFactory.java:41)
at coldfusion.runtime.ProxyFactory.getProxy(ProxyFactory.java:65)
at coldfusion.runtime.CFPage.createObjectProxy(CFPage.java:4947)
at coldfusion.tagext.lang.ObjectTag.doStartTag(ObjectTag.java:427)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722)
at cfApplication2ecfm293894775.runPage(C:\inetpub\wwwroot\MyHousing\Application.cfm:22)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:94)
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:62)
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)


    This topic has been closed for replies.

    2 replies

    p_sim
    Participating Frequently
    June 5, 2013

    Let's narrow down the problem by substituting the variable with the value directly on the cfobject tag.

    <CFOBJECT name="obj" action="create" type="com" class="UserInfo325DLL.UserClass">

    ... and see if that works.

    Another thing you might want to check if this is correct, UserInfo325DLL.UserClass.

    Participant
    June 5, 2013

    Did you get any idea...?

    You are able to resolve the issue ?