This is most likely happening because java can't find a method that matches
the signature.  If you're using cf 7, you will need to use JavaCast to cast
the arguments to the proper type. 

Russ

> -----Original Message-----
> From: Mullai Subbiah [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 28, 2006 2:56 PM
> To: CF-Talk
> Subject: Coldfusion and Java
> 
> I am trying to call a user-defined Java method. I am using CFMX7 and Java
> 1.4.2 One of the method within the class when called gets executed by
> Coldfusion. But another method does not seem to be seen by coldfusion.
> Every time I try to call the method I get a method not found error. The
> classpath is fine, the method exists (can call this method when stand
> alone), I have recompiled and restarted the Coldfusion server hoping that
> might help but no success. I get a similar error when I try to call the
> calendar set method.
> 
> This is the error I get.
> 
> --------------------------------------------------------------------------
> ----------
> Called from E:\wwwroot\coeweb\apdr\index.cfm: line 57
> 
> 34 : <cfset daysrange = -30>
> 35 :
> 36 : <cfset searchResultList =
> searchUltra_.searchCollectionWithDate(#searchString#, "simap", #curtime#,
> #daysrange#)>
> 37 :
> 38 : <cfset resultquery = QueryNew("Score, Title, Description, Url,
> news_id, published_date",
> 
> 
> 
> --------------------------------------------------------------------------
> ------
> 
> Please try the following:
> 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 6.0; Windows NT 5.2; SV1; .NET CLR
> 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
> Remote Address   12.36.96.235
> Referrer   http://website/apdr/index.cfm?action=search
> Date/Time   28-Aug-06 08:53 AM
> 
> Stack Trace (click to expand)
> at
> cfsearchresultfunction2ecfc1423953097$funcGETULTRASEEKRESULTSDATECONSTRAIN
> T.runFunction(E:\wwwroot\coeweb\apdr\user\searchresultfunction.cfc:36) at
> cfsearch_result2ecfm617320438.runPage(E:\wwwroot\coeweb\apdr\user\search_r
> esult.cfm:65) at
> cfindex2ecfm9115575.runPage(E:\wwwroot\coeweb\apdr\index.cfm:57)
> 
> 
> coldfusion.runtime.java.MethodSelectionException: The selected method
> searchCollectionWithDate was not found.
>       at
> coldfusion.runtime.java.ObjectHandler.findMethodUsingCFMLRules(ObjectHandl
> er.java:176)
>       at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:84)
>       at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1627)
>       at
> cfsearchresultfunction2ecfc1423953097$funcGETULTRASEEKRESULTSDATECONSTRAIN
> T.runFunction(E:\wwwroot\coeweb\apdr\user\searchresultfunction.cfc:36)
>       at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:348)
>       at
> coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:294)
>       at
> coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.jav
> a:258)
>       at
> coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:56
> )
>       at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:211)
>       at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:370)
>       at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:196)
>       at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:156)
>       at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1587)
>       at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:345)
>       at
> cfsearch_result2ecfm617320438.runPage(E:\wwwroot\coeweb\apdr\user\search_r
> esult.cfm:65)
>       at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
>       at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343)
>       at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1908)
>       at cfindex2ecfm9115575.runPage(E:\wwwroot\coeweb\apdr\index.cfm:57)
>       at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
>       at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343)
>       at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
>       at
> coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210)
>       at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
>       at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50)
>       at
> coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
>       at
> coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersisten
> ceFilter.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.CfmServlet.service(CfmServlet.java:105)
>       at
> coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
>       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:527)
>       at
> jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:20
> 4)
>       at
> jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.jav
> a:349)
>       at
> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:4
> 57)
>       at
> jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:
> 295)
>       at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
> 
> Anybody encounter a similar problem? If so it would be helpful to me if
> you could post some comments.
> 
> Thankyou.
> 
> Cheers,
> Mullai
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251297
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to