Long CF to JAVA int conversion error

Hello
I call a java method in my code that expects a parameter of type long (64-bit).
If I pass a large ColdFusion int. (i.e. 10000000000) I get the following error:

Could not convert the value 1.0E10 in full because he cannot hold within an integer.

I understand that the whole CF are 32-bit so I tried to use the javacast as follows:

TestPaymentVO.setTestAmount (javacast ("long", form.testAmt);

but I still get the same error.

Is there a way past this?
Well, any help would be apprecieated.
Thank you.

Well, it seems to me a solution to this...
In Coldfusion, create a java type java.lang.Long object and call its init() method.
Then when you are passing to java call its method. longValue()
For example:


....
PaymentVO.setAmount (amt. longValue());
......

Tags: ColdFusion

Similar Questions

  • Cannot export AAF of Prime Minister... AAF - project conversion error

    Hello

    Export as Adobe AAF first Pro CC 2014 I am facing this error. AAF - Project Conversion error... Cannot be converted to the current project, the converter reported an unspecified error.

    Can anyone help? I take my editing avid composer 8. Also the AAF export takes a long time. Is it possible to get that done faster?

    Thank you

    Jay

    When I tried going back and forth to Avid, I found it was more reliable if I set the sequence in a tray, with a pair of pliers and export the abnormal analysis result of the tray.

    This gave an aaf "bound" (rather than trying to incorporate media) - who did repeat in Avid (with some reservations)

    How to export a sequence as a result of abnormal analysis without support and then link in Avid

  • Problem with string to Int conversion

    Dear friends,

    Problem with string to Int conversion

    I'll have a column where most of the values is digital. Only 4 values are not numeric.

    I have replaced the non-numeric values to numeric in order to maintain the data type.

    Grade.Grade DEAL WHEN "E4" THEN "24' WHEN 'E3' THEN '23' WHEN 'E2' THEN '22' WHEN 'E1' THEN '21' Grade.Grade OTHER END"

    This is the result as inactive

    Grade

    _0_

    _1_

    _10_

    _11_

    _12_

    _13_

    _14_

    15

    _16_

    _17_

    _18_

    _19_

    _2_

    _20_

    _21_

    _22_

    _23_

    _24_

    _3_

    _4_

    _5_

    _6_

    _7_

    _8_

    _9_

    Discount
    -            -            -

    Now I want to convert this value in digital and do some math

    So I changed the formula as below

    Cast (CASE Grade.Grade WHEN "E4" THEN "24' WHEN 'E3' THEN '23' WHEN 'E2' THEN '22' WHEN 'E1' THEN '21' Grade.Grade END as an INT. ELSE")


    Now I get the following error
    View display error
    Driver Odbc _ returned an error (SQLExecDirectW). _
    Error details
    Error codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    _State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 17001] Oracle error code: 1722, message: ORA-01722: invalid number in the OIC calling OCIStmtFetch. [nQSError: 17012] In bulk fetch failed. _ (HY000)
    SQL issued: SELECT cast (CASE Grade.Grade WHEN "E4" THEN "24' WHEN 'E3' THEN '23' WHEN 'E2' THEN '22' WHEN 'E1' THEN '21' Grade.Grade END as an int. ELSE") seen'Human Capital' 0 - Costing Manpower WHERE LENGTH (Grade.Grade CASE WHEN 'E1' THEN '20' WHEN 'E2' THEN '21' WHEN 'E3' THEN '22' WHEN "E4" THEN "23 ' ELSE Grade.Grade END) > 0 ORDER BY saw_0_

    Discount





    Could someone help me

    Concerning

    Mustafa

    Published by: Musnet on June 29, 2010 05:42

    Published by: Musnet on June 29, 2010 06:48

    Are you sure you don't have another non-digital value in your column. I want to get this filter temporarily just to check if your plaster works or not. If it works, then you can remove this filter.

  • ORA-06502: PL/SQL: digital error or value: hex to raw conversion error

    Hello gurus,

    I'm trying to encrypt the dbms_obfuscation_toolkit method

    CREATE or REPLACE function Cryption2 (long input_string) gross yield
    IS
    -input_string VARCHAR2 (16): = "tigertigertigert";
    raw message (32767).
    raw_input RAW (128);
    long key_string (20000): = "scottsco";
    raw_key RAW (128);
    encrypted_raw RAW (2048);
    long encrypted_string (20000);
    decrypted_raw RAW (2048);
    long decrypted_string (20000);
    error_in_input_buffer_length EXCEPTION;
    PRAGMA EXCEPTION_INIT(error_in_input_buffer_length,-28232);
    INPUT_BUFFER_LENGTH_ERR_MSG VARCHAR2 (100): =.
    ' * NOT A MULTIPLE OF 8 BYTES IN THE INPUT BUFFER AND *';
    BEGIN
    message: = UTL_RAW. CAST_TO_RAW (Convert (input_string, 'AL32UTF8', 'US7ASCII'));
    message: = UTL_RAW. CAST_TO_RAW (Convert (key_string, 'AL32UTF8', 'US7ASCII'));
    dbms_output.put_line (' > = BEGIN TEST =');
    dbms_output.put_line (' > enter string: ' |)
    input_string);
    START < ignore this, typo in the Oracle documentation
    dbms_obfuscation_toolkit. Decrypt)
    input_string = > input_string,.
    key_string = > key_string,
    encrypted_string = > encrypted_string);
    dbms_output.put_line (' > Encrypted string: ' |)
    encrypted_string);
    -Add as shown DESDecrypt, gross change in chaine_cle
    -END IF;
    Return encrypted_string;
    EXCEPTION
    WHEN error_in_input_buffer_length THEN
    dbms_output.put_line (' > ' |) INPUT_BUFFER_LENGTH_ERR_MSG);
    END;
    /

    But I get the following error

    When I try:-select cryption2 ('abcdefgh') of double;

    ORA-06502: PL/SQL: digital error or value: hex to raw conversion error
    ORA-06512: at the "', line 31" "

    Thanks and greetings
    Pratik Lacoste
    DBA Oracle Jr

    Published by: Pratik.L on December 13, 2009 21:58

    Hey Pratik,

    You seem to be under pressure. The code that you pasted last a lot of stupid mistakes.
    In both the features that you use to encrypt or decrypt that you must follow the data type, the procedure is overloaded.

    Source: http://download.oracle.com/docs/cd/B13789_01/appdev.101/b10802/d_obtool.htm

    The previous post for this was varchar2 usinf encrpt and decrypt.

    The code below, which is your code, I'm taking the value as varchar2 and return varchar2 but internally
    that you posted, I'm going in raw data to her encrypt and decrypt procedures.

    SQL> CREATE OR REPLACE Function try_Cryptit (input long) return clob
      2   IS
      3
      4  key_string RAW(2000);
      5  crypt_dycp_raw RAW(2000);
      6  crypt_encp_raw RAW(2000);
      7  crypt_str clob;
      8  key_raw RAW(2000) := UTL_RAW.CAST_TO_RAW('frankzap');
      9  input_raw RAW(2000):=UTL_RAW.CAST_TO_RAW(input);
     10   message varchar2(2000);
     11
     12  BEGIN
     13   dbms_obfuscation_toolkit.DESEncrypt(
     14   input => input_raw,
     15   KEY => key_raw,
     16   encrypted_data => crypt_encp_raw);
     17
     18   -- Decrypt the string --
     19
     20   dbms_obfuscation_toolkit.DESDecrypt(
     21   input => crypt_encp_raw,
     22   KEY => key_raw,
     23   decrypted_data => crypt_dycp_raw);
     24
     25   crypt_str := utl_raw.cast_to_varchar2(input_raw);
     26   return crypt_str;
     27   END;
     28
     29  /
    
    Function created.
    
    SQL> select try_Cryptit ('abcdefgh') from dual;
    
    TRY_CRYPTIT('ABCDEFGH')
    --------------------------------------------------------------------------
    abcdefgh
    

    Follow be varchar2 or raw for this purpose.

    Twinkle

  • #550 5.6.0 M2MCVT. StorageError; storage in content conversion error #.

    Hello

    We use ios with 9.2 ios devices

    recently, we noticed that when we create a new event in the calendar and invite someone outside of our company, we receive an error message:

    The e-mail system had a problem processing this message. It won't try to deliver this message again

    and the exchange Server Diagnostics information:

    #550 5.6.0 M2MCVT. StorageError; storage in content conversion error #.

    that it happens with ios 9.2

    have you ever had a response to this

    We suffer the same way in Israel.

    When we change the time zone on the iphone in the United States for example, it works well!

    If it has to do with the zone, but I can't figure out how to solve this problem.

    He comes up with the previous version of the IOS, but not with android and not outlook on the computer.  If you install outlook on iOS app, it works well in this regard.

    Help!

  • I try to capture a Web page using the Acrobat "Convert" icon, but this no longer works. I get an error message: "no access to Acrobat WebCapture. Acrobat is posibly busy or waiting for input. »

    I try to capture a Web page using the Acrobat "Convert" icon, but this no longer works. I get an error message: "no access to Acrobat WebCapture. Acrobat is posibly busy or waiting for input. »

    Thanks Abhishek,

    already, this option was unckecked. But miraculously it works now (after spending hours trying...).

    Beste, Geert

  • ES4 Conversion error: 1

    When you try to import a Word document or an RTF document in Livecycle Designer ES4 I get Conversion error: 1 race: ' c:\Probram files (x 86) \Adobe\Adobe LiveCycle Designer ES4\ConvertWord.exe "...

    I was not able to find much about this error - any help greatly appreciated!

    Hello

    Try this manual correction.

    LiveCycle Blog: Der making - 4 correction / / Do-It-Yourselfers bugfix 4

  • This error: "java.io.IOException: error = 12, cannot allocate memory.

    I tried to run a simple workflow in vCenter Orchestrator (VCO) which accesses the command prompt by using this script:

    var myCommand = new Command ("ls");
    myCommand.execute (true);
    System.log (myCommand.Result);

    We use VAPP VCO and we continue this error:

    "Wrapped java.io.IOException: cannot run program 'ls': java.io.IOException: error = 12, cannot allocate memory (Workflow: Test2 / Scriptabletask (item0) #1)"

    Any suggestions? This script is copied and pasted directly from the VCO manuals, where our confusion.

    Have you tried to increase the memory of the virtual machine?

    I assume that you already have tried to restart the virtual machine without increasing the memory, just?

    Christophe.

  • AC-50480: internal error: java.lang.Exception: Error while generations

    Hello
    I move db level on another server with the clone utility. post clone on db level managed but level apps I get error in the adconfig.log file

    AC-50480: internal error: java.lang.Exception: error generating listener.ora.
    Error generation tnsnames.ora database, temporary tnsnames.ora will be generated using templates
    Instantiating tools tnsnames.ora
    Tools tnsnames.ora instantiated
    Tnsnames.ora Web instantiated

    adgentns.pl out with status 2
    CODE OF ERROR = 2 ERRORCODE_END
    .end std out.

    .end err out.


    Result: FAILURE

    I have used the following options for the solution but without success

    1. open a new shell and the source of the application environment.

    2. run the utility of sqlplus and run the command sequence:

    sqlplus apps / < password >
    exec fnd_conc_clone.setup_clean

    3. open a new shell and the source of the DB-Tier environment.

    4. run the Autoconfig at the DB layer.

    5. switch to the hull with the Enviornment APPS from or start a new Shell and source of the application environment.

    6. run the Autoconfig to layer APPS.


    AutoConfig run successufully on db level but failed to component apps.

    Please help me what to do.

    Kind regards
    Mohsin

    Salvation;

    What is the version of the EBS?

    Please see:

    AC-50480: internal error: java.lang.Exception: error generating listener.ora. [1324667.1 ID]
    During the automatic configuration fails 'adgentns.pl': ' AC-50480: internal error: java.lang.Exception: error generating listener.ora "[453901.1 ID]
    'AC-50480' error to generate the file "listener.ora. [1089036.1 ID]

    Respect of
    HELIOS

  • Conversion error in web page to PDF using Acrobat 8 IE 9 Vista

    Conversion error in web page to PDF using Acrobat 8 IE 9 Vista

    Error occurred

    Line: 11

    Char: 3

    Error: Permission denied
    Code: 0

    URL: res / / C:\Program Files\Adobe\Acrobat 8.0\Acrobat\AcroIEFavClient.dll/AcroIECapture.html

    Additioanally the Adobe printer appears as "Error" However the creation of PDFs from Outlook works fine

    With Internet EXPLORER 9, you will need at least Acrobat X (updated to the point release 10.1).

    See the list of compatible web browsers Acrobat PDF:

    http://helpx.Adobe.com/Acrobat/KB/compatible-Web-browsers-PDFMaker-applications.html

    Be well...

  • character to number conversion error

    Hello

    The following function returns an error (ORA-06502 PL/SQL numeric or value error character for number conversion error) question when the number of person, 300 and 400. Please note that I created a simplified version of the function and paintings illustrate the error.

    Thanks in advance

    Concerning
    Anna
    create table emp
    (person_id number
    ,tel varchar2(20)
    )
    insert into emp
    values (100, '987503456')
    insert into emp
    values (200, '2457890')
    insert into emp
    values (300, '01-2-589758')
    insert into emp
    values (400, '+60-4-5879600')
    
    create table emp1
    (person_id number
    ,name varchar2(30)
    );
    
    insert into emp1
    values (100, 'Allan')
    
    insert into emp1
    values (200, 'Smith')
    
    insert into emp1
    values (300, 'White')
    
    insert into emp1
    values (400, 'Parker')
    Function
    create or replace function test_fax
              (pn_person_id  IN emp1.person_id%type)
    
          RETURN VARCHAR2 IS
    
    cursor csr_test is
    select  a.tel 
    from emp a
    ,emp1 b
    where a.person_id = b.person_id
    
       -- variable declaration
       lv_tel emp1.person_id%type;
     
     begin
       open csr_test;
        fetch csr_test into lv_fax;
       close csr_test;
    return lv_fax;
    end test_fax;

    You select IT in a variable declared as PERSON_ID

    He works for PERSON_ID 100 and 200 because the values are be valid numbers.

    lv_tel emp1.person_id%type;

    should be

    lv_tel emp1.tel%type;

  • "no ocijdbc11 in java.library.path" error when you connect a commander AMT database

    Hello

    "no ocijdbc11 in java.library.path" error when connecting to a connection of AMT database

    I have the same problem "error code" when to test the connection to a database, even if I have an APEX db which connects without a problem.

    I have re downloaded jre & SQL Developer just to make sure that all the files are where they should be in no chance.

    I also tried most of the suggestions in different threads.

    Does anyone know what can cause exactly this error?

    for example; should I be looking for a file called "ocijdbc11" & put it in the path "java.library.path"?

    Can someone explain to a beginner to db connections I have to do?

    I use the 'light' client check box is clear, and I do not know which way to enter the correct file so that it works?

    It is must connect as a TNS connection & was working fine until recently, the only change I can think is a moving files from the 'C' drive, but I thought developer redownloading SQL would slove this.

    Thank you

    user5833695 wrote:
    I do not have this access path to check on my PC & triued to find it, but could not.

    So what OS are you on?

    I also did a search for the file "ocijdbc11" on my hard drives & didn't find no match, this could simply be the problem, that I do not have the file?

    No, the sqldev comes with its own drivers. First try to enter said tnsnames.ora as thefurryone path and restart.
    If still no go, you can try to bypass the problematic environment settings by changing your ORACLE_HOME in a batch (inside the sqldev folder) file:

    set ORACLE_HOME = % CD
    Start sqldeveloper.exe

    Hope that helps,
    K.

  • LONG LONG-&gt; ORA-06502: PL/SQL: digital error or value

    SQL>desc all_views
     Name                                      Null?    Typ
     ----------------------------------------- -------- ----------------------------
     OWNER                                     NOT NULL VARCHAR2(30)
     VIEW_NAME                                 NOT NULL VARCHAR2(30)
     TEXT_LENGTH                                        NUMBER
     TEXT                                               LONG
     TYPE_TEXT_LENGTH                                   NUMBER
     TYPE_TEXT                                          VARCHAR2(4000)
     OID_TEXT_LENGTH                                    NUMBER
     OID_TEXT                                           VARCHAR2(4000)
     VIEW_TYPE_OWNER                                    VARCHAR2(30)
     VIEW_TYPE                                          VARCHAR2(30)
     SUPERVIEW_NAME                                     VARCHAR2(30)
    
    SQL>
    SQL>declare 
      2      txt_view  LONG;
      3   begin
      4      SELECT 
      5      TEXT INTO txt_view
      6      from all_views
      7      where
      8      VIEW_NAME = 'V_KN_SKA';
      9   end;
     10   /
    declare
    *
    FEHLER in Zeile 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: in Zeile 4
    
    SQL>select TEXT_LENGTH
      2  from all_views
      3  where
      4  VIEW_NAME = 'V_KN_SKA';
    
    TEXT_LENGTH
    -----------
          53816
    When I put the TEXT in ULTRA EDIT, I get a 54676 byte value.

    'TEXT' of all_views column is of type LONG, and the variable "txt_view" is too LONG. Why become a digital error or value?

    just a number...

    Oracle advises against the use of LONG columns, they advice to use instead the LOB (CLOB or BLOB)
    For a long TIME are a pain in one... to work with, as you have found by yourself

    Why do you want to use LONG and not of CLOB?

  • ORA-06502: digital or value error: character of number conversion error

    I met the following error when I ran function to_number_or_null PL/SQL of Donald. Someone here could help me find the solution? Thank you!

    SQL > create or replace FUNCTION to_number_or_null)
    2 aiv_number in varchar2)
    3 return number is
    4 / *
    5 to_number_or_null.fun
    6 by Donald J. Bales on 12/15/2006
    (7. a method of to_number without error)
    8 * /
    9 start
    10 return to_number (aiv_number);
    exception 11
    12 when INVALID_NUMBER then
    13 return NULL;
    14 end to_number_or_null;
    15.

    The function is created.

    SQL > select to_number_or_null('A') from double;
    Select to_number_or_null ('A') of double
    *
    ERROR on line 1:
    ORA-06502: PL/SQL: digital or value error: character of number conversion error
    ORA-06512: at "CAROL. TO_NUMBER_OR_NULL', line 10

    It seems that Donald must have handled VALUE_ERROR instead of INVALID_NUMBER.

    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14261/errors.htm#LNPLS00703

  • Conversion error in CFML arguments to the Java classes for the web service call.

    Hi all.

    I'm working on writing a small application that uses a web service that is provided by our IVR (Angel.com). I am able to connect, however, when I try to do something with complex objects, I get the error indicated in the title.

    He seems to have a problem with the table because when I remove it, or it becomes a simple string, I get errors on the function could not be found. I'm relatively new to web services, and especially dealing with complex data types, so any help would be appreciated.

    You can see my test page to

    http://webservices.fpitesters.com/AngelCalls.cfm

    I use the language WSDL can be found at

    http://www.Angel.com/outbound/WSDL/OutboundCallService.WSDL

    Some examples of code that does what I want to do in Java / Apache Axis

    http://www.Socialtext.NET/ivrwiki/index.cgi?java_sample_code

    Here is a description of the function that I have problems with

    http://www.Socialtext.NET/ivrwiki/index.cgi?placecall

    And my code is attached.

         <cfset email = "xxxxxxxxxxxxxxxxxx">
         <cfset pin = "xxxxxxxxxxxx">
    
    
         
         <cfinvoke webservice="http://www.angel.com/outbound/wsdl/OutboundCallService.wsdl" method="login" returnvariable="login">
              <cfinvokeargument name="email" value="#email#"/>
              <cfinvokeargument name="pin" value="#pin#"/>
         </cfinvoke>
    
         <cfdump var="#login#">
         
         <cfset Token = login.getToken()>
         
         <cfdump var="#token#">
         
         <cfset CallItem.maxWaitTime = 100>
         <cfset CallItem.phoneNumbers[1] = "7632344306">
         <cfset CallItem.siteNumber = 100041>
         
         <cfinvoke webservice="http://www.angel.com/outbound/wsdl/OutboundCallService.wsdl" method="placeCall" returnvariable="call">
              <cfinvokeargument name="Token" value="#Token#"/>
              <cfinvokeargument name="CallItem" value="#CallItem#"/>
         </cfinvoke>
         
         <cfdump var="#call#">
    

    If you are not initializing phoneNumbers tabular before adjustment

    
    

    It will be passed as a structure with a key of 1.  This could cause your conversion of argument error.

    So:

    
    

    Will result in

    struct
    MAXWAITTIME 100
    PHONENUMBERS
    struct
    1 7632344306
    SITENUMBER 100041
      
    

    Will result in

    struct
    MAXWAITTIME 100
    PHONENUMBERS
    Table
    1 7632344306
    SITENUMBER 100041

    -Jason Morgan

Maybe you are looking for