NullPointerException for one element in the Model.

Hello Experts,
I executed an RFC from my WebDynpro project. I believe it gets the correct values in the model, but when I try to bind the node to a screen element, the exception occurs.
The node in question is of the type BigDecimal. I'm not sure if this is the cause but when I try to display other nodes from the same level in the node hierarchy, it displays the String nodes correctly.
Here is the exception I got:
java.lang.NullPointerException
    at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValueAsBigDecimal(JcoBaseTypeData.java:648)
    at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getAttributeValueAsBigDecimal(DynamicRFCModelClass.java:259)
    at com.kaisa.mwci.models.getnetworks.Zps_Fm_Get_Network_Num_Output.getEx_Plcstt(Zps_Fm_Get_Network_Num_Output.java:179)
    at com.kaisa.mwci.wd.wdp.IPublicMainComp$INetworksElement.wdGetObject(IPublicMainComp.java:1156)
    at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdGetObject(MappedNodeElement.java:351)
Thanks in advance. The members of this forum has always been helpful.
Cheers,
Alfonso

Hi
Problem is due to BigDecimal Field of return by rfc Before binding this field to UI element do the proper conversion , Because this field work fine ABAP but have problem in java , I ll suggest to avoid direct binding of the ui element from model node create separate  Value node for this.
String str1 = "456.42";
        String str2 = "-356.32";
        // To convert s String to a BigDecimal
        BigDecimal bigDecimal1 = new BigDecimal(str1);
        // To convert s String to a BigDecimal
        BigDecimal bigDecimal2 = new BigDecimal(str2);
Best Regards
Satish Kumar

Similar Messages

  • HT3702 why did i get charged three times for the same purchase? is it because i use my apple id on three devices.. two iphones, and ipad... and and macbook geez apple i support you enough can i just pay for one copy of the audiobook

    why did i get charged three times for the same purchase? is it because i use my apple id on three devices.. two iphones, and ipad... and and macbook geez apple i support you enough can i just pay for one copy of the audiobook

    These are user-to-user forums, you are not talking to Apple here.
    If it was an audiobook then they are one-time only downloads, to get it on your other devices you need to sync it to them and not re-download it oneach. You can try contacting iTunes support and see if they will refund or credit you for the second and third downloads : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How can I create an element in the model node?

    Hi, Experts,
    I create a model node that name is containerNode in the contxt. Cadinility is: 1..n
    I write the code in the method:
      private String getDataForOutputTable( IWDNode wageTypePayslip, IWDNode containerNode ){
           String betrgSumStr = "";
         int index = 0;
         Vector containerVector = new Vector();
         int size = wageTypePayslip.size();
         IWDNodeElement element = containerNode.createElement();// The system report error when I run the application.
         BigDecimal betrgSum = new BigDecimal( 0 );
    I try to create a element in the containerNode, But the system report error when I run the application.
    java.lang.IllegalArgumentException: model object must not be null
         at com.sap.tc.webdynpro.progmodel.context.ModelNodeElement.<init>(ModelNodeElement.java:66)
         at besuretech.com.wdp.IPrivatePayDataDispView$IOContainerElement.<init>(IPrivatePayDataDispView.java:1537)
         at besuretech.com.wdp.IPrivatePayDataDispView$IContextNode.doCreateElement(IPrivatePayDataDispView.java:88)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.createElement(NodeInfo.java:884)
         at com.sap.tc.webdynpro.progmodel.context.Node.createElementInternal(Node.java:1351)
         at com.sap.tc.webdynpro.progmodel.context.Node.createElement(Node.java:1370)
         at besuretech.com.PayDataDispView.getDataForOutputTable(PayDataDispView.java:251)
         at besuretech.com.PayDataDispView.getAllData(PayDataDispView.java:196)
         at besuretech.com.PayDataDispView.onPlugPayListViewIn(PayDataDispView.java:154)
         at besuretech.com.wdp.InternalPayDataDispView.wdInvokeEventHandler(InternalPayDataDispView.java:391)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
    How can I create an element in the model node ?
    Best regards,
    tao

    Hi,
    You need to execute the model before creating the element.
    Regards
    Ayyapparaj

  • To enter two VAT numbers for one vendor in the same country

    Hello All,
    When we try to enter two VAT numbers for one vendor in the master record and belongs to the same country, the system is not allowing and gives the following message,
    "VAT reg.no. already exists for country BE"
    Message no. F2140
    Kkindly let me know the way to proceed further.
    Many thanks in advance.

    Hello,
    Go to OBA5 and switch off the message for online and batch entries.
    If the message is already not there in OBA5,
    Then go to OBMSG and switch off the same.
    Application Area F2
    Message No.140
    Regards,
    Ravi

  • To set a dropdown list for one column in the excel file before downloading

    Hi all,
    I am downloading an excel file which has the format of an internal table with a number of fields. I want to set a dropdown list for one column in the excel file. How can i do this?
    Thanks

    HI ,
    U can use function module " QINT_GET_EXCEL_DATA " ....
    and modify the excel sheet based on ur requirement ......
    Try this ...
    Hope it works
    Thanks
    Shambhu

  • I downloaded the new upgrade for Premier Elements 13 the other day, and now my program will hardly operate and will not do basic functions.  What can I do?

    I downloaded the new upgrade for Premier Elements 13 the other day, and every since then my program will hardly operate and cannot do most functions.  What can I do?

    Bill
    I went to the Premiere Elements 13 tryout page at the Adobe web site and downloaded the tryout. I used the Firefox browser (latest version).
    These are the details according to what was presented to me today
    1. In choice of download, I selected Multiple LanguagesIWindows 64 bitI 1.67 GB. I do not have a Windows 7 or 8 32 bit computer.
    In your case, you would expect that you used used Multiple LanguagesIWindows 1.50 GB (which would have been the 32 bit version
    in agreement with your Windows 7 or 8 32 bit computer.
    2. When I pressed the Download button, there appeared
    Akamai Download Manager
    Browse For Folder dialog - (where I designated Desktop as my save location for the saved file/folders from the download)
    3. The first file to download was the .7z which is named Premiereelements 13_LS26_win64.7z (in my case, in yours it should be ...._win32.7x)
    File 1 of 2.
    The second file to download was the .exe which is named PremiereElements 13_LS26_win64.exe (in my case, in yours it should be..._win32.exe)
    4. When "3" is finished, automatically the Install Now comes up with a dialog regarding the .exe with an Open button. Click on the Open button.
    5. Next there is a Folder Location dialog which I had set
    C:\Uses\Owner\Desktop\Adobe Premiere Elements 13
    I clicked next in this Folder Location dialog.
    6. Next there was an Adobe Premiee Elements 13 dialog "Preparing Files" with mention of "Extracting Files".
    When the extraction process was complete, there was the automatic appearance of the Files Are Ready with a check mark next to
    "Launch Adobe Premiere Elements 13. There I clicked the Finished button.
    7. Next up was the Adobe Installer dialog and the "Initializing Installer" message.
    8. Next came the Welcome dialog with choices of Install or Try. I selected Try.
    If you have a purchased serial number already, I assume that you can click install and use your purchased serial number.
    9. Next came the sign In Required dialog where I click the Sign In button.
    10. Next the Adobe Software License Agreement to which I clicked Accept.
    11. Next the Options dialog -
    Adobe Premiere Elements 13 4.1 GB
    Language English (North America)
    Location C:\Program Files\Adobe
    to all of 11 I clicked Install.
    and said Yes to User Account Control pop up.
    12. Automatic Install from there on.
    When I looked at my desktop I found saved there
    a. the .exe file
    b. the .7x file
    c. an Adobe Premiere Elements 13 Folder
    any of which I believe I could have installed from as I have described to you previously.
    If you cannot get the above to work, then you can try going through the process of getting the Adobe Premiere Elements 13 tryout
    from
    Adobe Photoshop Elements 13 Direct Download Links, Premiere too | ProDesignTools
    There you will end up with the .exe and .7z downloads. After you download and save these two to your desktop, then you begin the
    process by double clicking the exe and following the on screen instructions.
    Please review the above and determine how much of it you have been through before and the choices that you have made along the way.
    ATR

  • HT1222 Peace, I am one of millions who is loyal and loves apple, I was not completely happy with iOS7 for one thing which the new themes and I really think that the old icons theme is what's makes it unique, I was wondering if we can make an option  to ch

    Peace, I am one of millions who is loyal and loves apple, I was not completely happy with iOS7 for one thing which the new themes and I really think that the old icons theme is what's makes it unique, I was wondering if we can make an option  to choose from new and previous once?

    User to user forum.
    You are not addressing Apple here.
    No, once you install iOS 7 that is it.

  • Satego X200 hangs about for one second if the fan changes the speed

    Hello people,
    my laptop hangs about for one second if the fan changes his speed. This does not happen so often and only since a short time.
    Excuses me for my English.
    Thank you in advance

    First thank you for your responses.
    Yes, notebook hangs for 1-3 seconds. I notice this because the mouse pointer does not move in this time. And if I hear music, only monotonous sound comes out. If the processor is busy, something like that does not happen. Only if he is idle. It is astonishing that notebook hangs if the fan goes on. I cannot ascertain, with the turning on which fan this passes.
    http://img119.imageshack.us/img119/504/p1050001wf6.jpg
    Is this CPU fan or graphics card fan?
    Yours sincerely

  • I have described for one year, but the Cloud storage still 2 Gb. Why I have not got 20 Gb?

    I have described for one year, but the Cloud storage still 2 Gb. Why I have not got 20 Gb?

    You have the Creative Cloud Photography plan Student and Teacher Edition (one-year), the storage space is 2GB for this CCPP.
    Are you facing any issue in installing this., please let us know.
    Regards
    Rajshree

  • Use two different paragraph formats for one element

    Hi,
    I think this is really simple, but I don't get it.
    I have an element with the name "Step" and I have two paragraph formats for this element. Both for numbering.  I use one of these formats to set the numbering back to one, so I can  start with number 1 anywhere I want, so I think there is noch real  context rule for this case. How do I declare this in my EDD? Is it possible to say my EDD that it is possible to use both.
    Thanks.

    Dokuteam,
    In most cases I have seen context rules using the sibling indicator { first } to handle the start of numbering.
    If you want to be able to control restarting of the numbering anywhere, you can add an attribute to the element, like restart = yes | no with "no" being the default value. Then  your context rule would use an attribute indicator similar to
    If [restart = "yes"]
      use PgfFmt1
    Else
      use PgfFmt2
    - Michael

  • After updating to the latest version, I'm able to open and use the browser for one day. The next day, the browser doesn't not open up. please help!!!

    -reformatted computer, reinstalled everything
    -downloaded the newest version of mozilla
    -happily went online for one day
    -next day, browser does not load
    -later the next day, browser doesn't even open up
    -now when i go to open mozilla, something like this shows up:
    "server busy, taking too long...if your firewall is on make sure mozilla is allowed to browse...adjust proxy settings blah blah...

    HI Juanverano,
    Not a problem, Safe Mode will disable addons and hardware acceleration. If this continues and it is not an add on this will be the next step to try to disable acceleration:
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    #Open Firefox ''Options'' window (''Preferences'' on Mac or Linux) as follows:
    #* In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]] and select ''Options'' for Windows or ''Preferences'' on Mac or Linux.
    #* In Firefox 28.0 and previous versions, click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    #In the Firefox Options (or Preferences) window, click the ''Advanced'' tab, then select ''General''.
    #In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    #Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • How do I add multiple emails for one contact to the same group list?

    When trying to set up a group email list using address book, is there a way to include multiple emails for the same contact to one group.  For example I'm trying to set up a baseball team group email.  Some kids want emails sent to both mom and dad which have different emails.  I currently have them in my address book as the boy's name with the emails listed as mom and dad.  I can add one "mom" to the list but when I compose the email, it will use the most recent email used.  I would like the group to contain both addresses for mom and dad without setting up to different contacts for the same player.

    var cToAddr = this.getField("saManager").value + ";" + this.getField("ManagerEmail").value;

  • ALV grid display the subtotal not getting for one column at the output

    Hi,
    I am working one report ALV grid display and subtotal is not getting for one paricular coulumn.
    Eventhough that column has some values.
    So can anyone give the proper solution.
    Waiting quick response.
    Best Regards,
    Bansi

    Hi
    see this link .
    https://wiki.sdn.sap.com/wiki/display/ABAP/SUBTOTALinALV
    or try this program.
    REPORT zalv.
    DATA:
    t_sflight TYPE TABLE OF sflight,
    fs_sflight TYPE sflight.
    DATA:
    r_container TYPE REF TO cl_gui_custom_container,
    r_grid TYPE REF TO cl_gui_alv_grid.
    *FIELD CATALOG
    DATA:
    t_fcat TYPE lvc_t_fcat,
    fs_fcat TYPE lvc_s_fcat.
    *SORTING THE BASIC LIST
    DATA:
    t_sort TYPE lvc_t_sort,
    fs_sort TYPE lvc_s_sort.
    fs_fcat-fieldname = 'PRICE'.
    fs_fcat-do_sum = 'X'.
    APPEND fs_fcat TO t_fcat.
    fs_sort-spos ='1'.
    fs_sort-fieldname = 'CARRID'.
    fs_sort-down = 'X'.
    fs_sort-group = '*'.
    fs_sort-subtot = 'X'.
    APPEND fs_sort TO t_sort.
    SELECT * FROM sflight INTO TABLE t_sflight.
    CALL SCREEN 100.
    *& Module STATUS_0100 OUTPUT
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'SCREEN1'.
    SET TITLEBAR 'TITLE1'.ENDMODULE. " STATUS_0100 OUTPUT
    *& Module USER_COMMAND_0100 INPUT
    MODULE user_command_0100 INPUT.
    CASE sy-ucomm.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    **& Module HANDLER OUTPUT
    MODULE list OUTPUT.
    CREATE OBJECT r_container
    EXPORTING
    container_name = 'CONTAINER'.
    CREATE OBJECT r_grid
    EXPORTING
    i_parent = r_container.
    CALL METHOD r_grid->set_table_for_first_display
    EXPORTING
    i_structure_name = 'SFLIGHT'
    CHANGING
    it_fieldcatalog = t_fcat
    it_outtab = t_sflight
    it_sort = t_sort.
    ENDMODULE. "list OUTPUT
    Regards
    Hareesh Menon

  • Language properties re ISO codes for ones not in the drop-down

    Here's an easy one- When defining the language in Properties/Advanced and the language you want is not available, do you type in the language NAME (Vietnamese, for example) or ISO code (which is, I believe "vie")?
    thanks,
    Chris

    ISO code, according to the W3C Working Group Note PDF16 (http://www.w3.org/TR/WCAG20-TECHS/PDF16.html):
    "Acrobat includes 16 preset language selections. If you need to specify a language that is not on the list, such as Russian, you must type the ISO 639 code for the language, not its name."
    I'm not sure what version of Acrobat the W3C was using at the time. There are more than 16 languages listed in v. 10, incuding Russian, but I am pretty confident "the ISO 639 code for the language, not its name" still applies.

  • When I Buy Something,all songs disapear except for ones bought in the store

    I Used to have two-hundred songs on my Video iPod, including ones from CD's. When I bought a new song all of my songs, except for ones that I have bought on itunes, disappeared. Now I Have 10 Songs...Is there ne way to know whats wrong...and to fix it?
    I also bought an audiobook. The Money was taken from my account and the book was never downlaoded. Is there any way to retrieve that?
    When i got a new iPod...a nano. i accidently didnt choose the option to have more than one iPod sync to this computer. So now both of my iPods are messed up.
    Last problem, I have about 10 tv shows, and only two of them sync to my ipod.

    How long since the purchase? It can take a while for the card to be debited.

Maybe you are looking for

  • Ipod Nano skipping songs... IPod or ITunes issue?

    I purchased an IPod Nano and signed up for ITunes. I purchased a CD from ITunes and synced it with my IPod. That worked fine except for one huge issue - the IPod skips right over 5 out of the 12 songs on the CD! The songs play fine through my compute

  • SB Audigy 2 ZS Platinum Pro - No Line In

    Hi there, I have the above card - all was working fine, had my line in's that i wanted - but i formatted my machine and put the latest driver on from this site (SBAX_WEBUP_LB_2_08_0004.EXE), no joy - only have the following under recording: - MIDI Sy

  • Questions About Database Recovery (-30975)

    Hello, In Berkeley 4.5.20, we are seeing the following error sporadically, but more frequently than we'd like (which is, to say, not at all): "BerkeleyDbErrno=-30975 - DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery" This exception is

  • Freeze at Toshiba logo screen on M35X-S149

    My friend's Toshiba M35X-S149 was working just fine until Today. When it's powered up, it comes up to the Toshiba logo screen with "Press [F2] for SETUP, Press [F12] for boot device selection menu" on the left status bar and "phoenix" at the right of

  • Unable to load flash-based website in any browser

    I'm on Windows XP SP2 with the latest flashplayer installed (9,0,47,0). For some reason I can no longer get beatport.com to load in any web browser on my computer, i.e. Firefox, IE, or even Netscape. The website partially loads, leaving me with just