Error not send data a database of oracle please

I cannot send data from a variable a the database of oracle.
variables they are = unot,dost,trest but it does not recognize its values......
it does not insert anything in the fields of the data base
this code:
con = DriverManager.getConnection(url,"ora1", "oracle");
stmt = con.createStatement();
String uprs = "insert into anexo (cod_ane,codigo,desc_anexo)
values(" + unot + "," + dost + "," + trest +")";
stmt.executeUpdate(uprs);
this error:
SQLException: ORA-00936: missing expression

Are they text fields? Try surrounding them with quotes:
String uprs = "insert into anexo (cod_ane,codigo,desc_anexo)
values('" + unot + "','" + dost + "','" + trest +"')";Try displaying uprs before the executeUpdate() and make sure it's really valid SQL.

Similar Messages

  • Setting maximum packet size in JDBC driver to send data to database

    Could someone tell me how I can set the JDBC connection property of maximum packet size to send data to database?
    Regards
    Rashed

    Hi thanks....I'm having this strange SQLException while trying to insert BLOB image data to Oracle database. I'm saying this strange because for the same image that has been inserted before it's throwing the exception. My program is run from Oracle form and then some image data are inserted into database through a loop. I can't realize what's the problem inside my code that's causing this problem. In fact, when I run my program independently not from Oracle Form, it runs fine, every image data get inserted into database. Given below is my code snippet:
    public void insertAccDocs(String[] accessions) throws SQLException
        for(int q=0; q<accessions.length; q++)
        final String  docName = accessions[q];
        dbThread = new Thread(new Runnable(){
        public void run()
          try{
          System.out.println("insertDB before connection");
                   getConnected();
                   System.out.println("insertDB after connection");
                   st=con.createStatement();
             //String docName = acc; commented
         // String docName = singleAccession;
                   String text = formatFree;
                   String qry = "INSERT INTO DOCUMENT VALUES
    ('"+docName+"','"+text+"','"+formatted+"','"+uiid+"')";
                   System.out.println("parentqry"+qry);
                   int ok=0;
                   ok=st.executeUpdate(qry);
                   if(ok==1)
                System.out.println("INSERTION SUCCESS= "+ok);
                        System.out.println("Image List Size"+ imgList.size());
                // inserting into child
                        for(int i=0;i<imgList.size(); i++)
                      String imgPath = ""+imgList.get(i);
                                  System.out.println("db"+imgPath);
                                  FileInputStream fin = new FileInputStream(imgPath);
                                  BufferedInputStream bufStr = new BufferedInputStream(fin);
                                  byte[] imgByte = new byte[bufStr.available()];
                                  String img = "" + imgNameList.get(i);
                                  System.out.println("imgid="+i);
                callable = con.prepareCall("{call prc_insert_docimage(?,?,?)}");
                callable.setString(1,docName);
                            callable.setString(2,img);
                callable.setBinaryStream(3, bufStr , (int)imgByte.length);
                callable.execute();
            callable.close();
                     con.commit();
            con.close();
                   else
                        System.out.println("INSERTION NOT SUCCESS");
       //   } //else end of severalAcc
                   }catch(Exception err){ //try
                        System.out.println(err.toString());
        } //run
      }); //runnable
      dbThread.start();     
    }And the exception thrown is :
    java.sql.SQLException: Data size bigger than max size for this type: #####
    Please let me know if possible how I can get around this.
    Regards
    Rashed

  • Error while sending data from XI to BI System

    Hello Friends,
    I m facing an error while sending data from XI to BI. XI is successfully recived data from FTP.
    Given error i faced out in communication channel monitoring:-
    Receiver channel 'POSDMLog_Receiver' for party '', service 'Busys_POSDM'
    Error can not instantiate RfcPool caused by:
    com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1
    LOCATION CPIC (TCP/IP) on local host with Unicode
    ERROR partner '10.1.45.35:sapgw01' not reached
    TIME Fri Apr 16 08:15:18 2010
    RELEASE 700
    COMPONENT NI (network interface)
    VERSION 38
    RC -10
    MODULE nixxi.cpp
    LINE 2823
    DETAIL NiPConnect2
    SYSTEM CALL connect
    ERRNO 10061
    ERRNO TEXT WSAECONNREFUSED: Connection refused
    COUNTER 2
    Error displaying in message monitoring:-
    Exception caught by adapter framework: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM  TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       partner '10.1.45.35:sapgw01' not reached TIME        Fri Apr 16 08:15:18 2010 RELEASE     70
    Delivery of the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM  TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       partner '10.1.45.35:sapgw01' not reached TIME.
    Kindly suggest me & provide details of error.
    Regards,
    Narendra

    Hi Narendra,
    Message is clearly showing that your system is not reachable
    102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '10.1.45.35:sapgw01' not reached
    Please check to ping the BI server  IP 10.1.45.35 from your XI server , in case its working you can check telnet to SAP standard port like 3201/3601/3301/3901 etc.
    It seems to be connectivity issue only.
    Make sure your both the systems are up and running.
    Revert back after checking above stuff.
    Regards,
    Gagan Deep Kaushal

  • Errors in sending data - maybe a bug

    Hi, everybody. I was trying o create a program with 2 scokets, lets say socket A and socketB. The principle of this program was whatever socketA receives is beeing send through socketb and vis versa. I had creted a routine for sendind data like that:
    public int SendData(String s){
    try{         
         out.print(s); //this is a printwriter
    out.flush();
    }catch(Exception e){
    System.out.println("Error in sending data"+ e.toString());
    return -1;
    return 0;
    The strange thing was that, using a network sniffer I realised that sometimes my socket was sending characters that weren't in the string s, more precisly it was the character with hex value c2 . When I made the following modification the program worked correctly
    public int SendData(String s){
    try{         
         for(int i=0;i <s.length() ;i++)
              out.write((int)(s.charAt(i))); //now out is an OututSream and not a PrintWriter
    }catch(Exception e){
    System.out.println("Error in sending data"+ e.toString());
    return -1;
    return 0;
    Maybe can anybody explain why was this happening? I am curious to hear your opinion!
    My java -version result is:
    java version "1.5.0-beta"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
    Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)

    I'm not sure what you need to do. If you want to send and receive binary data, read and write bytes (or there are other ways, e.g. DataOutputStream).
    If you want / need to send Unicode text, a PrintWriter / OutputStreamWriter and InputStreamReader will convert Unicode to & from e.g. utf-8. Or you can use String.getBytes() and new String(s, "utf-8") to convert:
    public class t
        public static void main(String args[])
            throws Exception
            String s = "ab\u00a2\03c0";
            System.out.println("string: " + s);
            byte bytes[] = s.getBytes("utf-8");
            System.out.println("bytes: " + toString(bytes));
            String decoded = new String(bytes, "utf-8");
            System.out.println("decoded: " + decoded);
        static String toString(byte b[])
            StringBuffer buf = new StringBuffer();
            for (int n = 0; n < b.length; n++) {
                if (n != 0)
                    buf.append(", ");
                buf.append(Integer.toHexString(b[n] & 0xff));
            return buf.toString();
    }I'd probably use String.getBytes() instead of PrintWriter; that allows mixing text and non-text data.
    Ok, quite possibly Unicode is overkill for you, and you'll be fine with the 8-bit subset. Depends on how "serious" your application is, and how likely it will need to process e.g. Cyrillic, Greek or Chinese text.
    For performance, you may want buffered streams and a StringBuffer instead of string concatenation to create strings.

  • Error when sending data request

    Hi All,
       i have scheduled info package for different type data sources in bi 7.0, for this i am getting the data from  ecc 6.0 . all of this schedule's showing  the status "error when sending data request" with the following details.
    status
    diagnosis
    the request idoc could not be sent to the source system using rfc
    system response
    there is an idoc in the warehouse outbox that did not arrive in the ale inbox of the source system
      in step by step analysis it is showing
       rfc to source system successful showing with ash status
       data selection successfully stated  and finished ? show with red status
    in that details tab
    request : showing with green status
    everything ok
    extraction :showing with red status
    missing messages
    transfer(idocs and trfc) : missing messeges
    processing(data packet) : no data
        it is showing technical status with red as processing overdue
                           processing step call to source system
       so it is showing error with 0 from 0 records.
    please any body could help me for solving this error.
    regards,
    naveen.

    Hi
    Seems you have connectivity issues between the Source system and Bi system.
    You need to check whether you have data on R/3 side via RSA3 with Full / Delta Update Modes with Target System as your BI system.
    RSA13--Source System -- Right click Connection parameters/check/Restore/Activate again Say Replicate All Data Sources (If Possible , provided if you have time because it consumes lot of time )
    You need to check the tRFC Queue SM58/59 for any Stucks and WE19/20 for IDocs.
    Much of BASIS Issue .
    Hope it helps and clear

  • Sup Error While Sending Date Parameter to SUP server?

    Hi Every one,
       I am developing an iOS app using Sybase Unwired Platform 2.1.3 I am getting error While sending Date parameter to Database. How to send DATE format to the sales_order table for order_date column  from iOS.
    I tried like this..
    @try {
            SUP105Sales_order *insertRow =[[SUP105Sales_order alloc]init];
            int32_t idValue =2671;
            int32_t custID =103;
            int32_t sales =506;
            insertRow.id_=idValue;
            insertRow.cust_id=custID;
            insertRow.order_date=[NSDate date];
            insertRow.fin_code_id=@"r1";
            insertRow.region=@"Hyd";
            insertRow.sales_rep=sales;
            [insertRow save];
            [insertRow submitPending];
            [SUP105SUP105DB synchronize];
        @catch (NSException *exception) {
            NSLog(@"Exception---%@",exception.description);
    In server log:
    2014-02-28 16:39:41.833 WARN Other Thread-182 [SUP105.server.SUP105DB]{"_op":"C","level":5,"code":412,"eisCode":"257","message":"com.sybase.jdbc3.jdbc.SybSQLException:SQL Anywhere Error -157: Cannot convert '' to a timestamp","component":"Sales_order","entityKey":"3210004","operation":"create","requestId":"3210005","timestamp":"2014-02-28 11:09:41.646","messageId":0,"_rc":0}
    I strongly believe the above error for because of Date format..i have tried different ways to send Date to Sup server ..but i didn't get any solution.. Can any one help me me how to send date to database in SUP in iOS??
    Message was edited by: Michael Appleby

    Hi Jitendra,
    Thanks for your Quick reply..Any way i have tried what you said,but i didn't get any solution.
    Here is my Code:
        NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];
        [formatter setDateFormat:@"dd-MM-YYYY HH:mm:ss"];
        NSDate *tempDate =(NSDate *) [formatter stringFromDate:[NSDate date]];
        NSLog(@"%@",tempDate);
    @try {
            SUP105Sales_order *insertRow =[[SUP105Sales_order alloc]init];
            int32_t idValue =2671;
            int32_t custID =103;
            int32_t sales =506;
            insertRow.id_=idValue;
            insertRow.cust_id=custID;
            insertRow.order_date =tempDate;
            insertRow.fin_code_id=@"r1";
            insertRow.region=@"Hyd";
            insertRow.sales_rep=sales;
            [insertRow save];
            [insertRow submitPending];
            [SUP105SUP105DB synchronize];
        @catch (NSException *exception) {
            NSLog(@"Exception---%@",exception.description);
    Error is :
    Exception---SUPPersistenceException: exception is in createCore: unexpected null value for 'order_date'

  • Error "Not all data could be changed in LC" when running DP macro

    We are getting the error, "Not all data could be changed in LC" when running DP macros and we are not sure why. It seems to only happen when we are executing it via a Process Chain but not using the DP background processing scheduling. Does anyone know why this is happening?

    Hi Stacy,
                         I hope you are seeing this in message spool.  This message comes up for various reasons. We used to see a message saying "No data saved".
    Some of the reasons could be " the new value (lets say 3 ) after the macro execution is same as after execution (3)".
    See if some of the values are fixed and could not be changed.
    I would take a selection id with just few values and execute the job for that selection id and compare the pre and after results. That should answer all your questions.

  • A Power User Can Not Send Data  - BPC Release 7.5.112.07 MS

    Hi BPC Community,
    We have a group of users who are able to send data to locked dimensions. We added a new power user and this person can not send data to locked dimensions (see attached screen-shot). The person is checked box as a "leader" in the Teams responsibility.
    Any suggestions?
    Thanks. Barry

    Hi
    Options
    • All = any user with member access write privilege
    • Owner = only users assigned as owner with member access write privilege
    • Mgr = Owner of parent dimension member is manager of child dimension member
    • Locked = no user regardless of authorization.
    Controlled By: Determines who can select the work status code
    • Both = owner of the specific member ID and the owner of the parent to the specific member ID
    • Owner = owner of the specific member ID
    • Mgr = owner of the parent to the specific member ID.
    also go through below link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2064bb40-ea48-2e10-069c-cc6878a0f1cc?QuickLink=index&…
    https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&cad=rja&uact=8&ved=0CEIQFjAE&url=https%3A%2F%2Fhelp.sa…
    Hope this will help you.
    sushant

  • Attribute Change Run aborted with an error :Not all data indexed for index

    Hi,
    I have an issue where the master data Attribute Change Run  aborted with an error pointing to the BWA:
    Attribute Change Run aborted with an error :Not all data indexed for index
    we tried to load only 0 data into it,the error still occured.

    Detail message is following:
    not all data was indexed for index 'GBP_BIC:XYCH_098('0' for '114')
    creation of The BIA INDEX for infocube 'YBC_SD015' terminated while filling

  • I can not send mail when at school. Please help

    I can not send mail when at school. Please help

    What is the email provider? If it is from your home Internet service provider, they usually block sending when not on their network. If this is the case, see if you can log into the smtp server with username and password. If they allow that, you can enter that in the email account settings.

  • Sending data to EXCEL from Oracle Forms 6.0 URGENT!!!!!

    Dear all,
    I have a problem to which I hope to get a solution from anyone
    out there...
    The problem is as follows:
    I have a form that contains some data. Now this data I need to
    transfer to an excell sheet. I tried to do so through report
    builder (6.0) but every time I try to convert my report I get a
    general protection fault. So instead I'm sending the data to a
    text file through text_io built in then reopening the text file
    from excel. Isn't there a better way to do it? ie sending the
    data stright from forms to excel?
    Thanks in advance
    null

    TRY THIS OUT....OLE2.... IT WORKS GREAT...DIRECTLY TO EXCEL...
    Oracle Corporate Support
    Problem Repository
    1. Prob# 1030046.6 NEW: OLE AUTOMATION NO LONGER WORKS AFTER
    UPGRADE TO OF
    2. Soln# 2077481.6 NEW: MICROSOFT CHANGED OLE INTERFACE FOR
    OFFICE97
    1. Prob# 1030046.6 NEW: OLE AUTOMATION NO LONGER WORKS AFTER
    UPGRADE TO OF
    Problem ID : 1030046.6
    Affected Platforms : MS Windows 95
    MS Windows NT
    Affected Products : SQL*Forms
    Oracle Reports
    Oracle Graphics
    Oracle Developer/2000
    Affected Components : SF40 V04.05.XX
    SQLREP V02.05.XX
    ORAGRAPH V02.05.XX
    DEV2K Generic
    Affected Oracle Vsn : Generic
    Summary:
    NEW: OLE AUTOMATION NO LONGER WORKS AFTER UPGRADE TO OFFICE97
    +=+
    Problem Description:
    ====================
    You have upgraded to Microsoft Office97 and OLE calls in your
    Developer/2000
    applications no longer work.
    Problem Explanation:
    ====================
    Examples:
    You are using Forms to send data to a Microsoft Word document
    and print
    letters, using ole automation. This worked fine with Word 6.0,
    but when
    they
    upgraded to Word 8.0 (Office97), the letters do not get printed.
    When you try to get an object handle to the Excel97 Workbooks
    collection
    using
    the OLE2 Package, you get the following error:
    FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception
    ORA-305500
    The Same code works fine against Excel 7.0.
    [ Search Words: Office 97 msoffice ms office object linking and
    embedding
    application get_obj_property workbook invoke_obj
    appshow
    upgrade upgrading bug483090 olex.rdf demo ]
    +==+
    Diagnostics and References:
    2. Soln# 2077481.6 NEW: MICROSOFT CHANGED OLE INTERFACE FOR
    OFFICE97
    Solution ID : 2077481.6
    For Problem : 1030046.6
    Affected Platforms : MS Windows 95
    MS Windows NT
    Affected Products : SQL*Forms
    Oracle Reports
    Oracle Graphics
    Oracle Developer/2000
    Affected Components : SF40 V04.05.XX
    SQLREP V02.05.XX
    ORAGRAPH V02.05.XX
    DEV2K Generic
    Affected Oracle Vsn : Generic
    Summary:
    NEW: MICROSOFT CHANGED OLE INTERFACE FOR OFFICE97
    +=+
    Solution Description:
    =====================
    WORD:
    Microsoft made some changes in the upgraded version of Word
    which cause it
    to
    come up as a hidden application. Customer had to add "AppShow"
    to his code,
    and ole automation works fine now.
    EXCEL:
    The issue here is that Microsoft changed the object "Workbooks",
    which is
    now
    a property of object "Excel.Application". So, replace the call:
    workbooks := ole2.invoke_obj(application, 'workbooks');
    with
    workbooks := ole2.get_obj_property(application, 'workbooks');
    For example:
    PACKAGE BODY olewrap IS
    -- Declare the OLE objects
    application OLE2.OBJ_TYPE;
    workbooks OLE2.OBJ_TYPE;
    workbook OLE2.OBJ_TYPE;
    worksheets OLE2.OBJ_TYPE;
    worksheet OLE2.OBJ_TYPE;
    cell OLE2.OBJ_TYPE;
    args OLE2.LIST_TYPE;
    procedure init is
    begin
    -- Start Excel and make it visible
    application := OLE2.CREATE_OBJ('Excel.Application');
    ole2.set_property(application,'Visible', 'True');
    workbooks := OLE2.GET_OBJ_PROPERTY(application, 'Workbooks');
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'c:\test\ms\excel\test.xls');
    workbook := OLE2.GET_OBJ_PROPERTY(workbooks, 'Open', args);
    OLE2.DESTROY_ARGLIST(args);
    worksheets := OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
    worksheet := OLE2.GET_OBJ_PROPERTY(worksheets,'Add');
    -- Return object handle to cell A1 on the new Worksheet
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 1);
    OLE2.ADD_ARG(args, 1);
    cell:=OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    -- Set the contents of the cell to 'Hello Excel!'
    OLE2.SET_PROPERTY(cell, 'Value', 'Hello Excel!');
    END;
    procedure addstuff is
    BEGIN
    -- Return object handle to cell A1 on the new Worksheet
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 2);
    OLE2.ADD_ARG(args, 2);
    cell:=OLE2.INVOKE_OBJ(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    -- Set the contents of the cell to 'This is the added stuff'
    OLE2.SET_PROPERTY(cell, 'Value', 'This is the added stuff');
    END;
    procedure stop is
    begin
    -- Release the OLE objects
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'C:\OLETEST2.XLS');
    OLE2.INVOKE(worksheet, 'SaveAs', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.RELEASE_OBJ(cell);
    OLE2.RELEASE_OBJ(worksheet);
    OLE2.RELEASE_OBJ(worksheets);
    OLE2.RELEASE_OBJ(workbook);
    OLE2.RELEASE_OBJ(workbooks);
    OLE2.RELEASE_OBJ(application);
    END;
    Solution Explanation:
    =====================
    Microsoft changed some of the OLE calling interfaces for the
    Office97
    products. Thus, some of your existing OLE calls may need to be
    changed to
    comply with the Office97 interface.
    Consult with Microsoft and your Office97 documentation or more
    information
    on
    what the OLE interface is for the Office97 suite of products.
    Additional Information:
    =======================
    Related Bugs:
    483090 (Closed, Vendor OS Problem)
    FORM GIVES FRM-40735: UNHANDLED EXCEPTION ORA-305500 AGAINST
    EXCEL97.OFMPE0497
    +==+
    References:
    ref: {8192.4} BUG-483090
    Oracle Corporate Support
    Problem Repository
    1. Prob# 1030046.6 NEW: OLE AUTOMATION NO LONGER WORKS AFTER
    UPGRADE TO OF
    2. Soln# 2077481.6 NEW: MICROSOFT CHANGED OLE INTERFACE FOR
    OFFICE97
    1. Prob# 1030046.6 NEW: OLE AUTOMATION NO LONGER WORKS AFTER
    UPGRADE TO OF
    Problem ID : 1030046.6
    Affected Platforms : MS Windows 95
    MS Windows NT
    Affected Products : SQL*Forms
    Oracle Reports
    Oracle Graphics
    Oracle Developer/2000
    Affected Components : SF40 V04.05.XX
    SQLREP V02.05.XX
    ORAGRAPH V02.05.XX
    DEV2K Generic
    Affected Oracle Vsn : Generic
    Summary:
    NEW: OLE AUTOMATION NO LONGER WORKS AFTER UPGRADE TO OFFICE97
    +=+
    Problem Description:
    ====================
    You have upgraded to Microsoft Office97 and OLE calls in your
    Developer/2000
    applications no longer work.
    Problem Explanation:
    ====================
    Examples:
    You are using Forms to send data to a Microsoft Word document
    and print
    letters, using ole automation. This worked fine with Word 6.0,
    but when
    they
    upgraded to Word 8.0 (Office97), the letters do not get printed.
    When you try to get an object handle to the Excel97 Workbooks
    collection
    using
    the OLE2 Package, you get the following error:
    FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception
    ORA-305500
    The Same code works fine against Excel 7.0.
    [ Search Words: Office 97 msoffice ms office object linking and
    embedding
    application get_obj_property workbook invoke_obj
    appshow
    upgrade upgrading bug483090 olex.rdf demo ]
    +==+
    Diagnostics and References:
    2. Soln# 2077481.6 NEW: MICROSOFT CHANGED OLE INTERFACE FOR
    OFFICE97
    Solution ID : 2077481.6
    For Problem : 1030046.6
    Affected Platforms : MS Windows 95
    MS Windows NT
    Affected Products : SQL*Forms
    Oracle Reports
    Oracle Graphics
    Oracle Developer/2000
    Affected Components : SF40 V04.05.XX
    SQLREP V02.05.XX
    ORAGRAPH V02.05.XX
    DEV2K Generic
    Affected Oracle Vsn : Generic
    Summary:
    NEW: MICROSOFT CHANGED OLE INTERFACE FOR OFFICE97
    +=+
    Solution Description:
    =====================
    WORD:
    Microsoft made some changes in the upgraded version of Word
    which cause it
    to
    come up as a hidden application. Customer had to add "AppShow"
    to his code,
    and ole automation works fine now.
    EXCEL:
    The issue here is that Microsoft changed the object "Workbooks",
    which is
    now
    a property of object "Excel.Application". So, replace the call:
    workbooks := ole2.invoke_obj(application, 'workbooks');
    with
    workbooks := ole2.get_obj_property(application, 'workbooks');
    For example:
    PACKAGE BODY olewrap IS
    -- Declare the OLE objects
    application OLE2.OBJ_TYPE;
    workbooks OLE2.OBJ_TYPE;
    workbook OLE2.OBJ_TYPE;
    worksheets OLE2.OBJ_TYPE;
    worksheet OLE2.OBJ_TYPE;
    cell OLE2.OBJ_TYPE;
    args OLE2.LIST_TYPE;
    procedure init is
    begin
    -- Start Excel and make it visible
    application := OLE2.CREATE_OBJ('Excel.Application');
    ole2.set_property(application,'Visible', 'True');
    workbooks := OLE2.GET_OBJ_PROPERTY(application, 'Workbooks');
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'c:\test\ms\excel\test.xls');
    workbook := OLE2.GET_OBJ_PROPERTY(workbooks, 'Open', args);
    OLE2.DESTROY_ARGLIST(args);
    worksheets := OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
    worksheet := OLE2.GET_OBJ_PROPERTY(worksheets,'Add');
    -- Return object handle to cell A1 on the new Worksheet
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 1);
    OLE2.ADD_ARG(args, 1);
    cell:=OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    -- Set the contents of the cell to 'Hello Excel!'
    OLE2.SET_PROPERTY(cell, 'Value', 'Hello Excel!');
    END;
    procedure addstuff is
    BEGIN
    -- Return object handle to cell A1 on the new Worksheet
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 2);
    OLE2.ADD_ARG(args, 2);
    cell:=OLE2.INVOKE_OBJ(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    -- Set the contents of the cell to 'This is the added stuff'
    OLE2.SET_PROPERTY(cell, 'Value', 'This is the added stuff');
    END;
    procedure stop is
    begin
    -- Release the OLE objects
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'C:\OLETEST2.XLS');
    OLE2.INVOKE(worksheet, 'SaveAs', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.RELEASE_OBJ(cell);
    OLE2.RELEASE_OBJ(worksheet);
    OLE2.RELEASE_OBJ(worksheets);
    OLE2.RELEASE_OBJ(workbook);
    OLE2.RELEASE_OBJ(workbooks);
    OLE2.RELEASE_OBJ(application);
    END;
    Solution Explanation:
    =====================
    Microsoft changed some of the OLE calling interfaces for the
    Office97
    products. Thus, some of your existing OLE calls may need to be
    changed to
    comply with the Office97 interface.
    Consult with Microsoft and your Office97 documentation or more
    information
    on
    what the OLE interface is for the Office97 suite of products.
    Additional Information:
    =======================
    Related Bugs:
    483090 (Closed, Vendor OS Problem)
    FORM GIVES FRM-40735: UNHANDLED EXCEPTION ORA-305500 AGAINST
    EXCEL97.OFMPE0497
    +==+
    References:
    ref: {8192.4} BUG-483090
    null

  • Error while sending data to supplier

    Hi All,
    We are facing the errors while sending transaction to our supplier.Actually we send 60 transactions to our supplier in which 15 are errored out in B2B with the below error.
    Please help me in resolving this.
    2010.06.09 at 16:40:04:876: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab Calling Send to transmit the message
    2010.06.09 at 16:40:04:879: Thread-10: B2B - (DEBUG) Protocol Name: HTTP
    2010.06.09 at 16:40:04:883: Thread-10: B2B - (DEBUG) Version Name: 1.1
    2010.06.09 at 16:40:04:887: Thread-10: B2B - (DEBUG) Endpoint: http://interchange-stg.apl.com:4090/as2/interface
    2010.06.09 at 16:40:04:891: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:send URL: HTTP://INTERCHANGE-STG.APL.COM:4090/AS2/INTERFACE
                                                                          http://interchange-stg.apl.com:4090/as2/interface
    2010.06.09 at 16:40:04:903: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:send TO Endpoint: 501 http://interchange-stg.apl.com:4090/as2/interface
    2010.06.09 at 16:40:04:906: Thread-10: B2B - (DEBUG)
    Protocol = HTTP
    Version = 1.1
    Transport Header
    Content-Transfer-Encoding:binary
    Message-ID:<131982@EMRSNS>
    MIME-version:1.0
    ACTION_NAME:Process_X12_5020_850
    From:EMRSNS
    Disposition-Notification-To:[email protected]
    AS2-To:ZZACSLTEST
    User-Agent:AS2 Server
    Date:Wed, 09 Jun 2010 16:39:54 GMT
    Disposition-Notification-Options:signed-receipt-protocol=required, pkcs7-signature; signed-receipt-micalg=required, sha1
    DOCTYPE_NAME:850
    FROM_PARTY:EMRSNS
    DOCTYPE_REVISION:5020
    TO_PARTY:ZZACSLTEST
    AS2-From:EMRSNS
    AS2-Version:1.1
    Content-Type:application/pkcs7-mime; smime-type="enveloped-data"
    Parameters
    -- listing properties --
    http.sender.timeout=0
    2010.06.09 at 16:40:04:910: Thread-10: B2B - (DEBUG) scheme null userName null realm null
    2010.06.09 at 16:41:05:162: Thread-10: B2B - (WARNING)
    Message Transmission Transport Exception
    Transport Error Code is OTA-HTTP-SEND-1000
    StackTrace oracle.tip.transport.TransportException: [IPT_HttpSendError] HTTP encounters send error :.
         at oracle.tip.transport.TransportException.create(TransportException.java:91)
         at oracle.tip.transport.basic.HTTPSender.createTransportResponse(HTTPSender.java:754)
         at oracle.tip.transport.basic.HTTPSender.send(HTTPSender.java:598)
         at oracle.tip.transport.b2b.B2BTransport.send(B2BTransport.java:311)
         at oracle.tip.adapter.b2b.transport.TransportInterface.send(TransportInterface.java:1034)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1758)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:976)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1167)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:833)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.net.SocketTimeoutException: Read timed out
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at HTTPClient.BufferedInputStream.fillBuff(BufferedInputStream.java:192)
         at HTTPClient.BufferedInputStream.read(BufferedInputStream.java:112)
         at HTTPClient.StreamDemultiplexor.read(StreamDemultiplexor.java:281)
         at HTTPClient.RespInputStream.read(RespInputStream.java:157)
         at HTTPClient.RespInputStream.read(RespInputStream.java:116)
         at HTTPClient.Response.readResponseHeaders(Response.java:997)
         at HTTPClient.Response.getHeaders(Response.java:713)
         at HTTPClient.Response.getStatusCode(Response.java:262)
         at HTTPClient.RetryModule.responsePhase1Handler(RetryModule.java:83)
         at HTTPClient.HTTPResponse.handleResponse(HTTPResponse.java:739)
         at HTTPClient.HTTPResponse.getStatusCode(HTTPResponse.java:196)
         at oracle.tip.transport.basic.HTTPSender.createTransportResponse(HTTPSender.java:721)
         ... 9 more
    2010.06.09 at 16:41:05:163: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:send Error in sending message
    2010.06.09 at 16:41:05:166: Thread-10: B2B - (INFORMATION) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab Request Message Transmission failed
    2010.06.09 at 16:41:05:168: Thread-10: B2B - (DEBUG) DBContext beginTransaction: Enter
    2010.06.09 at 16:41:05:171: Thread-10: B2B - (DEBUG) DBContext beginTransaction: Transaction.begin()
    2010.06.09 at 16:41:05:173: Thread-10: B2B - (DEBUG) DBContext beginTransaction: Leave
    2010.06.09 at 16:41:05:176: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab [IPT_HttpSendError] HTTP encounters send error :.
    Read timed out
    2010.06.09 at 16:41:05:186: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:notifyApp retry value <= 0, so sending exception to IP_IN_QUEUE
    2010.06.09 at 16:41:05:191: Thread-10: B2B - (DEBUG) Engine:notifyApp Enter
    2010.06.09 at 16:41:05:202: Thread-10: B2B - (DEBUG) Enqueue Engine AQJMSCorrelationID = 889C8E2466211E6DE0440015178ED696
    2010.06.09 at 16:41:05:205: Thread-10: B2B - (DEBUG) notifyApp:notifyApp Enqueue the ip exception message:
    <Exception xmlns="http://integration.oracle.com/B2B/Exception" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <correlationId>131982</correlationId>
    <b2bMessageId>131982</b2bMessageId>
    <errorCode>AIP-50079</errorCode>
    <errorText>Transport error: [IPT_HttpSendError] HTTP encounters send error :.
    Read timed out</errorText>
    <errorDescription>
    <![CDATA[Machine Info: (usmtnz-sinfwi02)
    Transport error: [IPT_HttpSendError] HTTP encounters send error :.
    Read timed out ]]>
    </errorDescription>
    <errorSeverity>2</errorSeverity>
    </Exception>
    Regards
    sekhar

    Hi Sekhar,
    2010.06.09 at 16:41:05:176: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab [IPT_HttpSendError] HTTP encounters send error :.
    Read timed outIt seems that either your TP's server is not accepting these requests (due to heavy load)/ message size is too large that HTTP timout has occured. Possibility for later case is low because only 25% messages are erroring out. Anyways, you may like to tune your B2B system and test again -
    http://www.b2bgurus.com/2007/10/oracle-as-b2b-performance-best.html
    If no change happens, ask your TP to check his server settings.
    Regards,
    Anuj

  • Getting error in accessing data from database thro' JSP.

    Hi,
    I tried with getting data from the database and it doesnt work fine. I am attaching the code as inline below. can anyone suggest me whats the problem.
    <html>
    <head>
    <title> Display Records </title>
    </head>
    <%@ page language="java" import="java.sql.*"%>
    <body>
    <form name="frm" method="post">
    <table border=2 cellpadding=3 cellspacing=3>
    <tr>
    <th>User ID </th>
    <th>Password </th>
    </tr>
    <%
         try
              Class.forName("org.gjt.mm.mysql.Driver");
         catch(ClassNotFoundException ex)
              ex.printStackTrace();
         try
              Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/dbmaintain","root","");
              Statement stm = con.createStatement();
              //String str = "select * from userpwd";
              ResultSet rs = stm.executeQuery("select * from userpwd");
              if (rs != null)
                   while (rs.next())
                        String uname = rs.getString("userid");
                        String pwd = rs.getString("password");
    %>
    <tr>
    <td><%=uname%></td>
    <td><%=pwd%></td>
    </tr>
    <%
                   }//end of while
              }//end of if
         catch(SQLException ex)
              ex.printStackTrace();
    %>
    </table>
    </form>
    </body>
    </html>
    Thanks in Advance,
    Michael.

    Hi I have stored the list of username and their
    corresponding password. I need to list all the
    username and the password in the table. Thats my
    expectation. OK.
    I dont have any error message in the
    program In case of exceptions, you indeed are not sending any error messages to the application.

  • Network Error: Cannot Send Data (1042012) in Hyperion Planning

    I am using Hyperion Planning 11.1.2.1
    I'm getting this error when i'm trying to refresh my Planning database.
    Com.hyperion.planning.olap.EssbaseException: Network error [%s]: Cannot Send Data (1042012)
    Any suggestions?

    First make sure your essbase is up and running. If it is then:
    Increase the values for NETDELAY and NETRETRYCOUNT.
    Check the index cache size, data cache size, and data block size to make sure that they are within the recommended ranges.
    How to do it and how much to set, you will get this information in Essbase database administrator's guide:
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_dbag.pdf
    Also have a look at:
    Network Error message
    Cheers...!!!

  • Error while sending data to TP

    Hi B2B Gurus,
    While I am sending data to our trading partner, I am getting the below error. Its very high priority. Please help me to resolve this.
    Machine Info: (essapt020-u009.emrsn.com)
    Transport error: [IPT_HttpSendError] HTTP encounters send error :502
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>502 Bad Gateway</title>
    </head><body>
    <h1>Bad Gateway</h1>
    <p>The proxy server received an invalid
    response from an upstream server.
    </p>
    <p>Additionally, a 404 Not Found
    error was encountered while trying to use an ErrorDocument to handle the request.</p>
    </body></html>
    [IPT_HttpSendError] HTTP encounters send error :502
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>502 Bad Gateway</title>
    </head><body>
    <h1>Bad Gateway</h1>
    <p>The proxy server received an invalid
    response from an upstream server.
    </p>
    <p>Additionally, a 404 Not Found
    error was encountered while trying to use an ErrorDocument to handle the request.</p>
    </body></html>
    .

    Hi Anuj,
    I send you a log files to your mail id.
    Actually I able to connect to the tp's url.Still i am getting this error.
    Machine Info: (essapt020-u009.emrsn.com)
    Transport error: [IPT_HttpSendError] HTTP encounters send error :502
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>502 Bad Gateway</title>
    </head><body>
    <h1>Bad Gateway</h1>
    <p>The proxy server received an invalid
    response from an upstream server.
    </p>
    <p>Additionally, a 404 Not Found
    error was encountered while trying to use an ErrorDocument to handle the request.</p>
    </body></html>
    [IPT_HttpSendError] HTTP encounters send error :502
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>502 Bad Gateway</title>
    </head><body>
    <h1>Bad Gateway</h1>
    <p>The proxy server received an invalid
    response from an upstream server.
    </p>
    <p>Additionally, a 404 Not Found
    error was encountered while trying to use an ErrorDocument to handle the request.</p>
    </body></html>
    .

Maybe you are looking for

  • GLDv3 availability

    Hello, I'm porting ethernet device driver from Linux to Solaris 10 on Amd64 and Sparc. I've started development using GLD framework untill I've stumbled upon blog "Solaris Networking - The Magic Revealed" at http://blogs.sun.com/roller/page/sunay?ent

  • Why is my muse site not displaying all elements in firefox and IE

    Hi I am having problems with my MUSE site. the embedded HTML buttons and images i have used on the site wont display on Firefox or IE. everything works fine in Chrome. am i missing some code? my website is www.simplesites.com.au. please any help will

  • Easing the Pain of Repetitive Tasks in WCS

    Hey All - I normally use a custom scripted process to pre-configure all of my APs (name, location, controller IPs, channel, power, etc.).  But on occasion the names change following construction, planning, etc.  So I have been in WCS changing the nam

  • How to include the missing PF status in screen

    Hello All, How to include the missing Pf-status in screen? Regards, Lisa.

  • Shopping Cart

    hi there I have a online store that sell to only Canada & USA only- Canada - just product price, tax and shipping cost USA -       just product price and shipping cost but I'm having some issues regarding my Shopping Cart, the UPS Shipping options wi