Flex - Getting the HTTP error code raised from SAP
Hi all,
is there a way to catch the error code returned by a BSP page?
For example, I have a Flex HTTPService that points to a BSP page somedata.xml, which is populated after retrieving data in onInitialization handler.
In this handler, if something goes wrong, I set up the response error code like this:
try.
"Data Handler Class
catch zcx_some_exc into lx_some_exc.
error_string = lx_some_exc->get_text( ).
response->set_status( code = 500 reason = error_string ).
endtry.
In my faultHandler function in Flex, I need to display error_string in an Alert box:
private function HTTPFaultEventHandler(event:FaultEvent):void{
Alert.show(event.fault.faultString);
But in this way, it always display "HTTP Request error".
Anyone can help me?
Thanks a lot,
R.
This is a known issue with flex HTTPService.
what you could do is
set the status to 200 for BSP response
and pass the error message in xml format.
on the flex side, in your result handler, check the xml to see whether its error xml or your normal result xml.
if its error xml, you can provide an alert and then stop processing.
Ref: http://onrails.org/articles/2008/02/20/dealing-with-http-errors-in-a-flex-with-rails-application
Regards
Raja
Similar Messages
-
I have recently restored everything on my iMac after getting a new hard drive. When i try to use Elements, i get the following error code ERROR 150:30. Any ideas?
Did you use migration assistant to copy over programs, documents, and settings? You can't do that with PSE. Elements is not a tidy package in accordance with the apple developer guidelines. The installer strews stuff all of your hard drive in place the migration assistant isn't programmed to look and you can never hope to find all h the bits. You must always install PSE from scratch on a new machine. By attempting to copy it you have made a lot of trouble for yourself.
You will need to download and run this:
Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
and then you can go around and manually remove what you can reach. Look in applications, your hard drive>library>application support>adobe, your username>library>preferences. In the user library also delete any saved application states for PSE.
Then you can reinstall from scratch. -
Hi, I keep getting the following error code : U43M1D207 when I try to install the latest updates. Im trying to load the RAW conveyors for the Nikon D810 but so far pretty well frustrated.
Any help would be greatly received.......
Regards
AppleCan you please try the solution suggested at error code U43M1D207 ?
Thanks
Andaleeb -
I keep getting the following error code message: We could not complete your itunes store request. An unknown error occurred (-9808). Help!
Try:
iTunes Store: "An unknown error occured (-9808)" -
I Just purchased Adobe Acrobat DC, Everytime I try to install I get the same Error We've encountered the following issues, The server is not responding currently. Please try after some time (Errors Code: 207) I've rebooted twice, and I get the same error, any immediate solutions? I need answer now (Disabled Vet who can't physically stay online), anyone?
I was not aware that the Administrator account was active on Win 8.1. On Win 7 it is inactive and has to be activated to use. For activation on Win 7 I always have to look it up on the web. There are just a few steps needed, but you may indeed have the Administrator account active. For the TEMP folder, you can simply empty it (often some files do not like to delete). The cleanup can be done with various software like CCleaner. You can also just go to the Windows\TEMP folder (I think this works in Win 8.1) and delete the files and folders found there (C:\Windows\Temp). Sometimes there is a temp folder under your user account that may be used for such files and that one could be cleaned too (C:\Users\Administrator\AppData\Local\Temp). I am not sure which one Adobe uses. The issue with the temp folders is that they are limited in size as I understand it. It may be someone else has a better suggestion, but if the administrator and anti-virus suggestions did not help, this is my next recommendation.
-
SmartView Problem: I get the following error when submitting from Excel
Table already exists. <BR>Unspecified error
<BR>Table already exists.
This Upload File worked before. I have checked the Function and it looks fine.
I can "Refresh" but as soon as I "Submit" I get this error
Edited by: user6378062 on 2009/01/20 10:42 PMGood morning,
Please, open a TAC service request to have this investigated further.
When you do, please, attach the exact steps you follow to get this error, as well as a sysreport from the Show and Share appliance.
Also, it would be good to confirm whether other users are also seeing the same error or not.
Regards
Daniel -
I recently restored to factory settings.I updated iTunes Store account details and change of password on my PC. After that I tried to log on to the Store via my mobile and was confronted with my previous ISP,s log on page requesting password which when entered correctly it didn't recognise. The restoration action solved that particular problem but has now left me with the "error code 4001 problem. Be grateful for solution..
means that apple mobile device service needs to be started try this article to get it turned back on
Restart apple mobile device service -
When I try to download the new update iOS7 when I get to like 20 something minutes it stops and reads and error occurred and quits downloading. I have tried at least 5 times. I have plugged it in to the charger to keep the battery from dying but still the same error. Please help.
This can happen if the server is really busy, I had to retry 4-5 times until it finally worked. Just keep at it, you'll get there in the end, but yeah, it would be good to know what the error actually says
-
my ipod wont update because it gives me a (-1) error code and i really need to update it and suggestions? ive read the troubleshoot page on it and it said something about uninstalling the security software and i have no idea how to do that.....
Error 1 or -1
This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.
The "device may need service" means a hardware problem. in that case make an appointment at the Genius Bar of an Apple store.
Apple Retail Store - Genius Bar -
The website can be accessed ok from another computer in the office. It happened about 3 days ago (I think after an auto update) and I hoped it would clear. I use win8.1. I tried one of the solutions and deleted Cert8db in the profile, but that did not help. I also re-set Nightly and it did not solve the problem.
Any help would be appreciated.Check the connection settings.
*Tools > Options > Advanced > Network : Connection > Settings
*https://support.mozilla.org/kb/Options+window+-+Advanced+panel
If you do not need to use a proxy to connect to internet then try to select "No Proxy" if "Use the system proxy settings" or one of the others do not work properly.
See "Firefox connection settings":
*https://support.mozilla.org/kb/Firefox+cannot+load+websites+but+other+programs+can
Which security software (firewall, anti-virus) do you have?
Some firewalls monitor (secure) connections and may be causing problems with secure connections. -
I hope someone can help with this. Thanks
BTW, I am using an iMac
JJThanks Roger
I just figured out that submitting through https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/publishPodcast (found through the podcasts section in iTunes) works where https://phobos.apple.com/WebObjects/MZFinance.woa/wa/publishPodcast (found at the "Submitting a Podcast" link at http://www.apple.com/itunes/podcasts/specs.html#submitting) does not. I had my custom built system hard linked to the other URL and it failed every time after providing the URL to the feed in iTunes and submitting my Apple ID. -
I have been getting the SMS Error Code 64 Class 2 message
I cannot send Messages or make/receive calls either. Anyone know whats wrong?
sf02176 wrote:
I cannot send Messages or make/receive calls either. Anyone know whats wrong?
If you have a 4G LTE phone, have you tried powering off the phone, removing the SIM card, waiting a few minutes, and then reinserting the SIM card and powering the phone back up to establish a fresh connection to the network?
Similarly, if you have a 3G phone, have you tried dialing *228, option 2? -
When I try to update I get the notice: Error code 206, Contact Supportt
Why can't I update?
Are you on a managed network? No
If not then please try an alternate Internet connection. ??? Only have 1 at home
If you are on a wireless network then try a wired connection. It is wired
If you are on a wired connection then please try a different cable. Done that.
Still doesn't work
paul -
Getting the current installed version information from SAP with VBScript
This is probably a question that is buried somewhere in here but so far no luck finding it so i'm throwing it out to everyone.
I am in charge of developing all of the distribution packages for SAP and any and all add-ons our corporate site requires. I'm using radia as a push tool and vbscript and wmi to manage the uninstall, install, patching, updating, and miscellaneous functions needed on each users system.
prior to my taking this position over an older version of SAP was distributed to several users with less than stellar results. due to the massive size of the Frontend GUI i've separated it out as a base stand alone install and packaged each Add-On with only the files it needs to complete the FE install. in order to guarantee my users have the newest version of the FE GUI on their systems i am doing some rudimentary checks based on the existence or no existence of the push directory of the older sap package on the users system. which works for now but is not the most graceful thing.
What i need is to be able to check right from a running vbscript what the current version and patch level the FE GUI is running at and any other components if possible, for now the FE GUI is the most important
Thanks for the help
Cheers,
<b>Ryan Strope
Distributed Services
(Software package development/testing)
Lockheed Martin Systems Integration Owego
(Cyber City Computers)
[email protected]
(607)751-1164
Quid quid latine dictum sit, altum videtur
</b>Ryan,
I hope you find this of use. The only issue you will have is if the user has the SAP GUI running. If so, the getversion call will fail as it requires an exclusive lock on the file. I do not know why.
Anyway, here is the code:
Dim oShell, SAPdestdir, fso, i
Set oShell = WScript.CreateObject("WScript.Shell")
SAPdestdir = oShell.RegRead("HKLMSOFTWARESAPSAP SharedSAPdestdir")
Wscript.Echo SAPdestdir
Set fso = CreateObject("Scripting.FileSystemObject")
SAPGuiVer = fso.GetFileVersion(SAPdestdir & "SAPGuiSAPGui.exe")
WScript.Echo SAPGuiVer
verInfo = Split(SAPGuiVer, ".")
For i = 0 To UBound(verInfo)
WScript.Echo verInfo(i)
Next -
Error after upgrading from sap b1 pl 35 to pl 49
hello sap experts
iam getting the following error after upgrading from sap b1 pl 35 to pl 49 this error is coming if we have given round off or discount in the below cell
"Discount deviates from authorised ranges (sales oreder-discount%for document) [message 439-15] pls make it as soon as possible an i will be thankful to those guys .
regards
JennyHello Jenny,
You may check by supreuser account first to see if you got the same error. If not, it probably just related to user authorization. If yes, it must be a bug.
Thanks,
Gordon
Maybe you are looking for
-
Nokia Lumia 810 (T-Mobile) Experiencing Freezes Li...
I got a new Nokia Lumia 810 almost a month ago, and I seem to be experiencing the same sort of freezes as the 820 and 920 owners. The first freeze occurred almost immediately after setup, the second the next day, and since then the freezes vary betwe
-
How to disable size button in a JINternalFrame
how to disable the middle button in a JInternalFrame the one between iconify button and close button thanx
-
Disk Utility internal error message
I am receiving an error message every time I try to repair permissions on my MB running OS X 10.4: error: Disk Utility Internal Error Disk Utility has lost its connection with the Disk Management Tool and cannot continue. Please quit and re launch Di
-
I am trying to connect my sandisk titanium flash drive to my macbook pro. the light is on but it is not recognizing it on the computer. any ideas
-
Hello! I am new to the world of iPods, so please bear with me. I recently purchased an iPod Nano (5th gen, 16GB) and figured out how to sync it with iTunes. Unfortunately, it seems to only sync up with select albums in my library. I know that in orde