A problem with ole

hi everyone... i am having a problem with ole in oracle forms 6i. i have created to fields blob in a table, and i have also created ole for these 2 fields (word.application). but my am having some weird results.
1. when i insert a word doc from application to one of these fields and then insert the other word application to the other ole these doc change their places, or one of these docs is deleted.. and things like this...can anyone pls help me

ok i have found a code in the forum:
DECLARE
app OLE2.OBJ_TYPE;
docs OLE2.OBJ_TYPE;
doc OLE2.OBJ_TYPE;
selection OLE2.OBJ_TYPE;
args OLE2.LIST_TYPE;
BEGIN
-- create a new document
app := OLE2.CREATE_OBJ('Word.Application');
OLE2.SET_PROPERTY(app,'Visible',1);
docs := OLE2.GET_OBJ_PROPERTY(app, 'Documents');
doc := OLE2.INVOKE_OBJ(docs, 'add');
selection := OLE2.GET_OBJ_PROPERTY(app, 'Selection');
-- insert data into new document from long item
OLE2.SET_PROPERTY(selection, 'Text', :long_item);
-- save document as example.doc
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 'c:\temp\example.doc');
OLE2.INVOKE(doc, 'SaveAs', args);
OLE2.DESTROY_ARGLIST(args);
-- close example.doc
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 0);
OLE2.INVOKE(doc, 'Close', args);
OLE2.DESTROY_ARGLIST(args);
OLE2.RELEASE_OBJ(selection);
OLE2.RELEASE_OBJ(doc);
OLE2.RELEASE_OBJ(docs);
-- exit MSWord
OLE2.INVOKE(app,'Quit');
END;
my QUESTION is this: as i am new in oracle, is this code for oracle forms6 and does this one solve my problem? pls try to give me an answer, i really need to fix it :( thanks to every one :)
Message was edited by:
user537329

Similar Messages

  • Problems with OLE Container in QUERY

    Hi all,
    I have problem with OLE Container when I am trying to retrieve data from the database. Inserting is no problem and commit is done. I am doing it with
    initialize_container('block.ole_object','C:\test.doc');
    I have only one column of BLOB type and it is last in the block as it was suggested somewhere on the forum.
    When I am trying to retrieve the already inserted data I get error with the following
    Description:
    FRM-40505: Oracle ERROR: unable to perform query and CTRL+F1 says the following:
    ORA-00932: inconsistent data types: expected got
    The forms and the database are as follow:
    Forms [32 Bit] Version 6.0.8.24.1 (Production)
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.2 - Production
    I need immediate help!!!

    This may be related to the 10g database, I'm not sure as there is no way for me to test it. I know that it works with a 9i database.
    One thing to check is to make sure that you don't have the FORMS60_DISABLE_DESCRIBE set to 1 within the Oracle registry.
    If this doesn't work, your only option might be to use a LONG RAW instead of a BLOB column type in the database.

  • Problem with ole objects

    Hello to all,
    I'm having a problem concerning the use of ole objects.
    I'm using Oracle Forms 6.0.8.16.0 with Oracle Reports 6.0.8.1.7.1 on Windows 2000 with Oracle Database Server 9.2.0.4.0.
    I have several forms with base tables including blob columns which are used to store ole objects. These could be MS-Word-documents or Bitmaps of signatures. When inserting these objects via "create new" and choose the object type, Word or Paintbrush opens and i can create my objects. After committing these changes to the database, these objects are printed in a report correctly. When inserting these objects via "create from file" or using a push button which is executing "initialize_container" with a file and committing to the database, i get an error while executing the report "REP-0082: Error executing SCA utility".
    I want to use a push button to store my ole objects because the "create" dialogue is confusing our users because there is a huge list of all possible ole objects on the client.
    Can anybody help with this ?
    And to the Oracle Team, please don't suggest simply to upgrade to a higher patch level without looking at the problem. First, I tested all patch levels up to 16, with no change. Second, it's not easy to upgrade for an 24x7 application with hundreds of users in different countries with different ways of deployment.
    Regards
    Kai

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Problems with OLE DB Apshell requested by the login during installation.

    Hi gurus, I installed SAP BPC 7.5 for Microsoft i tried to following the steps like the manual say, when i was installing showed the next message:
    OLE DB error: OLE DB or  ODBC SAP BusinessObjets Planning and Consolidation "ApShell" requested by the login. The login failed; 4200.
    Error in the high-level relational engine. A connection could no be made to the data source with the DataSourceID of 'AppDef', Name of 'AppDef'.
    Errors in the OLAP storage engine: An error ocurred while the dimension, with the ID of 'ApShell', Name of 'C_ACCT' was begin processed.
    Server: The current operation was cancelled because another oparation in the transaction failed.
    well, this is the second time i installed SAP BPC 7.5 with the same error.
    For other side, when I trying to process one dimension show me the next message:
    - Errors in the metadata manager. The process type specified for the C_ACCT dimension is not valid since it is not processed.
    I think that the problems is the OLAP, something about security in SQL SERVER.
    I putting the list of component in my PC.
    1.I am using VM VsPhere
    2. Windows Server 2008 R2 Enterprise 64 bits
    3. SQL Server 2008 R2
    4. SAP BPC 7.5 for microsoft
    if someone can help me ?
    thanks in advance.
    Edited by: Alan Valenzuela on Aug 17, 2011 12:30 PM

    I believe, I have the answer, I followed this steps.
    I had the same issue. This sorted it for me:
    1. Open up SQL Management Studio
    2. Go to Security > Logins > NT AUTHORITY\LOCAL SERVICE
    3. Right click > Properties
    4. In the User Mapping section tick ApShell
    5. In the bottom section of the screen, tick db_datareader
    It's works.
    I have to say thanks to David Gilbertson
    I saw his answered in this link BPC 7.5. MS   cannot open databse "apShell"
    Edited by: Alan Valenzuela on Aug 18, 2011 10:14 AM

  • Problem with OLE - Excel file saving to the desktop error occuring

    Hello,
    I am saving my excel sheet workbook created by OLE on to my local machine.
    it is downloading properly but the issue is it is generating one temp file simultaneously,
    Example : if my file name is Test it is generating test and '~$test" file.
    i am not able to close the file ...it is saying that "excel sheet is editing by other program"
    Help me out ...

    hope you are following steps to close the file and excel...
    below code is just for reference...
    1. Save the file
    CALL METHOD OF h_work_book 'SaveAs' EXPORTING #1 = i_filename .
    2. Close the excel window
    GET PROPERTY OF h_excel_application 'ActiveWindow'  = h_activewindow .
    CALL METHOD OF h_activewindow 'Close' .
    3. Free all the OLE object you have
    FREE OBJECT : h_excel_application ,
                      h_activewindow      ,
                      h_work_books        ,
                      h_work_book         ,
                      h_active_cell       .
    4. Call FM FLUSH in the end
    CALL FUNCTION 'FLUSH'.

  • Report with OLE Object Problem (Crystal Report 11)

    Post Author: ibertola
    CA Forum: General
    Hi all,I'm a new user, and I've got a problem with OLE object. I would like to have a report that show me ONLY one of many OLE (word document) in Crystal structure.I've created 3 section detail, and in each one I've insert OLE object (creating from a file, and LINK).So, if I change one document stored locally, and then refresh the report, the content doesn't change like the linked file! Actually I've got all locally  Please help me.

    CR XI r2 is not supported on WIN 2008. See the [supported platforms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7081b21c-911e-2b10-678e-fe062159b453]
    documentation  and [this|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567] wiki.
    Ludek

  • Acrobat Problem with Vista X64 OLE calls

    Acrobat Problem with Vista X64 OLE calls - CreateObject("AcroExch.AVDoc") does NOT open its window in the CreateObject("AcroExch.App") - but opens a new (invisible) window. Works correctly in XP x64 and 32 bit Vista - happens with Acrobat v8 and v9.

    Again, I contend that something changed between 8.1.2 and 8.1.3.
    refer to http://www.adobeforums.com/webx/.59b6fe7c
    To show the viewer, use the show method after the document is opened.
    In 8.1.2 you did not have to perform this extra step.

  • Problem with Protected Excel sheets through OLE

    Hi Friends
    We are facing the problem with the protected sheets in excel, when we are accessing worksheets via SAP.
    We can insert the values in the protected sheet and we can do other manupalations, but when we are trying to do the autofit for the protected sheet via SAP, then its throwing an error while making it as Visible in SAP ECC 6.0.
    Though it is valid, because even when we do in the excel itself, it wont allow the user to shrink the columns, but this one is possible in ECC 5.0  and we can make excel is visible on the screen.
    I would like to know is this SAP Version problem or anything else apart from this? and I would like to know is there anyway to unprotect and protect the sheet through ABAP program with out a password. Now my clients wants the autofit though its protected.
    Please give me any suggestions.
    Thanks
    Praveen

    its bug with ECC 5.0. If we want to make it auto fit we need to unprotect, then auto fit.
    Later we can protect again

  • I am having problem with MDV Studio.

    Hello happy guys, whatzup? Guess all ya 'r doing fine? Right!
    I am using Dreamweaver from Macromedia Studio 2004. I am having problem with Inserting Record into Access database using the forms I create on my .asp document. I am using IIS and Javascript as my Document Technology. The error I usually have is:
    "Technical Information (for support personnel)
    Error Type:
    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
    /site_files/user_regform.asp, line 78
    Browser Type:
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.28 Safari/530.5
    Page:
    POST 41 bytes to /site_files/user_regform.asp
    POST Data:
    uname=Honesty&pword=admin&MM_insert=form1
    Time:
    Tuesday, June 02, 2009, 1:49:39 PM"
    Please I need assistance on how to solve this problem. Thank you.
    Similarly, I don't really know how to write sql strings - I just give commands and Dreamweaver will generate the sql strings. Yet, I still observe errors. But I think, for the sql aspect, I'm undergoing a tutorial note that I downloaded on the internet.
    Please help me to solve this error problem at the moment. The sql knowledge is not the problem. I can get that at my leisure.
    Thank you.
    Eyo Eyo (Nigeria).

    It sounds like you do not have an internet connection (wifi arcs in the upper left does not mean you have a connection) since Safari does not work also.. Try the following:
    - Reset the iPod. Nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset networks settings: Settings>General>Reset>Reset Network Settings
    - iPhone and iPod touch: Troubleshooting Wi-Fi networks and connections

  • Memory problem if OLE-object references to WMF files

    Hi there,
    I have a report with an OLE object containing WMFs.
    The graphic files are variable and their name is loaded from the database during runtime (path + filename).
    Running the report leads to 185 pages, each one containing a different WMF.
    If I preview the report in CR, everything looks fine.
    If I print the report, the OLE object / graphic is left empty....
    If I export the report to PDF (as an example) I get the error message 'memory full'. Reducing the data set to ~50, the PDF is created. But the pictures get resized (much bigger) and only parts are visible.
    The machine I'm using doesn't have any memory problems.
    The WM files are only 3 to 12 KB each.
    If I convert the WMFs to JPG and use these within the report it works...
    Problem with this: a loss of quality (it is necessary to stretch the pictures to certain size)
    Thanks in advance for any ideas!
    Susanne
    I'm using CR 2008 SP 3 on Windows 2003 Server

    Format the pictures outside of CR for best results.

  • Problem with Connection Manager. Can't change connection string / Server name

    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin-top:0cm;margin-right:0cm;margin-bottom:10.0pt;margin-left:0cm;line-height:115%;font-size:11.0pt;font-family:'Calibri','sans-serif';}
    .MsoChpDefault
    {font-size:10.0pt;}
    .MsoPapDefault
    {line-height:115%;}
    @page Section1
    {size:612.0pt 792.0pt;margin:72.0pt 72.0pt 72.0pt 72.0pt;}
    div.Section1
    {page:Section1;}
    Hi,
    I have copied a number of SSID packages from a live server to my test server and am trying to get them up and running but I have a problem with the connection. The only thing that is different is the server name. I decided to keep the same connection in the connection manager as it is referenced in a dtsConfig file. I changed the dtsConfig file to reference the new servername [Data Source= new test server name]. I also check my paths and they are pointing to the correct config locations etc.
    I found this post which was similar to my problem but I still get problems with the connection
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1319961&SiteID=1
    I updated the connection by changing the server name in the actual connection. I did this from the data flow tab in the Connection Managers sections (MS Visual Studio). Right clicked - Edit - changed the name of the server name to my test server and selected the database. Test connection was fine, and saved this.
    Once I saved this, the connection string changed to my current test server in the properties of the connection. However when I run the package I get the following error:
    Error: 0xC0202009 at ReportsImport, Connection manager "myconnectionstring": SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Login timeout expired".
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Named Pipes Provider: Could not open a connection to SQL Server [53]. ".
    Error: 0xC020801C at Myprocess import from file, BuyAtReportsImport [79]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "myconnectionstring" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    Error: 0xC0047017 at Myprocess import from file, DTS.Pipeline: component "ReportsImport" (79) failed validation and returned error code 0xC020801C.
    Error: 0xC004700C at Myprocess import from file, DTS.Pipeline: One or more component failed validation.
    Error: 0xC0024107 at Myprocess import from file: There were errors during task validation.
    So even if I change the existing connection properties and save and Build my package again, my connection properties (connectionstring, servername etc) all revert back to its original data source when I re-open the package. Simply it does not seem to be saving the connection properties i put in.
    What am I doing wrong or how can I change the existing connection manager to look at the new server. The database is  the same and I have full admin privilege on the server.
    I don't want to recreate my packages as there are alot and they are not simple.
    After changing the connection properties, saving and reloading I get a connection error. But this is because it is not retaining the new connection manger setting i entered.
    Incidentally - I created a new SSID to perform a simple connection and write to the the server and it was OK so there is no problem with actually seeing the my test server.
    Thanks in advance

    Yes, the package is in visual studio and I have executed it. There are no errors but in the output i have the error message about my connection. My dtsConfig file is added to the project in the 'Package Configuration Organizer' and path and files are correct. This is the output error:
    Error: 0xC020801C at xx import from file, xxReportsImport [79]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "myconnectionname" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    I will try and run it using dtexec.exe. if I have two config files do i use
    dtsexec.exe /f <packagename> /conf <configfile> /conf <secondconfigfile>

  • Dump while running a program with OLE Excel download facility in ITS

    Hi,
    Because of some complex requirment, I had created a report program which will download the data to an Excel sheet using SAP OLE Automation Controller. For this report i had created a tcode too.
    The report which i developed is perfectly working fine in SAPGUI. But if i access the same report throught SAP ITS serice. I am getting a dump. Please find below the dump details. I am not able to figure it out why the dump is not coming in SAPGUI.
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          09.03.2010 05:35:41
    Short text
    The current application triggered a termination with a short dump.
    What happened?
    The current application program detected a situation which really
    should not occur. Therefore, a termination with a short dump was
    triggered on purpose by the key word MESSAGE (type X).
    |
    Error analysis
    Short text of error message:
    Control Framework : Error processing control
    Long text of error message:
    Diagnosis
    An error occurred when the system tried to process the commands
    from the Automation Queue on the presentation server.
    There are several possible reasons for this:
    - The installation of the SAP GUI on the presentation server is
    faulty or obsolete.
    - There is an error in the application program
    - There is an error in the SAPGUI or an integrated control
    Procedure
    1. Make sure that you have imported the appropriate Support
    Package, the current kernel, and GUI patch for the release of your
    system
    2. Check whether the error occurs locally on one or a few PCs, or
    generally on all PCs. Note whether the error only occurs for some
    users, for example because of a specific Customizing setting.
    If it only occurs locally, this suggests an installation problem
    with the PC. Check the installation; if necessary, reinstall the
    software. In the dump, search for the SY-MSGLI field, since it may
    point to the cause of the error.
    3. Activate the Automation Trace (in accordance with SAP Note
    158985).
    4.Start the transaction and continue until the screen immediately
    before the dump.
    5. From the System -> Utilities menu, choose Autom. Queue,
    Synchronous Processing.
    The status bar of the GUI displays the text:
    "Automation synchron flush mode on"
    6. If you now proceed with the application, the short dump will
    display the ABAP call that caused the error; the Automation Trace
    will contain the error on the presentation server.
    7. If necessary, load the short dump and trace files on to
    sapservX, so that SAP can analyze them.
    Technical information about the message:
    Message class....... "CNDP"
    Number.............. 006
    Variable 1.......... " "
    Variable 2.......... " "
    Variable 3.......... " "
    Variable 4.......... " "
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "MESSAGE_TYPE_X" " "
    "SAPLOLEA" or "LOLEAU02"
    "AC_SYSTEM_FLUSH"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    User and Transaction
    Client.............. 120
    User................ "XXXXXX"
    Language Key........ "E"
    Transaction......... "ZGA_BEACON_SOX_RPT "
    Transactions ID..... "4B95E2560EB62F9AE10000000A241C33"
    Program............. "SAPLOLEA"
    Screen.............. "ZGA_REP_BEACON_SOX_REPORT 9000"
    Screen Line......... 0
    Information on Caller ofr "HTTP" Connection:
    Plug-in Type.......... "HTTP"
    Caller IP............. "10.36.28.52"
    Caller Port........... 8000
    Universal Resource Id. "/sap/bc/gui/sap/its/webgui/~flNUQVRFPTIzNzIxLjAxNC4wNC4
    wNA=="

    Hi All,
    FYI.....
    As I said because of my complex requirement, i am using OLE excel download facilities to download the data. ITS wont support this OLE download facility.  This can be done only through local SAP GUI.
    The reason for this is that, when i am using this download facility through SAP GUI, OLE object thats used in my report program will directly talk to the Local OLE excel objects (i.e. the local installed Excell application) and download the data. But if it's through ITS, my program wont be able to communicate with the local excel OLE objects because of this i am getting a DUMP.
    Thank You all for the support. All the best in future. 
    Regards
    Maneesh Chandran

  • Problems with Labview and Windows XP with error -214721786​5

    Hello. Im a new beginner in Labview and am having a problem with a error message
    I dont understand. Im running Labview on a pc-logger with windows XP.
    The program is written by a guy on my university, and logs voltage from
    a solar cell panel. He doesnt have the time to check in to it, so Im supposed to
    find out what's wrong.
    The error message is as follows :
    Error -2147217865 occured at Cmd Execute.vi->DB Tools Insert
    Data.vi->Solcelle.vi
    Possible reasons :
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers,
    [MySQL][ODBC 3.51 Driver][mysqld-3.23.38-log]Can't open file :
    'solcelledata.MYD'. (errno: 145). in Rec Create - Command.vi-
    >Cmd Execute.vi->DB Tools Insert Data.vi->Solcelle.vi
    I really hope someone can tell me what's wrong and specifically what to do
    with it, or possibly guide me to someone who could suggest a solution to this
    problem.
    Reguards
    chrisdee

    Hi Chrisdee,
          (.. not to discount what TimoS has suggested, however...) 
    Embedded in the error information you provided:
    ... Can't open file : 'solcelledata.MYD'.
    Sounds like the program needs this file?  Has the program been moved to a new location?
    just a wild guess!
    Cheers
    Message Edited by Dynamik on 10-06-2005 04:53 AM
    When they give imbeciles handicap-parking, I won't have so far to walk!

  • A problem with ArrayLists

    Hello
    I'm pretty new to Java, and sometimes all those objects, instances, classes, data types etc confuse me. I'm having some kind of a problem with ArrayLists (tried with vectors too, didn't work) . I'm writing a program which takes float numbers from user input and does stuff to them. No syntax error in my code, but I get a java.lang.ClassCastException when I run it.
    I insert stuff to the ArrayList like this:
    luku.add(new Float(syotettyLuku));no problem
    I'm trying to access information from the list like this inside a while loop
    float lukui = new Float((String)luku.get(i)) .floatValue();but the exception comes when the programme hits that line, no matter which value i has.
    Tried this too, said that types are incompatible:
    float lukui = ((float)luku.get(i)) .floatValue();What am I doing wrong? I couldn't find any good tutorials about using lists, so i'm really lost here.
    I'll post the whole code here, if it helps. Sorry about the Finnish variable and method names, but you get the idea :)
    package esa;
    import java.io.*;
    import java.util.*;
    public class Esa {
    static final int maxLukuja = 100;
    static BufferedReader syote = new BufferedReader(new InputStreamReader(System.in));
    static String rivi;
    static String lopetuskasky = "exit";
    static double keskiarvo;
    static ArrayList luku = new ArrayList();
    static int lukuja;
    static float summa = 0;
    // M��ritell��n pari metodia, joiden avulla voidaan tarkastaa onko tarkasteltava muuttuja liukuluku
    static Float formatFloat(String rivi) {
        if (rivi == null) {
            return null;
        try {
            return new Float(rivi);
        catch(NumberFormatException e) {
            return null;
    static boolean isFloat(String rivi) {
        return (formatFloat(rivi) != null);
    // Luetaan luvut k�ytt�j�lt� ja tallnnetaan ne luku-taulukkoon
    static void lueLuvut() throws IOException{
        int i = 0;
        float syotettyLuku;
        while(i < maxLukuja) {
            System.out.println("Anna luku kerrallaan ja paina enter. Kun halaut lopettaa, n�pp�ile exit");
            rivi = syote.readLine();
            boolean onkoLiukuluku = isFloat(rivi);
            if (onkoLiukuluku) {
                syotettyLuku = Float.parseFloat(rivi);
                if (syotettyLuku == 0) {
                    lukuja = luku.size();              
                    break;
                }  // if syotettyluku
                else {
                    luku.add(new Float(syotettyLuku));
                    i++;
                } // else
            } // if onkoLiukuluku
            else {
               System.out.println("Antamasi luku ei ole oikeaa muotoa, yrit� uudelleen.");
               System.out.println("");
            } // else
        } // while i < maxlukuja
    // lueLuvut
    static void laskeKeskiarvo() {
        int i = 0;
        while(i < lukuja) {
            float lukui = ((float)luku.get(i)) .floatValue();
            System.out.println(lukui);
            summa = summa + lukui;
        }   i++;
        keskiarvo = (summa / lukuja);
    } // laskeKeskiarvo
    public static void main(String args[]) throws IOException {
    lueLuvut();
    laskeKeskiarvo();
    } // main
    } // class

    Thanks! Now it's functioning.
    As I mentioned, I tried this:
    float lukui = ((float)luku.get(i))
    .floatValue();And your reply was:
    float lukui =
    ((Float)luku.get(i)).floatValue So the problem really was the spelling, it should
    have been Float with a capital F.
    From what I understand, Float refers to the Float
    class, Correct. And float refers to the float primitive type. Objects and primitives are not interchangeable. You need to take explicit steps to convert between them. Although, in 1.5/5.0, autoboxing/unboxing hide some of this for you.
    so why isn't just a regular float datatype
    doing the job here, like with the variable lukui?Not entirely sure what you're asking.
    Collections take objects, not primitives, and since you put an object in, you get an object out. You then have to take the extra step to get a primitive representation of that object. You can't just cast between objects and primitives.
    Again, autoboxing will relieve some of this drudgery. I haven't used it myself yet, so I can't comment on how good or bad it is.

  • Attention! About problems with Oracle 8.1.6 on newer Linux distributions!!

    Hello all, I've just got some feedback from a helful person at http://www.crunge.com/ about the problems concerning RedHat Linux 7.0 and Oracle 8.1.6, this MAY apply to other newer linux distributions.
    I've tried, without luck, to install Oracle on RedHat 7.0 and Slackware 7 (the newest one), and it would not install properly, kept stopping right about when the database initialization started at 80% finished install procedure. Sp i wrote them a mail, not expecting an answer really, but I did got an answer, and below is what the person said;
    Thanks for the feedback.
    Oracle 8.1.6 does not work under Red Hat Linux 7. Yes, that's the problem
    that I mentioned in the doc--you get to 80% and the DBCA crashes and the
    Oracle executables die.
    I've heard, but I haven't tried it myself, that if you install the latest
    glibc errata (2.1.94) then the DBCA completes but the Oracle executables
    still die. The DBCA problem was apparently a Java issue that is fixed in
    the errata. But you're still out of luck since the exes won't work.
    It might appear that this is a problem with Red Hat Linux 7. But it appears
    that it is a problem with some assumptions that Oracle made, assumptions
    that worked with glibc 2.1.3 (the C library included with RHL 6.2) but which
    prove false with later glibc versions. As other Linux distributions adopt
    the new glibc Oracle will fail to work on them as well.
    The best advice I can give at this point is to install and run Oracle on
    Red Hat Linux 6.2. Hopefully Oracle will address the glibc issues with the
    8.1.7 release.
    Chris
    p.s. Do not construe this
    as an official Red Hat response; I merely forwarded your e-mail from my
    home account. This response and the web pages I put up are mine.
    So i guess one sollution to the problem is to try a bit older version of the linux you are having problems with (i tried it on RH 6.1 and it worked like a dream).
    Another solution can be to wait it out to check and see if Oracle put a fix out here on technet...?
    Hope this helps people bogged down in fustration.
    Regards
    Ole-Henrik Helin
    Computer consultant, Mesan AS
    Norway

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Graham Strang ([email protected]):
    Hey all. Just to let you know that it is entierly possible to get Oracle to install under RedHat 7 and run happily. I have done it on two differenct machines. There is a bit of fooling with glibc to get it to work. However after you do that it works like a dream. VALinux has a work around posted at: http://ftp.valinux.com/pub/support/hjl/glibc/sdk/2.1/
    The READEME.Oracle8i has the work around and the two tar balls are the necessary files. I followed the directions to the letter and they worked like a dream. Any questions feel free to drop me a line.
    Cheers,
    Graham<HR></BLOCKQUOTE>
    OK, so i followed your instructions to the letter (several times), sure I get past the 80% bug but now I have new erros coming up , -"Error in invoking target install of makefile /usr/oracle/sqlplus/lib/ins_sqlplus.mk". I get a whole series of these errors for various mk files. These errors apear during the link phase of the install, prior to the glibc workaround I was not getting this. I am a newbie to Linux and trying to give it a serious go but so far I have had little luck
    Any help appreciated.
    Nick
    null

Maybe you are looking for

  • Pass Parameter To Configuration Entry Point

    In TestStand 2010 I have added a configuration entry point to select a configuration file. (Configure\Select Config File). I'm displaying a LabVIEW GUI which basically prompts the user to select a file. The file path needs to be stored in "FilePath"

  • 10g Developer suite

    Hi all, I am using Developer v. 6i for a long time. No I need to convert all files to 10g developer suite. How can I convert It. 10g Developer suite should install all client site also .. or it is web type application... all file to keep in server ma

  • Can anyone explain me what is Attribute Changerun, in detail, Urgent

    Can anyone explain me what is Attribute Changerun, in detail

  • Launched apps are not active. Finder jumps to front.

    Since updating to OS 10.9, when I launch an app it does not become the active window.  Instead, the Finder jumps to the front.  Is there a way to change this?

  • Wireless Inernet is Running very Slow.

    Hi,       We have 2 Macbook pros(2011 late, 2012 late) , 2 pc notebook laptops, 2 ipads and 3 iphones. Internet on all the devices is working fine except Macbook pro (2011 late). Website are taking forever to load. At the same time fan is running all