tracker issue : CF-3040384

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 80606:access=remote returntype=numeric is broken when return type is JSON

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Henry Ho / Henry Ho (Henry Ho)

Created: 11/06/2009

Components: Language, CF Component

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 262456

Priority/Frequency: Major / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Duplicate ID:	CF-3040308

Problem:

access=remote returntype=numeric is broken when return type is JSON
Method:

<cffunction name="returnNum" access="remote" returntype="Numeric" >  <cfreturn 5></cffunction>browse to (json), error:  http://localhost/test.cfc?method=returnNum&returnFormat=json&argumentCollection={}browse to (wddx), ok:  http://localhost/test.cfc?method=returnNum&returnFormat=wddx&argumentCollection={}
Result:

Error casting an object of type java.lang.Double cannot be cast to java.lang.String to an incompatible type. This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign object in a different way than it was designed.java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Stringat coldfusion.filter.FilterUtils.printReturnValue(FilterUtils.java:252)at coldfusion.filter.ComponentFilter.invoke(ComponentFilter.java:192)at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:356)at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:138)at coldfusion.xml.rpc.CFCServlet.doGet(CFCServlet.java:264)at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)at jrun.servlet.FilterChain.service(FilterChain.java:101)at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)java.lang.Double cannot be cast to java.lang.String

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3040384

External Customer Info:
External Company:  
External Customer Name: Henry Ho
External Customer Email: 237A22C24921EDF5992015B9
External Test Config: 11/06/2009

Attachments:

Comments: