The only get registered under a user account if you add them to COM+/Component Services . . . which would be recommended if this sis  a high-use COM object.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barney Boisvert
Sent: Friday, February 27, 2004 1:33 PM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] CFOBJECT java.lang.NullPointerException

 

I know nothing about COM, but do objects get registered to a user account?  if so, then you'll need to register it with the user account that CF runs as as well.  You might also try restarting the CF services, if you haven't already, if you registered the DLL while it was running.

 

cheers,

barneyb

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Mineer
Sent: Friday, February 27, 2004 10:17 AM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] CFOBJECT java.lang.NullPointerException

Ok.  that makes sense. 

 

This is on a development machine so this machine is both the client and the server.  What are the implications of that?  Do I need to do something other than just register the dll as normal, regsvr32?

---------------------
David Mineer

 

---------------------
Don't wish it was easier; wish you were better.
Don't wish for less problems; wish for more skills.
Don't wish for less challenges; wish for more wisdom.

----- Original Message -----

Sent: Friday, February 27, 2004 10:31 AM

Subject: RE: [CFCDev] CFOBJECT java.lang.NullPointerException

 

The first snippet runs client side (in your browser), while the second runs serverside (in CF).  You'll need to install the component on the server in order for it to work. 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Mineer
Sent: Friday, February 27, 2004 9:19 AM
To: cfcdev
Subject: [CFCDev] CFOBJECT java.lang.NullPointerException

This works

<script language="VBScript">
Sub FindButton_OnClick       
Dim ZP4
Set ZP4 = CreateObject("ZPComSrv.ZP4Com")
End Sub
</script>

This doesn't

<cfobject type="com" action="" class="ZPComSrv.ZP4Com" name="zp4">

I get an error:

      An exception occurred when instantiating a Com object. 
      The cause of this exception was that: java.lang.NullPointerException.


What would cause this.  It must be registered or the vbscript wouldn't work, right?

Also, can I access those vars from vbscript (zp4) with cold fusion later in the page?


Can someone point me in the right direction for troubleshooting com object and whatever other information on using com object that you know of.

 

TIA,

 

---------------------
David Mineer

 

---------------------
Don't wish it was easier; wish you were better.
Don't wish for less problems; wish for more skills.
Don't wish for less challenges; wish for more wisdom.

Reply via email to