LCDS Java Long to Flex Number conversion issue

Hi,
I am having a userVO in Java and Flex. userId attribute of userVO is of type Long in Java class and Number in AS class. The Long attribute userId "10001256" in the Java userVO gets converted to an exponentinal value for e.g 1.0001196E7 by LCDS.
I want the userId to be represented as "10001256" in the Flex side instead of an exponential value. Is there something i am doing wrong?
Thanks in Advance

Currently, I am storing it as follows:
long my_number = callableStatement.getInt(1);While reading the docs, you should probably also read about getInt(), because your current code is buggy.

Similar Messages

  • Number conversion issue

    Hi all.
    I have the following code with me:
    data:w_s1 type c,
            w_q1_act_rec1(14) type c,
            W_q LIKE EKPO-MENGE.
    w_s1 = '-'.
    w_q = '52352.900'.
    write w_q to w_q1
    concatenate  w_s1 w_q1 into W_Q1.
    condense W_Q1.
    W_Q = W_Q1.
    when i execute the above code I get the following short dump:
    The program attempted to interpret the value "- 52,352.900 " as a number, but
    since the value contravenes the rules for correct number formats,
    this was not possible.
    the program is giving me a dump when I am insertinf w_Q1's value to W_Q.
    As far as I know W_Q should hold -ve sign.

    Hi rajatg,
    you can achieve your desired result just with the following, you don't need the concatenation for the sign.
    data: W_q LIKE EKPO-MENGE.
    w_q = '52352.900'.
    w_q = - w_q.
    Edited by: gzervas on Dec 13, 2010 4:33 PM

  • Java objects to Flex

    Hopefully this is the right forum, if not pleas accept my
    apologies.
    We need to return dollars and percent type numbers from java
    back to Flex using the BlazeDS interface.
    When I create a Java test object to return that looks like:
    public class Test2 implements Serializable{
    private String abc = "abc";
    private Date sqlDate;
    private Time sqlTime;
    private Timestamp timestamp;
    private BigDecimal bd;
    private float lFloat;
    private Float bFloat;
    private double lDouble;
    private Double bDouble;
    The constructor fills in values and the java server (JBoss)
    returns the object back to Flex. The matching flex object looks
    like:
    [Bindable]
    public class Test2
    public var abc:String;
    public var sqlDate:Date;
    public var sqlTime:Date;
    public var timestamp:Date;
    public var bd:Number;
    public var lFloat:Number;
    public var bFloat:Number;
    public var lDouble:Number;
    public var bDouble:Number;
    } /* Test2*/
    when I print out the returned object using the trace command,
    I get:
    ReferenceError: Error #1056: Cannot create property BFloat on
    jdbcTables.businessdelegate.Test2.
    ReferenceError: Error #1056: Cannot create property LFloat on
    jdbcTables.businessdelegate.Test2.
    ReferenceError: Error #1056: Cannot create property LDouble
    on jdbcTables.businessdelegate.Test2.
    t2.bd=3.03
    t2.lFloat=NaN
    t2.bFloat=NaN
    t2.lDouble=NaN
    t2.bDouble=NaN
    If I read
    http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDo cs_Parts&file=00001103.html
    correctly these fields should be converted properly.
    Am I missing something or is the web page wrong? Is there
    another kind of Java object can I use to return a floating point
    number, I really don't like BigDecimal, it's sooo expensive.
    Thanks
    Bill Tims

    Ok, I figured out THIS problem. The real issue is the
    capitalization of the name. If I use an upper case character as the
    2nd character, blaze and flex don't see that they are variable,
    i.e. aBcd as a variable name doesn't work, whereas abcd does work.
    Since this problem doesn't appear on the PHP side, I'm guessing the
    problem is on the Blaze side.

  • A number of issues with my Xperia Z1

    I have had my Xperia Z1 since around November 2013.
    I have been having a few issues with it. After calling my service provider they suggested I do a factory reset.
    That's where my first problem comes in. I have tried a number of times to back up my phone onto my computer using Sony Companion. It runs smoothly for about 90% of the process and then at the last stretch it will go from
    '30 minutes remianing' to '8 hours remaining' and the more time passes, the longer the back up says it will take.
    With that being said, I haven't been able to successfully back up my phone so I can reset it.
    Issue #2: My phone will sometimes just say it has no service. It bounces from having 5 full bars to zero, and then drops my calls. I called my service provider, they said it's a problem with the phone.
    Issue #3: When using the stock SMS app, all my texts (no matter what device I send to) my texts are sent doubled or tripled. On my actual screen is doesn't appear this way, but people complain all my texts are doubled.
    So I started using Google Hangouts, and that isn't working well either. All the texts are out of line. I'll get texts from over a month ago pop up in my notification and it disappears. Sender/receiever texts don't align and it gets confusing when my messages are delayed, even though it says it's been sent/receieved on time.
    Issue #4: The only way to correct my SMS issues is by restarting my phone. Which I sadly do about 10 times daily.
    When using the stock SMS app, it often crashed (it is now disabled). Same thing now with Hangouts. It will crash and not let me re open unless I power off/on. 
    I am not sure if this is where I should be posting about the number of issues I am having.
    Will my backup actually take 8+ hours (and to clarify, I disable backing up pictures/videos/music to save space).
    I put my phone in Airplane mode and leave it idle and it still says it will take all day to back up.
    Any help or suggestions is greatly appreciated. 

    Have you tried starting the phone in safe mode,see if there is any app acting up messing around with your phone?A backup should not take that long,but if you do have a lot of media,it is better to copy it directly to your pc and backup only small packs of data(messages,contacts,settings etc).I suggest using myphone explorer for messages and contacts.
    To start your phone in safe mode:
    http://talk.sonymobile.com/t5/FAQ/How-to-boot-your-phone-into-safe-mode/m-p/348008#U348008
    All we have to decide is what to do with the time that is given to us - J.R.R. Tolkien

  • PL/SQL: numeric or value error: character to number conversion error in TRG

    Hi,
    I've got strange issue with one trigger which during update of table reports (DB is 9.2.0.8):
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at "UDR_LOG", line 345
    ORA-04088: error during execution of trigger 'UDR_LOG'but line 345 is:
    END IF;
    so its kind of strange
    the code looks like
    343 IF nvl(to_char(:old.PKD_ID),'''') <> nvl(to_char(:new.PKD_ID),'''') THEN
    344     v_zmn := v_zmn || 'PKD_ID''' || to_char(:old.PKD_ID) || '''' || to_char(:new.PKD_ID) || '''';
    345    END IF;
    so its concatenation not to_number usage .error is triggered by update statement on any column .
    I'm sorry I cant provide You with whole trigger code .
    So if You could only recommend any investigation method that would be great .
    Regards
    Greg

    Hi, Greg,
    When there's an error in a trigger, the line numbers in the error messages are relative to the first DECLARE or BEGIN statement; often, that's a few lines after CREATE OR REPLACE TRIGGER. Post a few lines after what you already posted.
    If you can't find the error, then create another table for testing this, and create a smaller trigger on that table, which does only enough to cause the error. Then you'll be able to post the complete trigger, and the code needed to re-create the problem.

  • 10.8.4 and extended keyboard number pad issues

    To anyone that has heard of this before. I've checked about every discussion here and I don't know that this issue has been resolved. I recently upgraded to 10.4.8 as most here have done. The odd and annoying thing thats happened now is that my apple wireless keyboard's number pad no longer works; The number 5 key seams to have become related to a left click on the mouse wherever the curser is on the screen, but no other keys work. This problem has also crippled any web browser I use such as Safari or Firefox; meaning that if I attempt to use the number pad in a login field, the mouse can no longer select or move open windows.
    My one remedy to all of this has been to open the Force Quit Applications menu and all is well with the mouse again. One last point I can make is that by creating a new user account, all my keyboard and mouse problems go away, and everything acts as it should. I just don't want to have to back up everything and reinstall the system. So my mac faithful friends, please help.
    2GHz iMac G5   Mac OS X (10.4.8)   2 GB DDR SDRAM

    I found the answer!!!!!
    I was looking in universal access under the mouse settings and noticed something called mouse keys. Some how I turned that option on and it turned the number pad into a way of moving the curser multiple directions with the ability to select items by pressing the #5 key. I hope this may help others, I've been stuck with this one for a few days.

  • How long does the number porting process take?

    Hello Everybody! I just got my iphone (witch I LOVE it by the way) but I was wondering, how long does the number porting process take?
    I ported my phone number over from SprintPCS last night at around 7pm EST and right now it's 8am EST and my Palm seems to still be working... Is this normal?
    I'm still receiving incoming calls to my Palm, Text messages to my Palm, but yet I can do outgoing calls from my iphone... I'm kinda confused...
    I mean I received the text on my iphone from sprint telling me: "Welcome to AT&T" as well as receiving the e-mail saying my new phone number is the same one I've had for 6 years now... Is 13 hours considered normal?
    Thanx! :-D

    QueenYvette,
    If it continues to be an issue tomorrow, I would recomend calling again, and getting in contact with AT&T's porting department. They are familiar with resolving any issues that may arise.
    Powering off both phones is to make sure that the old phone is not maintaining an active connection with the old carrier that can interfere with the last steps of the porting process. If at all possible its a good idea to leave the old phone powered off, and restart the new phone about once an hour so that it will resync with the towers.
    Hope this helps,
    Nathan C.

  • ORACLE8I - LONG TYPE을 LOB TYPE으로 CONVERSION하는 방법(TO_LOB)

    제품 : ORACLE SERVER
    작성날짜 : 2002-04-12
    ORACLE8I - LONG TYPE을 LOB TYPE으로 CONVERSION하는 방법(TO_LOB)
    ===============================================================
    Purpose
    Long type의 data를 lob type으로 conversion하는 to_lob function에 대해
    알아보자.
    Explanation
    Oracle8 부터 long 이나 long raw type과는 별도로 lob type이 추가되었다.
    long 이나 long raw type을 clob 또는 blob type으로 변경하기 위해서는
    Oracle8 에서는 데이타를 다시 입력해야 했지만, Oracle8i 에서는 추가된
    TO_LOB function을 이용하여 간단히 data migration을 할 수 있다.
    TO_LOB function은 보통 create table .. as select .. 문장이나
    insert into .. select .. 문장에서 쉽게 사용할 수 있다.
    Example
    [예제1] long type의 데이타를 clob type으로 옮기는 방법
    아래의 예제에서 type만 long raw와 blob 로 바꾸어도 가능하다.
    SQL> create table long_data (c1 number, c2 long);
    Table created.
    SQL> desc long_data
    Name Null? Type
    C1 NUMBER
    C2 LONG
    SQL> insert into long_data values
    2 (1, 'This is some long data to be migrated to a CLOB');
    1 row created.
    SQL> create table test_lobs
    2 (c1 number, c2 clob);
    Table created.
    SQL> desc test_lobs
    Name Null? Type
    C1 NUMBER
    C2 CLOB
    SQL> insert into test_lobs
    2 select c1, to_lob(c2) from long_data;
    1 row created.
    SQL> select c2 from test_lobs;
    C2
    This is some long data to be migrated to a CLOB
    [예제2] long type을 clob type으로 바꾸어 table 생성하는 방법
    SQL> create table clob_data
    2 as select c1, to_lob(c2) c2 from long_data;
    Table created.
    SQL> desc clob_data
    Name Null? Type
    C1 NUMBER
    C2 CLOB
    [예제3] long raw type을 blob type으로 바꾸어 table 생성하는 방법
    SQL> desc image_data
    Name Null? Type
    C1 NUMBER
    C2 LONG RAW
    SQL> create table blob_data
    2 as select c1, to_lob(c2) c2 from image_data;
    Table created.
    SQL> desc blob_data
    Name Null? Type
    C1 NUMBER
    C2 BLOB

    You may not insert LONGs into a table that are selected from a remote database. You can simply SELECT LONGs across a DB link, but you just can't INSERT... SELECT them.
    Greg Pike
    http://www.singlequery.com

  • Change Java Swing to Flex?

    Hi,
    I am new to Flex. I need to know whether i can change my Java Swing to Flex( Redo in Flex) and use it as before
    The Solaris machine acts as Server and the server side code is in Java
    The Windows machine acts as Client and the client side code is in Java Swing.
    The Communication between the Server and the Client is through CORBA - Middle Level language.
    I need to change my Client Side programming from Java Swing to Adobe Flex.
    Is it possible to do that?
    I should not disturb my Server Side Code and the MiddleLevel(CORBA) part.But only redesigning the complete client side to FLEX.
    Can anyone guide me on this? I am new to Flex and i am trying to understand whether this will be possible for me to change to Flex.
    If we can do it, then how do i start.Please guide on the doc/tutorial to start with.
    Thanks in advance
    Regards
    S.

    I'm not familar with Corba and have not read about any kind of direct integration of it with Flex. The core design allows Flex to work with the array of standard services (HTTP, REST, SOAP, etc.). There is also the JavaScript ExternalInterace to consider if a JS solution exists. You may also want to look into the BlazeDS project which is a component of the Spring Framework designed to tie Java and Flex together in a number of fun ways.

  • Java.sql.SQLException: invalid number of in_out_binds in IOV

    We're upgrading our platform from WL 4.51 SP14 to WL 6.0 SP2., Sun Solaris 2.6
    and JDK 1.3.1.
    We use oracle thin driver 8.1.6 (Type 4) for connecting to ORACLE database. We're
    encountering the following error message while executing a stored procedure. This
    error occurs very intermittently. I've looked at one of the news group threads
    and I've noticed that someone referring to patch CR04274_60.jar which had addressed
    this kind of a problem. Pl let advise us if that is correct or not. If true, pl
    let's know how we can get hold of this patch.
    ===================================================
    java.sql.SQLException: invalid number of in_out_binds in IOV
    ====================================================
    Thanks
    Ravi Garikipati

    You are hitting a bug 11672797 (more detail: http://java.net/jira/browse/ADFEMG-83).
    As a workaround you have to change the data type to oracle.jbo.domain.Number in your EO or VO if they VO is not based on a EO.
    Timo

  • HT3529 I am currently deployed and was using my iMessage to be able to talk to family back in the states and my iMessage stopped working. It will no longer select my number to use as the send/receive. How do I fix this so I can continue to talk to family?

    I am currently deployed and was using my iMessage to be able to talk to family back in the states and my iMessage stopped working. It will no longer select my number to use as the send/receive. How do I fix this so I can continue to talk to family?

    Read here:
    http://support.apple.com/kb/TS2755

  • FM for Material number conversion from R/3 to APO in R/3

    Hi,
       Can anybody tell me conversion exit (function module) for Material number conversion from R/3 to APO in R/3 system. I mean i have 18 digit R/3 material number which i have to convert to 40 digit APO material number in R/3 system.
    Please suggest to win full points.
    Thaniks in Advance,
    Chandan Dubey

    Dear Chandan,
    Conversion Exits:
    CONVERSION_EXIT_MATN1_INPUT ....... If you are storing Material With Zeros
    Then concatenate it with 22 zeros. i.e. '0000000000000000000000000000'.
    For example:
    data : v_matnr type matnr,            "R/3 Material
           v_apo_matnr(40) type c,        "APO Material with 40 length
           v_zeros(22) type c. value '0000000000000000000000000000'.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
           EXPORTING  INPUT          = v_matnr
           IMPORTING  OUTPUT         = v_matnr.
    concatenate e_mantr v_zeros into
                v_apo_matnr.
    Regards,
    Naveen.

  • Conversion issue in encoding in PI

    Hi,
      I am having a problem in conversion issue for encoding. Let's have a detailed look into the scenario first.
    Scenario: SNC->PI (through Proxy)->MQ (through Receiver JMS adapter)->SeeBeyond (It's a middleware system).
                   Here from SNC, data are coming into PI as in UTF-8 encoding, whereas all the systems shown in the above flow are of ISO 8859_1 format. Hence UTF-8 needs to be converted into ISO 8859_1. PI does this conversion in Receiver JMS adapter. CCSID has been set to 00819 which is for ISO 8859_1 encoding. But the beginning of the xml, it remains still UTF-8, like below:-
      <?xml version="1.0" encoding="utf-8" ?>
    Whereas the content of the xml has already been converted into ISO 8859_1 by Receiver JMS adapter. Now let's see the problem now.
    Problem: After the data been passed in SeeBeyond, the mapping fails in SeeBeyond, since SeeBeyond tries to look at the XML tag from the beginning and it found it's in UTF-8 as per he tag above. Then it tries to map it in UTF-8 format whereas the content is in ISO 8859_1, so mapping fails in SeeBeyond. Please note, here allthe systems except SeeBeyond are just bypassing the data, no mapping been introduced in anywhere in the systems except SeeBeyond.
    Workaround: Is there any other chance where we can change the tag header from UTF-8 to ISO 8859_1 in Receiver JMS adapter itself in PI like this:-
    <?xml version="1.0" encoding="iso 8859_1" ?>
    This might resolve our problem I think. Any suggestions would be appreciated.
    Thanks and Regards
    Soumya

    Hi Stefan,
                Thanks for your reply. I have gone through the link you have specified. Ya, that's the other way to resolve that issue in that case. But here we have asked the receiver system (SeeBeyond) to change the encoding part in their mapping. Because changing the coding part in SeeBeyond is less time consuming than adding a new Bean in JMS adapter. Our problem got resolved by changing the mapping in Receiver end. Thanks anyway for your valuable reply.
    Thanks
    Soumya

  • Umlaut Conversion issue in Sender communication channel SAP PI

    Hi Gurus,
    We are facing issue while conversion.
    umlaut Conversion issue in Sender communication channel that is reason channel not able to pic the file from the path.
    Sender CC error:
    Value of incoming field is too large. Segment:'IMD', Field:'7008', MaxLength:'35', value:'Plssvvkbecher Lübzer 0,4 (1280Stk p' DESCRIPTION: The length of the field value is too big !
    Actually field contains 35 Chars only the value is  : 'Plssvvkbecher Lübzer 0,4 (1280Stk p'
    We tried with “ISO-8859-1” if the field value is less than 35 characters it is able to converting.
    Please help me out from this issue.
    Thank you.
    Regards,
    Jittu.

    Hi Jittu,
    Have you tried using the codepageconversion bean in the modules under the sender?  It would be like:
    AF_Modules/TextCodepageConversionBean with a parameter of Conversion.charset and a value of utf-8.
    Regards,
    Ryan Crosby

  • Error ORA-06502, numeric or value error character to number conversion

    I have been trying to create an email including data from a table as part of the body. Whenever I try to send it, I get an error ORA-06502, numeric or value error, character to number conversion. If I take out the part referencing the table, the email will go without error, but if I put it back in I get the error.
    There is the code:
    DECLARE
    v_email_body CLOB;
    v_from_email_address VARCHAR2(100) := v('APP_USER');
    v_id NUMBER;
    BEGIN
    v_email_body := 'Please pay the attached invoice from FY '||:P14_FY||' funds
    Date: '||:P14_PURCHASE_DATE||'
    Vendor: '||:P14_VENDOR||'
    Invoice Number: '||:P14_INVOICE||'
    Invoice Date: '||:P14_INVOICE_DT||'
    Due Date: '||:P14_INVOICE_DUE_DT||'
    KSR Number: '||:P14_KSR||'
    DTS PO: '||:P14_DTS_PO||'
    FINANCE DO: '||:P14_FINANCE_PO||'
    FOR detail IN(SELECT OB_CODE
    FROM BUDGET_USED
    WHERE P_ID = :P14_ID)
    v_email_body := v_email_body||detail.OB_CODE||utl_tcp.crlf;
    LOOP
    FOR detail2 IN (SELECT ob_code, amount
    FROM budget_used
    WHERE p_id = :P14_ID)
    LOOP
    v_email_body := v_email_body||detail2.ELCID||' - '||detail2.AMOUNT||utl_tcp.crlf;
    END LOOP;
    END LOOP;
    v_email_body := v_email_body
    '||:P14_EMAIL_NOTES||'
    Thanks.
    v_id := APEX_MAIL.SEND
    (p_to => :P14_SUBMIT_TO
    ,p_cc => v('APP_USER')
    ,p_bcc => '[email protected]'
    ,p_from => v_from_email_address
    ,p_body => v_email_body
    ,p_subj => 'Invoice, '||:P14_VENDOR||', '||:P14_INVOICE||'');
    --Having set up your email, now add one (or more) attachments...
    FOR c1 in (SELECT FILENAME
    ,BLOB_CONTENT
    ,MIME_TYPE
    FROM file_subjects f, apex_application_files a
    where a.name = f.name
    and f.P_ID = :P14_ID) LOOP
    IF c1.blob_content IS NOT NULL THEN
    APEX_MAIL.ADD_ATTACHMENT( p_mail_id => v_id,
    p_attachment => c1.blob_content,
    p_filename => c1.filename,
    p_mime_type => c1.mime_type);
    END IF;
    END LOOP;
    END;
    Apex_mail.push_queue();
    This is important to my company to be able to put this data into an email. If anyone can help me, I would greatly appreciate it. Thank you in advance.

    Lets isolate the erroring line by running the code in debug mode and adding some debug lines at various stages in the code
    Apex has a builtin function named wwv_flow.debug which can print messages to the debug stack and would be visible when the page is run in debug mode.
    DECLARE
    v_email_body CLOB;
    v_from_email_address VARCHAR2(100) := v('APP_USER');
    v_id NUMBER;
    BEGIN
    wwv_flow.debug('BEGIN');
      v_email_body := 'Please pay the attached invoice from FY '||:P14_FY||' funds
      Date: '||:P14_PURCHASE_DATE||'
      Vendor: '||:P14_VENDOR||'
      Invoice Number: '||:P14_INVOICE||'
      Invoice Date: '||:P14_INVOICE_DT||'
      Due Date: '||:P14_INVOICE_DUE_DT||'
      KSR Number: '||:P14_KSR||'
      DTS PO: '||:P14_DTS_PO||'
      FINANCE DO: '||:P14_FINANCE_PO||'
      '||:P14_EMAIL_NOTES||'
      Thanks.
    wwv_flow.debug('Before sending mail');
      v_id := APEX_MAIL.SEND
      (p_to => :P14_SUBMIT_TO
      ,p_cc => v('APP_USER')
      ,p_bcc => '[email protected]'
      ,p_from => v_from_email_address
      ,p_body => v_email_body
      ,p_subj => 'Invoice, '||:P14_VENDOR||', '||:P14_INVOICE||'');
    wwv_flow.debug('Before attachements');
      --Having set up your email, now add one (or more) attachments...
      FOR c1 in
             (SELECT FILENAME
            ,BLOB_CONTENT
            ,MIME_TYPE
            FROM file_subjects f, apex_application_files a
            where a.name = f.name
            and f.P_ID = :P14_ID)
      LOOP
        IF c1.blob_content IS NOT NULL THEN
        APEX_MAIL.ADD_ATTACHMENT( p_mail_id => v_id,
        p_attachment => c1.blob_content,
        p_filename => c1.filename,
        p_mime_type => c1.mime_type);
        END IF;
      END LOOP;
    wwv_flow.debug('Finished attachements'); 
      Apex_mail.push_queue();
    END;What is the last message you see in the debug after running the page in debug mode and submitting it ?

Maybe you are looking for

  • My ipod touch wont turn on it is stuck on the apple logo

    Hi i was on facebook on my ipod touch and i deleted the app and when i went to open twitter it froze so i restarted holding down the lock and home key and now it won't turn back on its just stuck on the apple logo screen even if i try to reset it aga

  • Possible to keep the 'flash' light on?

    So my BlackBerry Curve 8320 doesn't have the feature to record videos. I've noticed when I have taken pictures, the flash is extremely bright for a phone. I am curious, is there any type of app out there that is able to turn my flash on and to keep i

  • 8900 recurring issue with all buttons

    Hi There, my blackberry curve has stopped working again, this is the third time that the fault has developed and this time it lasted a week, each time the device gets returned I'm assured that the fault has been rectified. So far its had the software

  • Does CUCM 9 come with CUP's 9 free

    Does CUCM 9 come with CUP 9 free ? if so is they any documentation - which says this

  • New SAP BI Strategy Web Page & eBook Launched

    As customers have sought to integrate and develop a more programmatic approach to a BI strategy, SAP has developed a number of best practice assets and thought leadership content to assist them in: Evaluating their current BI maturity Ensuring that t