Title:
Bug 80504:Implicit setter wrongfully validates attribute 'type', when it should only validates attribute 'validate'// in myObject
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Henry Ho / Henry Ho (Henry Ho)
Created: 10/27/2009
Components: Language, CF Component
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 / 262928
Priority/Frequency: Minor / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Problem:
Implicit setter wrongfully validates attribute 'type', when it should only validates attribute 'validate'// in myObject.cfc/** @getter true */property CreditCard creditcard;When I call myObject.setCreditcard( new CreditCard() ), I get the error and stack trace.// Workaround: use fully qualify nameproperty com.mymodel.CreditCard creditcard;
Method:
coldfusion.runtime.CfJspPage$ComplexObjectException: Complex object types cannot be converted to simple values.at coldfusion.runtime.Cast._String(Cast.java:991)at coldfusion.tagext.validation.CFTypeValidatorFactory$CFCreditCardValidator.validate(CFTypeValidatorFactory.java:492)at coldfusion.runtime.ImplicitSetter.runFunction(ImplicitSetter.java:126)at coldfusion.runtime.ImplicitSetter.invoke(ImplicitSetter.java:102)at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:333)at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360)at cfAccountServiceUI2ecfm1633651983.runPage(D:\Project\billing\com\billing\AccountServiceUI.cfm:28)at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:342)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.filter.CachingFilter.invoke(CachingFilter.java:53)at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126)at coldfusion.CfmServlet.service(CfmServlet.java:200)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)
Result:
Complex object types cannot be converted to simple values.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3040354
External Customer Info:
External Company:
External Customer Name: Henry Ho
External Customer Email: 237A22C24921EDF5992015B9
External Test Config: 10/27/2009
Attachments:
Comments: