How can I get rid of a type generated by the Data/Services return type wizard?

Advertisement
October 11

Hi All,
I have a JSON service that returns an object called "error".  The Data/Services "Configure Return Type" wizard automatically turned this into a class "Error".
However, this caused over a hundred errors to show up inside the generated classes, "Call to a possibly undefined method Error."  That's because of lines like this:
throw new Error(propertyName + " is not a data property of entity Agreements"); 
It's trying to throw a regular "Error" object, but now that there's an "Error" class in the same package, that is taking precedence--and that Error object doesn't have a constructor with a single parameter.  At least, that's what I think is going on.
I tried to fix it by deleting _ErrorEntityMetadata.as, _Super_Error.as, and Error.as from the valueObjects package.  I then opened the FML file and deleted the definition for the entity "Error" and every reference to the Error entity (class) in my FML file.
I then changed my JSON service so that it returns an object called "serviceError" instead of just "error".
But, whenever I re-run the "Configure Return Type" wizard, it regenerates the Error class, even though I've deleted it from everywhere I can find it.  That breaks my project completely!  How can I end this and get Flash Builder to *stop* generating this type!
In the "Configure Return Type" wizard I very carefully inspected the type of every bit of data coming back to make sure none of them show up as type "Error."  And they don't (as expected, since I changed the object's name to serviceError--now the type of that object is ServiceError.
  -Josh

Advertisement

Replay

I think you are facing this known issue https://bugs.adobe.com/jira/browse/FB-29770
Please vote it.
Thanks for the link--I just voted for it.
To avoid this, in the last page of "Configure Return Type", edit return type name to something else (You can also edit subnodes's name too in the wizard).
Actually, that's exactly what I saw doing; I apologize if that wasn't clear in my post.
I closed and restarted Flash Builder, and once I did that Flash Builder stopped generating the Error class.  My guess is that the FML file, even though I had updated it (by deleting all references to the Error class), was cached in some fashion by Flash Builder, and restarting Flash Builder forced it to reread the FML file?
Additional point of clarification: my understanding is that the FML file stores all the metadata about the services that Flash Builder has been able to figure out so far, and when you run the Configure Return Type wizard, it will regenerate *every* type in the FML file, even if that type is not mentioned anywhere in the particular return value that you are working with.
Edited to provide additional thoughts on FML file.

View 5 Replies

How can I get rid of Apple Maps and Put the Google Maps back?

November 30

I wanted to know how to remove the Apple Maps and reinstall the Google Maps. The Apple Maps is a very inferior programme and not worth the space on the. Computer. It can't find anything. It's a complete waste of time. So my original question is, how

View All Replies

HT3562 how can i get rid off voice over ?

November 30

How can i get rid off voice control?Follow the directions here to turn it off. You cannot "get rid" of it: http://support.apple.com/kb/HT3598Read other 6 answers

View All Replies

How can i get rid of ad redirects on my Safari?

November 30

How can i get rid of ad redirects on my Safari? Pop up blocks are not working.Download and install GlimmerBlocker. (Presumably you regularly empty your Safari cache by deleting the following file: Home/Library/Caches/com.apple.Safari/cache.db and cle

View All Replies

How can i get rid of cinemapro1-2 adv?

November 30

recently when i search on the internet about some shopping websites, on the top of the web there always appear some advertisements. can you tell me how can i get rid of this? thank you so much yours sincere yiyang hanThere is no need to download anyt

View All Replies

How can I get rid of sun spots on photoshop cc?

November 30

How can I get rid of sun spots on photoshop cc?Hi Carol, I think my suggestion on this would be to use Content Aware with Color Adaptation turned on. Alternatively, you can follow the link below too. Photoshop Tutorial: Removing sunspots - YouTube Ch

View All Replies

How can I get rid of the added / preset  text words included in my text messages.  It always says something like "Please call back at

October 11

How can I get rid of the added / preset  text words included in my text messages.  It always says something like "Please call back at ###-####."    JenJenTen, I understand that having a preset text that you did not want can be a bit frustrating

View All Replies

"conduit search" How can I get rid of it for ever...

November 30

conduit search" How can I get rid of it for ever, seems to have hijacked something, Have removed it from search engine options but it keeps reappearing, have (apparently ) uninsulated the programme from control panel but its still lurking there somew

View All Replies

I have several devices under my apple id. If somebody contacts me all the other devices are ringing. How can I get rid of phone numbers in face time

October 11

Hi, i updated to ios 8 I have several devices under my apple id account. 2 iPhones (me and my wife ). 2 iPads also me and my wife and my iMac The problem is that if somebody calls me for example for face time all the other devices are also ringing, b

View All Replies

Yesterday, a search tab comes on when I start firefox. How can I get rid of it?

November 30

I seldom use tabs, so the tab bar was always hidden. starting yesterday, when I opened firefox A search tab is present. A single tab is also present. The search tab is very similar to the search button on the right of the navigation bar. So it is red

View All Replies

How can I get rid of MacKeeper? It is downloads everytime I connect to the internet. A yellow open box icon Mackeeper-2-1-2(12).pkg appears .

November 30

How can I get rid of MacKeeper which downloads everytime I go online?MacKeeper is a bit more pervasive than the unistaller. http://applehelpwriter.com/2011/09/21/how-to-uninstall-mackeeper-malware/Read other 4 answers

View All Replies

My laptop has a virus, how can i get rid of it?

November 30

My laptop has a virus on it and its called AntiVirus 360. I looked up on google what it is and its a virus that disguises itself as a program to help detect viruses when itself is the virus. I've tried many different programs to try and delete it off

View All Replies

Installed office for mac (trial version). now I got 2 excel files, which cannot be deleted. I googled the names of the sheets and found chinese websites I never visited. Are those dialers? How can I get rid of them? system is mac lion(with win 7 parallel)

October 11

now I got 2 excel files, which cannot be deleted on my desktop. I can't open them, either. I googled the names of the sheets and found chinese websites I never visited. Are those dialers? How can I get rid of them? system is mac lion (with win 7 para

View All Replies

I cut photos from folder and exit iPhoto. When I return, the photos are back. how can I get rid of them?

November 30

How can I get rid of unwanted photos.  As I'm going along removing pictures, they seem to be gone.  When I return to iPhoto, they are back.The original images are in your Library section - (events and photos).  In order to delete them permanently, yo

View All Replies

I don't want the 'chat' option. how can I disable it? I often get the message that I am being disconnected from chat because i've logged on from another computer. I never use chat, and it just seems to be a problem. How can I get rid of it?

October 11

I often get the message that I am being disconnected from chat because i've logged on from another computer. I never use chat, and it just seems to be a problem. How can I get rid of it?Don't expect any wonders. If you use it heavily with multiple ap

View All Replies

A small box is scanning every information on my mac, how can I get rid of it???

November 30

A small boxe (black and white) is scanning every information on my mac. How can I get rid of it??Never mind! Find it... was the Appel NarratorRead other 2 answers

View All Replies

How can I get rid of duplicate photos within I-Photo

November 30

How can I get rid of duplicate photos within I-Photobest solution is iPhoto library manager - or Duplicate annihilator LNRead other 2 answers

View All Replies

HT204053 I created a new apple id because the previous one no longer exists as email (domain had to be cancelled). I keep seeing the old one pop up in my iPhone for which I don't remember the password. How can I get rid of it???

October 11

I created a new apple id because the previous one no longer exists as an email (domain had to be cancelled). I keep seeing the old one pop up in my iPhone for which I don't remember the password. How can I get rid of it??? Or how can I reset the pass

View All Replies

How can i get rid of adverts

November 30

how can i get rid of an advert  mac keeper keeps popping up overtime i click somethingGet adwaremedic: http://www.adwaremedic.com/index.phpRead other 2 answers

View All Replies

How can I get rid of unwanted text in my preview?

November 30

My book looks the way I want it to look on my mac.  But when I preview it on my iPad unwanted text "Untitled"  and "Section 1 appears. How can I get rid of these words?  Can I replace them with something else?Those elements are editable at

View All Replies

Tags:

  1. reset dw fabrica iphone modelo a1418?
  2. is 15 inch laptop enough for eve online
  3. ipad a1396 charging only vibrate no on
  4. download mackeeper Imac10.6
  5. PARNR LiVE ViDEo ON
  6. A422_000_085_140402_WW_WIFI
  7. BExGetData
  8. CL_SQL_RESULT_SET=============CP
  9. ULT4
  10. DCD5
Copyrights 2019 Fcffair BigData Resource, All rights reserved