Exception deserializing from BlazeDS with the help of [RemoteClass] metadata

Hi,
In my BlazeDS application (AMF based), I am throwing two kind of java Exceptions:
TechnicalException extends RuntimeException : this one is thrown to the Flex client when any unexpected error on the server is caught
BusinessException extends Exception : this one is a base class for business-related exception
On the Flex side, I created the same Exception classes mapped to the Java ones using the [RemoteClass] metadata tag.
In the error event handler of my RemoteObject call, I am looking at the event.fault.rootCause property for fully typed flex exception class, so that I can simply switch my behavior depending on the received exception. I observed the following behavior:
When throwing a java TechnicalException from the server, it is correctly deserialized as a flex TechnicalException on client side. So the assertion "event.fault.rootCause is TechnicalException" is working fine.
When throwing a java BusinessException from the server, it is NOT correctly deserialized as a flex BusinessException on client side. So the assertion "event.fault.rootCause is BusinessException" is NOT working.
The only reason I see for that is that only RuntimeExceptions can be deserialized strongly typed on Flex side. Is it the nominal behavior of the Flex RemoteObject or did I miss something ?
Many thanks in advance for your help,
Avangel.

Ok, I finally found the answer to my problem. For those interested, the cast of java Exceptions into ActionScript Exception is working exactly like any other class. It has nothing to do with whether the java class extends RuntimeException or not, or any other class / interface. It just doesn't matter at all. Flex RPC simply looks for an AS class mapped to the received Java class through the [RemoteClass] metadata tag. If it finds it, it just try to map fields from java object to AS object (even if a field is not matching, it just ignores it).
So the problem was a very well-know AS compiler problem: AS classes that are used only at runtime for conversion are not compiled in the SWF. In other words, if you have not any class that references your Exception class, that one won't be included in the SWF file, so the RemoteObject won't find it, thus returns an Object instead of strongly typed AS class.
Hope this may help someone
Avangel.

Similar Messages

  • Open discoverer worksheet  from javacript with the help of URL

    i want open my report from javacript with the help of URl to open the report with wbk(workbookid) and the paramenter for that report...
    http://server/discoverer/viewer?cn=connid&event=openWorksheet&wsk=worksheet1
    this url above opens the worksheet
    but if the worksheet have parmeter to be passed if i giv like this
    http://server/discoverer/viewer?cn=connid&event=openWorksheet&wsk=worksheet1&qp_12=101015
    _12 is parameter name and 101015 is the value.
    pls help me to sort out the problem

    i want open my report from javacript with the help of URl to open the report with wbk(workbookid) and the paramenter for that report...
    http://server/discoverer/viewer?cn=connid&event=openWorksheet&wsk=worksheet1
    this url above opens the worksheet
    but if the worksheet have parmeter to be passed if i giv like this
    http://server/discoverer/viewer?cn=connid&event=openWorksheet&wsk=worksheet1&qp_12=101015
    _12 is parameter name and 101015 is the value.
    pls help me to sort out the problem

  • Transfer Of Data from Sap to Oracle with the help of Enterprise Services.

    Hello,
    We want to transfer data from Sap to Oracle using standard Enterprise Services.Some fields were not available in the existing standard Enterprise Services,so we have enhanced the existing Services by writing code inside BADI available with Enterprise Services.Rest of the fields we have mapped with the existing fields available in standard Enterprise Services.But,the Oracle people want to fetch all data from Sap without entering any input as a mandatory field in the Enterprise Services.The existing standard Enterprise Services require to enter any field as mandatory and are not accepting the range in input for multiple records.e.g.All enterprise Services related to Sales Orders are displaying only one sales Order.We have searched all Enterprise Services for Sales Order(related to reading of data),but not able to find service which would display mutiple records without entering any input.ECC_SALESORDER009QR is the only service which is displaying multiple records without entering any input,but the required fields are not available in this service.So,kindly suggest what we need to do further.
    1.Should we go for customization of services completely,so that it would fulfil our requirement.
    2.Are there  standard Enterprise Services exists which would we give us data in range(all records).
    If they exists,please specify the names of Services for reading Purchase Order,Production Order,BOM etc.
    Thanks & Regards,
    Divya.

    Hi Vaibhav,
    Let me tell you the objective in detail.
    Objective.
    To develop a package solution which will work as a bridge between Oracle APS and SAP system so that customers using SAP will be able to use advantages of Oracle APS for their planning needs.
    This will consist of following major components:
    OA Templates is an Oracle utility to load data from any legacy system to Oracle APS using standard flat files.
    Oracle has developed an Application Integration Architecture which is a standard architecture used for integration of Oracle products with other systems.
    Enterprise services is an SAP utility to communicate with SAP.
    AIA canonicals are standard canonicals developed by Oracle where we have to map data fields from destination system (Oracle APS) and source system (SAP)
    Fusion middleware is being used to develop application interfaces following AIA standards.
    Tasks at stake:
    Mapping of Oracle APS fields and SAP Enterprise Service fields to AIA canonicals
    Technical work of developing middleware using Oracle Fusion
    From Sap side,we have to map fields which we have received from Oracle with the help of Enterprise Services,rest  consumption of these services is done by Oracle guys.So,suggest is there enterprise services available which would give us multiple records .
    Thanks & Regards,
    Divya.

  • I bought Napoleon Total War from iTunes on 13 July. It downloaded properly and appeared on my iMac. Now, four days later I cannot find the application on 'Applications' or anywhere else on the computer, even  with the help of Spotlight. Help.

    I bought Napoleon Total War from iTunes on 13 July for £20.99. It downloaded properly and appeared on my iMac. Now, four days later I cannot find the application on 'Applications' or anywhere else on the computer, even  with the help of Spotlight. Help.

    A refund may not be possible since the terms of sale for the iTunes Store state that all sales are final. You can contact the iTunes Store, explain the reason for your request, and ask, though:
    http://www.apple.com/support/itunes/contact.html
    It's possible they'll make an exception for you.
    Good luck.

  • I recently brought a mac and downloaded windows with the help of boot camp and by mistake i installed windows 7 ultimate version whereas i had the cd and serial key of windows home premium i started installing windows home premium from windows 7 cont...

    I recently brought a mac and downloaded windows with the help of boot camp and by mistake i installed windows 7 ultimate version whereas i had the cd and serial key of windows home premium i started installing windows home premium from windows 7 ULTIMATE then after the exctraction of files and everything the windows setup came and my mouse and keyboard stopped working and i dont know how to open mac os x there is no option anywhere?? what shall i do pls help!!!!if there are any keyboard shortcut key to open mac os x or boot camp pls mention.

    For Boot Camp issues please repost in the Boot Camp forum located by clicking Boot Camp

  • Can someone tell me step by step how to record from audio tape to mac book with the help of xitel import deluxe

    Can someone tell me step by step how to record from audio tape to mac book with the help of xitel inport deluxe system.  Somebody had mentioned that we do not have to download the software - so I did not, but the computer does not recognize the connection.  How can I know it is connected - can someone please tell me step by step as teaching a layman.  Thanks.

    It seems this question is best posed to the makers of "xitel".
    I looked up A product and it is out for Windows but does not mention Mac OS X:
    http://www.xitel.com/USA/prod_inportpro.htm

  • Need help from somebody with the "MSI KT6 Delta-FIS2R" motherboard

    Hi everybody!
    I really need some help from somebody with the MSI KT6 Delta-FIS2R motherboard (the one with onboard LAN, Audio, RAID, S-ATA and IEEE1394 firewire). You see. I've got this board myself but it's been destroyd. Some values for the onboard devices in my board has been overwritten so that windows no longer recognizes the onboard LAN and Audio controller anymore. I really need some help from somebody with this board.
    I need to see what the values for the onboard devices should be. I hope someone can help me by sending me a repport from the Everest home edition: http://www.lavalys.com/products/overview.php?pid=1&lang=en
    If anyone could do me this favour, I would be VERRY thankfull

    Quote from: HYSTERIAH on 12-November-05, 06:24:20
    I really need some help from somebody with the MSI KT6 Delta-FIS2R motherboard
    HYSTERIAH,
    With 76 Replies and 277 Views on your original thread, it looks to me like people have been trying to help you.
    So there is no confusion, I am locking this thread so all your help and advice you receive will be in the same place, so people do not need to jump between threads to keep track of what has already been suggested for this mobo of yours.
    Richard

  • Creation of report with the help of report painter

    Dear Experts,
                         I need report painter material, if any body have  pls  farward to me.
    my intension to create controlling report with the help of report painter.
    I am ready to award full points.
    Thanks in advance
    Regards
    avudaiappan
    Moderator - Please read this:
    /thread/931177 [original link is broken]
    Thread locked

    Hello Chinasammy,
    Report Painter allows you to create reports using data from SAP application components, which you can adapt to meet your individual requirements.
    Many of your reporting requirements can already be met by using the standard reports provided by various SAP application components. If these SAP standard reports do not meet your reporting needs, Report Painter enables you to define your specific reports quickly and easily.
    When executing a Report Painter report, it is displayed by the system in Report Writer format. You thus have access to the same functions as for Report Writer reports defined in the same way, and can combine Report Painter and Report Writer reports together in a report group.
    Report Painter uses a graphical report structure, which forms the basis for your report definition and displays the rows and columns as they appear in the final report output.
    To facilitate report definition, you can use many of the standard reporting objects provided by SAP (such as libraries, row/column models, and standard layouts) in your own specific reports. When you define a Report Painter report you can use groups (sets). You can also enter characteristic values directly.
    Advantages of Report Painter include:
    Flexible and simple report definition
    Report definition without using sets
    Direct layout control: The rows and columns are displayed in the report definition as they appear in the final report output, making test runs unnecessary.
    =============================================
    Below mentioned is the process for creating reports using Report Painter as a tool.
    Selecting and maintaining a library for your report: As the transfer structure to Report Painter you use a report table, which is defaulted by SAP and can not be maintained. This table contains characteristics, key figures and predefined columns. In a library, you collect the characteristics, key figures, and predefined columns from the report table, which you need for your Report Painter reports.
    When you define a Report Painter report, you assign it to a library. Reports assigned to one library can only use the characteristics, key figures, and predefined columns selected for that library.
    When you create or maintain a library, the Position field determines the sequence in which the characteristics, key figures or (predefined) key figures appear in the Report Painter selection lists when you define a report. This allows you to position the objects that you use regularly in your reports at the beginning of the selection lists. If you do not make an entry in the Position field, you will not be able to use this object in Report Painter reports.
    You can use either the standard SAP libraries for your reports or define your own.
    (ii) Selecting or maintaining a standard layout for your report: Standard layouts determine report layout features and the format of your report data.If the SAP standard layouts do not meet your reporting requirements, you can create a new  standard layout or change an existing one.
    (iii) Defining row and column models: A model is a one-dimensional, predefined reporting structure that you can insert in either the rows or columns of your report.If you often use the same or similar row or column definitions in your reports, it is recommended that you create row or column models.
    You must define the row and/or column models that you want to include in your report definition before you define the report.
    You can also use the standard column models supplied by SAP.
    (iv) Defining the report: Defining a Report Painter report involves the following steps.
    (a) Define the report columns: You define the report columns using the characteristics, key figures, and predefined columns selected for the library that the report uses. Alternatively, you can use a column model for column definition. Column models are predefined column structures which you insert into your entire column definition, instead of defining each individual column.
    (b) Define the report rows: You define the report rows using the characteristics selected for the library selected for the report.
    Alternatively, you can use a row model for your row definition. Row models serve the same purpose as column models, but are used to define a report row.
    Edit and format the report rows and columns in line with your requirements. (For example, you can hide rows or columns, define the column width or define colors for your report rows).
    (iii)Define general data selection criteria for the selection of your report data: Selection criteria are the characteristics used to select data for the entire report. You cannot enter characteristics as data selection criteria if they are already being used in the report rows or columns.
    (iv) Assigning the report to a report group: Once you have defined a report, you must assign it to a report group. A report group can contain one or more reports from the same library. However, reports that share the same data will select data more quickly and improve processing time.
    Hopw this helps you. Please let me know if you need anything more and assign points.
    Rgds
    Manish

  • Unable to delete Role from User ID in SAP SOLMAN production system but able to from DEV with the same authorization, pls suggest

    unable to delete Role from User ID in SAP SOLMAN production system but able to from DEV with the same authorization, pls suggest

    Hi,
    For SU01 role removal, you do not need S_USER_AGR with 02, and as you mentioned both authorizations available in production, if so trace should not show you the S_USER_AGR with 02 with RC=04.
    I would recommend to do role comparison for the user performing the activity. and then check if you have the S_USER_AGR with 02 in user buffer SU56.
    But ideally it should not ask you S_USER_AGR for 02 through SU01, so please take help of abaper to debug it.
    Also put trace in non-prd to see if S_USER_AGR is getting checked with 02 for removal through SU01.
    BR,
    Mangesh

  • Custom report templates with the help of BI Publisher.

    Hi All,
    I have created custom report templates with the help of BI Publisher it is working as we excepted.
    refered : https://blogs.oracle.com/kyle/tags/reports
    But our requirement want to change the color of heading and include filters in output report, It is possible, if yes pls share you comments?
    Best Regards
    Pradeep

    how silly of me!
    just restarting the tomcat sorted the problem!!!

  • With the help of script i want to identify each and every thing in a indesign file

          i want to identify the each and every thing in a .indd file with help of script.and also i have to find totally how many farmes or things present in that file
    kindly guys help me out.
    and also suggest me some ideas.
    thanks in advance
    regards,
    siv 

    thanks ya...
    Actually my recuirment is there will be so many number of frame or text frame will present there in a indd file
    >with the help script im giving number to the script label . it follows the order of Stack
    (the frame designed latest will get the latest script label)
    >in a particular order the frame has to get numbered in script label
    i.e
    either from right to left or left to right.
    hope u got my point
    kindly help me out
    regards siv

  • I want to pick the Exp.GL A/c of GRN with the help of IR Doc.(INv.Verifica)

    Dear All,
            CAn i know how can i pick the GL Account of GRN Doc.No.with the help of Invoice Doc.No.(Inv.Verification).From which table i can take these information.
    Please answer me immediately so that i can also reward point & the requirement is urgent.
    Best Regards,
    R.Rajakumaran

    Hi,
    Invoice you will have the Purchase Order no. Display the purchase order through ME23N and at the item details you can find the GRN No. Or double click on the purchasing doc no. system will display the PO.
    Thanks
    VK

  • I've installed windows 7 with the help of bootcamp on my macbook pro 2011. Please help me how to install mac drivers for windows7 64 bit???

    I've installed windows 7 with the help of bootcamp on my macbook pro 2011.
    Please help me how to install mac drivers for windows7 64 bit???

    You either download drivers from within Boot Camp Assistant and save to USB FAT disk, or you insert and use 10.6.x OS X DVD when in Windows and install and run the SETUP from there.
    General Help:
    Boot Camp 4.0, OS X Lion: Frequently asked question
    http://support.apple.com/kb/HT4818
    http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.7.pdf
    create a Windows support software (drivers) CD or USB storage media
    http://support.apple.com/kb/HT4407
    Installation Guide   Instructions for all features and settings.
    Boot Camp 4.0 FAQ   Get answers to commonly asked Boot Camp questions.
    Windows 7 FAQ   Answers to commonly asked Windows 7 questions.
    - support articles and tips, how to.
    http://www.apple.com/support/bootcamp/
    Macs that work with 64-bit editions of Microsoft Windows Vista and Windows 7
    http://support.apple.com/kb/HT1846
    Step 4: Install the Boot Camp Drivers for Windows
    After installing Windows, install Mac-specific drivers and other software for Windows using your Mac OS X installation disc.  The Mac OS X disc installs drivers to support Mac components, including AirPort,built-in iSight camera, the Apple Remote, the trackpad on a portable Mac, and thefunction keys on an Apple keyboard. 
    The Mac OS X disc also installs the Boot Camp control panel for Windows and theApple Boot Camp system tray item.
    To install the Boot Camp drivers:
    1 Eject the Windows installation disc.
    2 Insert the Mac OS X disc.  If the installer doesn’t start automatically, browse the disc using Windows Explorerand double-click the setup.exe file in the Boot Camp directory.
    3 Follow the onscreen instructions.
    If a message appears that says the software you’re installing has not passed Windows  Logo testing, click Continue Anyway.
    Windows that appear only briefly during the installation don’t require your input.
    If nothing appears to be happening, there may be a hidden window that you mustrespond to. Check the taskbar and look behind open windows.
    Important: Do not click the Cancel button in any of the installer dialogs.
    4 After your computer restarts, follow the instructions in the Found New Hardware  Wizard to update your software drivers (Windows XP only).
    5 Follow the instructions for any other wizards that appear.
    6 Check for updated Boot Camp drivers by using Apple Software Update or going to www.apple.com/support/bootcamp.
      If You Have Problems Installing the Device Drivers 
    If it appears that the Boot Camp drivers weren’t successfully installed, try repairing them.
    To repair Boot Camp drivers:
    1 Start up your computer in Windows.
    2 Insert your Mac OS X installation disc.
    3 If the installer doesn’t start automatically, browse the disc using Windows Explorerand double-click the setup.exe file in the Boot Camp directory.
    4 Click Repair and follow the onscreen instructions.
    If a message appears that says the software you’re installing has not passed Windows  Logo testing, click Continue Anyway. 
    If you need to reinstall specific drivers, you can install one driver at a time. For example,if your built-in iSight camera isn’t working, you can reinstall just the iSight driver.
    Individual drivers are in the Drivers folder on the Mac OS X installation disc.

  • Finding the path with the help of TCode only

    Hi Experts,
    I have a doubt containing that with the help of Transaction code can i find the Path,
    but not the way of "SEARCH_SAP_MENU", this method i know, it applicable only for Easy access only.
    But i cannot able to find the "SPRO / IMG" path.
    Please update with solution
    Regards
    Ravli Kumar .U

    Hi Ravi,
    I am not aware of some direct solution like Search_SAP_Menu for SPRO but here are the alternatives..
    1. Cntrl F in SPRO with some key search words.
    2. Go to that T-code, press F1 and click on customizing from there.
    Regards,
    SAPFICO

  • COST CENTRE EXPENSES WITH THE HELP OF COSP

    hi all,
        i have to make a report on cost centre expenses with the help table COSP.I have to put cost centre  from OBJNR in which last five haraters are cost centre and period like month  and year.After that in report display i want KSTAR i.e. in down the line and cost centres of selection in vertical it may increase or decrease depending on selection.After that i have to add all the WTG001-WTG016.if in seletion period is 1 to 2 then i have to add WTG001 and WTG002 in corresponding in KSTAR and so on in desired cost centre column below that facing respective KSTAR.If anyone can send any report relating that i will be thankful.
    Regards,
    Praveen

    Answered

Maybe you are looking for

  • Safari 2.0.4 problems after sleep

    I've searched a bit for problems with Safari 2.0.4 after sleep and can't find much that relates to my specific problems so I'll ask for your help. On my Powerbook G4 15" when Safari is running and it goes into sleep mode I get the following problems:

  • JDO: Query returns too many results.

    Hello, I want to get some DO-Entities from an empty table. When I execute the query I retrieve more than 2 000 000 000 results what is definitly too much for an empty table. The DO has an one-to-many relationship to another class and a many-to-one re

  • Can CSD be configured on a portal by portal basis?

    I have the need to use CSD on one SSL-VPN portal, but not another. It apprears to me that CSD is a global setting for the appliance. Am I missing something or is this a feature available in more recent code. Currently we are running: ASA 8.0(3) ASDM

  • Getting space at the bottom in the pdf output

    I'm designing a pre-printed Invoice report using BI Pub. The template is in word and when I take pdf output I get space at the bottom, even though there is no space at the bottom in template(rtf). The template fits propely in pre-printed paper, but w

  • Firefox scroll-down button out of view

    Good evening, I've been so used to using my trackpad to scroll down when i'm on the internet that today when I looked at the bottom right corner of my browser, I was surprised to find that my scroll-down button was missing. I don't think it's really