As I understand it, coldfusion will automatically search for
a .cfc file. I am getting a nasty error and I dont understand why.
Any help will be greatly appreciated. All that I am trying to do is
combine all of my database functions down into one file, I thought
that the best way to do this would be through the use of a CFC but
my first attempt isn't working too well.
----ERROR-------
Entity has incorrect type for being called as a function.
The symbol you have provided AddNewCourse is not the name of
a function.
The error occurred in
D:\Inetpub\medsyntrix\Cora\DBPages\CourseFunctions\AddCourse\index.cfm:
line 5
3 :
4 : <cfinvoke componet="coursefunctions"
method="AddNewCourse" returnvariable="coursenumber">
5 : <cfinvokeargument name="Title" value="Test">
6 : <!--- <cfinvokeargument name="message"
value="#form.message1#">
7 : <cfinvokeargument name="profession"
value="#form.profession#">
--------------------------------------------------------------------------------
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/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Remote Address 69.137.246.170
Referrer
http://www.medsyntrix.com/Cora/DBPages/CourseFunctions/AddCourse/index.cfm?Type=Text
Date/Time 19-May-06 09:40 AM
Stack Trace (click to expand)
at
cfindex2ecfm1557986779.runPage(D:\Inetpub\medsyntrix\Cora\DBPages\CourseFunctions\AddCourse\index.cfm:5)
coldfusion.runtime.CfJspPage$UninvocableEntityException:
Entity has incorrect type for being called as a function.
at
coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:1777)
at
coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:403)
at
cfindex2ecfm1557986779.runPage(D:\Inetpub\medsyntrix\Cora\DBPages\CourseFunctions\AddCourse\index.cfm:5)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
at
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:209)
at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at
coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at
coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
at coldfusion.CfmServlet.service(CfmServlet.java:107)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at com.seefusion.Filter.doFilter(Filter.java:40)
at com.seefusion.SeeFusion.doFilter(SeeFusion.java:1160)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)