Yeah, I noticed the missing () after I sent the message.  Either way, it
would have worked (with the parens) or not worked, but at least it would
not have given the null pointer error if I could get past that point.

Restarting the CF services didn't make a diff.

Now, I'm in the process of uninstalling/reinstalling CF.

Thanks! 

-----Original Message-----
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 1:42 PM
To: CF-Talk
Subject: RE: Null Pointer Exception Creating a CFC Object

> I started to break the problem down to the most-simple pieces.

> In the root of the web site, I created test.cfm and test.cfc as shown
> here:

> test.cfm
> --------
> <cfoutput><p>#now()#</p></cfoutput>
> <cfset result = createObject("component", "test")>

> test.cfc
> --------
> <cfcomponent displayname="Test" output="no">
>       <cffunction name="myFun" output="false"
>       returntype="string">
>               <cfreturn now>
>       </cffunction>
> </cfcomponent>

Not sure if it's just in this email or if it's in your code, but "now"
in the cfreturn tag doesn't have the parenthesis. Don't know if that's
at all related...

> I received the Null Pointer error when running the test.cfm page.  
> Note, that both of these files are in the same directory.  Also, the 
> CFC does not accept any arguments.  There is no constructor code, 
> either.

> I then added a root "/" mapping in CF to point to:
> "D:\WebSites\Departments\ots.evansville.edu\WebSite"

> This did not work.

> I then added a custom tag path to:
> D:\WebSites\Departments\ots.evansville.edu\WebSite

> This did not work, either.

> Should I restart the CF services for some reason?  I have not done 
> that since I can "force" an expected error by mis-typing the CFC name 
> in my code.

Well I certainly don't think it would hurt anything at this point. But
with it having been as broken down as you have here, if restarting the
server doesn't cure it I think you're looking at a tech support call at
this point.

s. isaac dealey     434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234705
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to