Can't co-create object

On creating a COM object , am getting the mail subject error.

Share the actual error for god’s sake.

Mark Drew

  • Sent by typing with my thumbs.> On 25 Feb 2017, at 13:32, Samson Adewunmi <@Samson_Adewunmi> wrote:

On creating a COM object , am getting the mail subject error.

You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/70a37714-de3b-4983-ac91-f764477623cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I’m getting the same error. The error is “Can’t co-create object.”

I’m trying to instantiate an object in an out-of-process COM server. This has been working all along in CF, and I’m able to instantiate the object via C# on the same server that Lucee is running on and throws this error.

please always include the stacktrace and describe your software stack including versions, it makes assisting lot easier

it’s currently working in 6.2, but broken in 7.0

https://luceeserver.atlassian.net/browse/LDEV-5526

It looks like in-process COM components (.dll, .ocx) work, but out-of-process ones (.exe) do not.

I am using Lucee 6.2.0.321, and I was able to replicate your success with instantiating WScript.Shell. But the out-of-process component I need does not work in 6.2.0.321.

The Java stack trace is (sorry, I would have attached it, but I’m a new user and not yet allowed to upload attachments):

lucee.runtime.exp.NativeException: Can’t co-create object

at com.jacob.com.Dispatch.createInstanceNative(Native Method)

at com.jacob.com.Dispatch.(Dispatch.java:99)

at lucee.runtime.com.COMObject.(COMObject.java:62)

at lucee.runtime.functions.other.CreateObject.doCOM(CreateObject.java:185)

at lucee.runtime.functions.other.CreateObject.call(CreateObject.java:101)

at lucee.runtime.functions.other.CreateObject.call(CreateObject.java:80)

at hello_cfm$cf$4.call(/hello.cfm:3)

at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1063)

at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:987)

at lucee.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:63)

at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:42)

at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2785)

at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2772)

at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2743)

at lucee.runtime.engine.Request.exe(Request.java:45)

at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1099)

at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1056)

at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97)

at lucee.loader.servlet.jakarta.CFMLServlet.service(CFMLServlet.java:49)

at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)

at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:431)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)

at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)

at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)

at java.base/java.lang.Thread.run(Unknown Source)

Caused by: com.jacob.com.ComFailException: Can’t co-create object

… 41 more