This content has been marked as final. Show 10 replies
I haven't tried the crm sample in cf. The error is trying cast a untyped object into to com.crm.Company. Can you verify your Company.as' meta data?
Did you make change of the following?
Hope it help!
Thank you for your response, William.
The meta data is correct in both .as files
I found this topic:. http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1169105&CF ID=1242873&CFTOKEN=1a3dbe59f930b742-FF593E3B-CAC0-B5E7-DE9492CACD4376CA&jsessionid=48308cd 7d74565496b45
It started out sounding like my problem (#1034). But then it turned into a remote server issue. Maybe it can shed some light on my problem.
What object is being cast in to a 'com.crm.Company'? Is it a returned company data row from the grid?
i am going to follow the instruction to install CF today to try it out. However, you can debug it by change the logging lvl to debug in services-config.xml. Check the reponse is a typed object or not.
As you know the exception is coming from
company = Company(companies.getItemAt(dgCompany.selectedIndex));
if some configurations go wrong, server returns a object proxy. In this case,
the workaround is (don't cast it to typed object)
company = companies.getItemAt(dgCompany.selectedIndex);
I see the <logging></logging> tags in service-config.xml. How do I set the logging to debug?.
I figured how to set log level to debug...
Interesting thing is I don't get any log output when I click the data row. I only get the error popup.
Instructions for configuring server-side service logging are available in the Flex 2 Developer's Guide. Here's the link to the relevant section -
When you click on the item on datagrid, there is no debug information on the server's log, since the data is already loaded. I am sorry about the confusion. What I meant was the log from the server when the data was loaded. You should be able to see the serialized objects' information
I downloaded the cfcrm app. I found the cfc have <cfcomponent output="false" alias="samples.crm.Company"> Did you also fix this when you changed the package?
Yes. I changed all cfc aliases too.
Have you found the problem yet? Did you try the debug feature in FDS to find out the serialized object type? It should be somewhere in the codes still using sample.crm.Company, since it worked before you changed the package. If you need, you can zip it up and send to me. I can take a look