Arcgis Flex 3.5 + Flex SDK 4.11 Problem

397
5
11-07-2013 10:16 PM
AnthonyMANACH
New Contributor
Hi,

I was updating the Flex SDK to 4.11 version for my project, but when I use a Task (for example PrintTask), there is an error with the JSON utilities include in the Flex Arcgis API.

This is the stack trace when I launch task.

Error: Propriété inconnue : dispatchResetEvent.
 at mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/collections/ListCollectionView.as:940]
 at JSON$/stringifySpecializedToString()
 at JSON$/stringify()
 at com.esri.ags.utils::JSONUtil$/encode()
 at com.esri.ags.tasks::Geoprocessor/toURLVariables()
 at com.esri.ags.tasks::Geoprocessor/submitJob()
 at com.esri.ags.tasks::PrintTask/submitJob()


I don't know if the problem come from Flex SDK or JSONUtil, but if I use the Flex SDK 4.9.1, it works.

Could you give me your feed back if I you resolve this problem for the next release of Flex Arcgis library.

Best regards.
Tags (2)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Anthony,

   If you look at the system requirements page you will see that the minimum SDK is 4.6

https://developers.arcgis.com/en/flex/system-reqs.html
0 Kudos
AnthonyMANACH
New Contributor
Anthony,

   If you look at the system requirements page you will see that the minimum SDK is 4.6

https://developers.arcgis.com/en/flex/system-reqs.html


Yes this the last Apache Flex SDK version 4.11 (not 4.1).
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Anthony,

  Ahh, my mistake. I doubt that the Flex API ha been certified against 4.11. The documentation page only mentions 4.8. Maybe Dasa or Bjorn will chime in.
0 Kudos
LloydHeberlie
Occasional Contributor
Hi,

I was updating the Flex SDK to 4.11 version for my project, but when I use a Task (for example PrintTask), there is an error with the JSON utilities include in the Flex Arcgis API.

This is the stack trace when I launch task.

Error: Propriété inconnue : dispatchResetEvent.
 at mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/collections/ListCollectionView.as:940]
 at JSON$/stringifySpecializedToString()
 at JSON$/stringify()
 at com.esri.ags.utils::JSONUtil$/encode()
 at com.esri.ags.tasks::Geoprocessor/toURLVariables()
 at com.esri.ags.tasks::Geoprocessor/submitJob()
 at com.esri.ags.tasks::PrintTask/submitJob()


I don't know if the problem come from Flex SDK or JSONUtil, but if I use the Flex SDK 4.9.1, it works.

Could you give me your feed back if I you resolve this problem for the next release of Flex Arcgis library.

Best regards.



Hi,

I was able to compile and run both samples listed below using the Apache Flex SDK 4.11.0 (AIR 3.9, FP 11,9,900,117) and the ArcGIS API 3.5 for Flex without errors.  Can you try these two samples?

JSONUtil_Test
https://github.com/lheberlie/arcgis-api-playground-flex/blob/develop/src/JSONUtil_Test

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -d32 -Dapplication.home=/Users/lheberlie/Apache/Flex_SDKs/4.11.0_3.9 -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -classpath /Users/lheberlie/Apache/Flex_SDKs/4.11.0_3.9/lib/fdb.jar flex.tools.debugger.cli.DebugCLI
Apache fdb (Flash Player Debugger) [build 0]
Copyright 2013 The Apache Software Foundation.
Waiting for Player to connect
Player connected; session starting.
[trace] {"CensusFileGDBWorkspaceID":{"workspaceDetails":["CensusFileGDBWorkspaceID","FileGDB"],"layers":{"cities":["OBJECTID","Shape","NAME",

�?� shortened to save space �?�..

"BIRTHS01","BIRTHS00","DEATHS02","DEATHS01","DEATHS00","INTLMIG02","INTLMIG01","INTLMIG00","DOMMIG02","DOMMIG01","DOMMIG00","RESIDUAL02","RESIDUAL01","RESIDUAL00"]}}}

PrintWithServer
https://github.com/lheberlie/arcgis-api-playground-flex/blob/develop/src/PrintWithServer


Did you install the Apache Flex SDK using the Apache installer?
0 Kudos
DasaPaddock
Esri Regular Contributor
Also, have you set PrintParameters.customParameters or is it null?
0 Kudos