Select to view content in your preferred language

errors when trying to upgrade to 2.3.1

855
4
05-16-2011 05:59 AM
AntonHughes
Emerging Contributor
Hi
Ive spent almost 3 days trying to get passed the following error - so I really hope someone here can help.


I am getting the following error:
component SimpleMarkerSymbol is defined more than once in this namespace.  Remove the mapping to com.esri.ags.symbol:SimpleMarkerSymbol or com.esri.ags.symbols:SimpleMarkerSymbol

I have searched through the project for "com.esri.ags.symbol:SimpleMarkerSymbol", but cannot find even one reference, so I dont know how I can remove it.

When I bring up the class browser (Shfit + Ctrl + T) I get two results for SimpleMarkerSymbol. One result leads to the GeoPortalSearchWidget.swc and the other to the agslib-2.3.1-2011-04-26.swc.

If I remove the GeoPortalSearchWidget.swc then I get about 300 errors - so it seems I need this library.

Even if I comment out all references to SimpleMarkerSymbol I still get the same number - 20 - of errors. The errors do not have a location, just project errors.

Do I need to get an updated version of GeoPortalSearchWidget.swc? If so, where would I get a new version from?

Thanks
Tags (2)
0 Kudos
4 Replies
BjornSvensson
Esri Regular Contributor
Are you using one of the viewer code bases or your own API-based application?

What version are you upgrading from?

The package name change from com.esri.ags.symbol to com.esri.ags.symbols was part of the 1.x to 2.0 migration.
http://help.arcgis.com/en/webapi/flex/help/index.html#/Migrating_from_1_3_to_2_0/017p0000000z000000/

Is the GeoPortalSearchWidget.swc you are trying to use based on the 1.x API?
0 Kudos
AntonHughes
Emerging Contributor
Hi Bjorn

Thanks for the reply.

Are you using one of the viewer code bases or your own API-based application?

Im not exactly sure which version the current application is, as I have inherited the task and the originally developer has gone, and also I am not that familiar with flex. I think it is based on the viewer code base.


What version are you upgrading from?

The package name change from com.esri.ags.symbol to com.esri.ags.symbols was part of the 1.x to 2.0 migration.
http://help.arcgis.com/en/webapi/flex/help/index.html#/Migrating_from_1_3_to_2_0/017p0000000z000000/

Is the GeoPortalSearchWidget.swc you are trying to use based on the 1.x API?


I am assuming the GeoPortalWidget.swc is based on on the 1.x api.

Thanks
0 Kudos
BjornSvensson
Esri Regular Contributor
Im not exactly sure which version the current application is


You can right-click the map and select "About ArcGIS API for Flex..." and "About ArcGIS Viewer for Flex..." to find out which versions of these your application is using.  If it doesn't mention the Viewer, then it's not using any supported version of the "ArcGIS Viewer for Flex".

The 1.x and 2.x versions do not play well together becasue they are based on sufficiently different versions of Adobe Flex SDK.  The following links might help you find a 2.x version of that widget:
http://geoportal.sourceforge.net/
http://forums.arcgis.com/threads/11806-flex-4-geoportal-toolkit-extension-widget
http://geoportal.svn.sourceforge.net/viewvc/geoportal/components/flex/
0 Kudos
SamRideout
Emerging Contributor
I've just upgraded to Flex API 2.3.2 from 2.2 and I have a question I'm hoping to get help with.

In my previous ap, I was able to resize an infowindow using actionscript such as:

   myMap.infoWindow.width=400;
   myMap.infoWindow.height=260; 

After rebuilding my project in 2.3.1, these lines of code seem to be ignored and the infowindow does not show at the correct size.

Any ideas?  I'm hoping this is an easy one


Sam
0 Kudos