Flex forced type conversion error, flex forced type

Source: Internet
Author: User

Flex forced type conversion error, flex forced type

1. Error description

TypeError: Error #1034: forced conversion type failed: the HoleDetailInnerClass0 @ c2cccf1 cannot be converted to mx. controls. listClasses. IListItemRenderer. At mx. controls. dataGridClasses: DataGridColumn/http://www.adobe.com/2006/flex/mx/internal::getMeasuringRenderer () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ controls \ dataGridClasses \ DataGridColumn. as: 1892] at mx. controls: DataGrid/commitProperties () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ controls \ DataGrid. as: 1925] at mx. core: UIComponent/validateProperties () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ core \ UIComponent. as: 7772] at mx. managers: LayoutManager/validateProperties () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ managers \ LayoutManager. as: 572] at mx. managers: LayoutManager/doPhasedInstantiation () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ managers \ LayoutManager. as: 700] at mx. managers: LayoutManager/doPhasedInstantiationCallback () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ managers \ LayoutManager. as: 1072]

2. Error cause


3. Solution


Flex interacts with java. Recently, the force type conversion error can be solved by 20 points.

The problem is unclear. Can you make it clear?

Flex forced type conversion: ArrayList ArrayCollection

We recommend that you change the returned value of ArrayList to ArrayList <Map <String, String> to convert it. The first string is fieldName, and the second is fieldValue.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.