Select to view content in your preferred language

SimpleMarkerSymbol is defined more than once in this namespace?

2551
9
02-21-2011 11:05 AM
ShannonMartel
Emerging Contributor
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"

The only thing is I am not even using a SimpleMarkerSymbol in my MXML or the flex project.  The Location is Unknown - I can't figure out where it is even seeing the SimpleMarkerSymbol.  I am using the Flex 4.1 SDK and the agslib-2.2-2010-12-08.swc. I do not have the 1.3 swc file - never did.

Has anyone ever had this happen to them?

Thank you for any help.

Shannon
Tags (2)
0 Kudos
9 Replies
khushisharma
Emerging Contributor
I am also facing the same problem. but the thing is that i am migrating the flex 3 project for flex 4.6. Unable to resolve the issue.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shannon and Khushi,

   The bigest thing is to ensure that you do not have to AGS Flex libs specified or linked in your project. Check the libs folder and ensure you only have one agslib-x.x-xxxx-xx-xx.swc in that folder and in the projects properties go to the Flex Build path and ensure in the Library path that there is not a linked agslib-x.x-xxxx-xx-xx.swc there if you do have one in the libs folder.
0 Kudos
khushisharma
Emerging Contributor
i am new to flex. The project on which  i am working is already developed by another developer in flex 3 and sdk 3.2 , agslib 1.3.

i am trying to migrate flex builder 3 project into flash builder 4.6 and using sdk 4.6.

when i have migrated project to flash 4.6 it already contained agslib-1.3-2009-10-31.swc but i want  to use agslib 2.5 with this project.
to add  agslib2.5 through flash builder project property in lib folder.and then removed agslib1.3 from lib.
after doing this my project come with 70 error  given below

"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"

sir i am very confused..........and i am not confirm that earlier developer had used flexviewer with agslib1.3 for same project and should i also add flexviewer new version for agslib2.5.

i am confused about flexviewer because my project directory structure showing flexviewer folder where some widgets swc are present.

please sir help me out how to come out from this problem....my project has stuck now
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
khushi,

   So you followed my advice that I posted and verified that you do not have antoher reference to an AGS lib (using my details provided in my last post)? Next you will need to run a "clean" from the project menu in Flash Builder. Coming from 1.3 all the way to 2.5 you are going to have errors and name space changes that you will have to make. Those errors are will have to be addressed by you as the developer (regradless if you are new to the language or not) if you intend to migrate the app to the latest version there is work you will have to do. No time like the present to dive in and learn.
0 Kudos
khushisharma
Emerging Contributor
sir i have removed agslib1.3 from lib but i think still agslib 1.3 is refered by my project  from some where because when i am importing package eg:
import com.esri.ags. then in popdown dialog box  it show symbol and symbols both package.
what does it mean?. i am also sending attachment please have a look .

if there is any other way to refer agslib1.3 except lib folder then please notify me,  so that i can   remove that link .
i am also sending lib folder attachment.

thank you sir for your reply.

[ATTACH=CONFIG]13169[/ATTACH][ATTACH=CONFIG]13170[/ATTACH]
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
khushi,

  look at this attached image I believe that all the indicated swc files are old and using the 1.3 API so you need to remove them and the widgets that use them from your project.

[ATTACH=CONFIG]13172[/ATTACH]

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote) as shown below:
0 Kudos
khushisharma
Emerging Contributor
Thank You So much sir for reply..........I will try to remove swc which you marked and inform you.
0 Kudos
khushisharma
Emerging Contributor
sir we were facing so much problems....so now we are doing work by using arcgis api 2.5 with flexviewer 2.5.

I have added some widgets from api but when widgets are opened my map is shifted from original position.....and it become smaller from its extent also we can't move widgets they are going to be static.

thank you...if possible please help me out.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Khushi,

   Just so that you know proper forum use... You have done what is called hijacking a thread. You did not start this thread and now you are continuing to ask questions that are unrelated to the original intent of the thread. Also you are asking Flex Viewer questions here when this is actually the Flex API forum and not the Flex Viewer forum. So in the future open a new thread for your questions and once that question is answered you mark it as answered and if you have more questions open new threads. It would also really help if your questions had enough detail in them for contributors to diagnose the issue or question you have. Things like "you added widgets from the API" is very misleading there are no widgets in the Flex API, there are widgets in the flex viewer code gallery and the out of the box flex viewer application (which is built on the Flex API).

Post your Flex Viewer question with better detail to the Flex Viewer forum:

http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex
0 Kudos