What happens to RandomAccessFile when seek operation fails?

Hi,
I wonder what happens to RAF when the seek() op fails - does the file remain open?
I guess i should close it if fails, what is the best thing to do - protect or catch exception?
Am i wrong about it?
Thanks.

I wonder what happens to RAF when the seek() op fails - does the file remain open?In the absence of evidence or documentation to the contrary that is what you should assume.
I guess i should close it if failsWhy? All it means is that that offset doesn't exist within the file.

Similar Messages

  • What happens in OBAW when a record in OLTP is updated ?

    Hello,
    I wonder what happens in OBAW when a record in OLTP is updated ?
    I mean... I've ETLed the record a couple of days ago, and it is there in OBAW. Now for some reason the OLTP is changed...
    Pls... when we do the new ETL (incremental) does that record in OBAW gets updated ?
    BTW... the OLTP in reference is EBS.
    Txs. for any help.
    Antonio

    That is where "Prune Days" in the Execution Plan Parameters comes into play. Data which has been updated in the source system since "Prune Days" ago is re-extracted.
    Hemant K Chitale

  • What happens to objects when you redeclare a new object?

    ... and is there a more proper way of "deleting" them from memory, or is it a case of waiting until the garbage collector in java sweeps them up?
    i.e.
    private CustomObjectType myObject;
    public final void myMethod() {
    myObject = new CustomObjectType("I am the first object");
    // do some temporary work with myObject
    /// now I need to do more work with another temporary object, so just replace the "link"
    myObject = new CustomObjectType("I am a second object");
    Is it better to declare new variables to hold this second object?
    Should a person declare the object to be null when no longer required?
    Do I ever need to worry about this, does the garbage collector sort out references for me?
    (Please go easy, still learning and don't really need to know this right now but I'm curious! :)

    What happens to objects when you redeclare a new object?If you go:
    Dog myDog = new Dog();
    and then go:
    Dog myDog = new Dog();
    you are replacing the first reference to Dog() with another one. I don't think it would make sense to do this because it is redundant.
    But if you go:
    static Dog myDog = new Dog();
    and then go:
    static Dog myDog = new Dog();
    then then second one will be ignored because the first one already assigned Dog() to myDog.. so the second one won't replace the first one - it will just be ignored or generate an error.
    is there a more proper way of "deleting" them from memory, or is it a case of waiting until the garbage collector in java sweeps them up?In c and c++ you have to think about when the life of an object ends and destroy the object to prevent a memory leak. But in Java the garbage collector takes this task on if a certain amount of memory is used. If you don't use a lot of memory the gc won't bother and the objects will be destroyed when you exit the program.
    You can use:
    finalize(){
    // insert code to be executed before the gc cleans up
    and if you call System.gc() (which you probably won't need to do) then the code in the finalize() method will run first e.g. to erase a picture from the screen before collecting the object.
    private CustomObjectType myObject;public final void myMethod() {
    myObject = new CustomObjectType("I am the first object");
    // do some temporary work with myObject
    /// now I need to do more work with another temporary object, so just replace the "link"
    myObject = new CustomObjectType("I am a second object");
    you could do:
    public class CustomObjectType{
        //this constructs an instance of the class using a string of your choice
        CustomObjectType(String str) {
            System.out.println(str);
        static void main(String[] args){
            CustomObjectType myObject = new CustomObjectType("I am the first object");//  This sends the constructor the string you want it to print
            CustomObjectType myObject2 = new CustomObjectType("I am the second object");//  This sends the constructor the string you want it to print
    }Bruce eckel wrote Thinking in Java 4th edition considered to be the best book on Java because of how much depth he goes into, although some recommend you should have atleast basic programming knowledge and a committment to learn to get through the book.
    I just started it and it helps a lot. Maybe u could borrow it from the library.. good luck!

  • What happens to library when uninstalling iTunes? Please!!

    Silly question, I know...
    But as I'm experiencing the same problem as everyone else after updating to I Tunes 6 (computer crash + ipod not recognized by itunes), I want to uninstall and reinstall it...
    So, what happens to all my music files after I uninstall itunes?? Will they still be there after reinstall or lost forever??
    Thanks for your answers.

    I always wondered if my music would be gone if I uninstalled iTunes. It does not erase you're music.
    This might not be exactly the same problem but lots of people (myself included) had problems after installing iTunes 6.0. I did the following and it finally installed correctly.
    I went to
    http://support.microsoft.com/default.aspx?scid=kb;en-us;290301
    and downloaded the Cleanup utility near the bottom of that page. When it installs on your machine it will scan your computer for every installer every ran on you're machine. Only select iTunes and Qtime and delete those 2 installers. Then I went to add/remove programs and removed iTunes and Qtime. Prior to this Qtime would not unistall but now it did. Funny thing was there was no prompting by windows once I hit "remove/repair" in the "add/remove programs" function.
    Then rerun the iTunes 6.0.1 update. That had been failing to install Qtime prior to this but now it installed and I see all my music again and iTunes works. Let me know if this does the trick, I hope so.

  • What happens after: "Erase data after ten failed passcode attempts"  ?

    What happens after data is erased from the iPhone after ten passcode attempts?
    Is it the same thing as Settings->General->Erase all content and settings ?
    Does the iPhone essentially becomes a permanent brick, or does the iPhone appear as a fresh device that just awaits reactivating?
    Thanks~!

    All the user data on your phone is encrypted. When 10 failed attempt occur, the phone just securely erases the encryption key (overwrites it multiple times), then reboots. Without the encryption key present, even though all the data is still there, it cannot be decrypted and read anymore. Its just a load of random bits, and useless. The phone will just go through it's 'factory default' setup and quick format the flash ready to be used again as if it was a completely blank brand-new phone. At no point during any of this process is the system partition (the area that stores ios4) touched, so there is no danger of the phone being "bricked".
    And even if the system partition was erased, you could still restore the phone using DFU mode. It's quite difficult to permanently brick an iPhone, you can recover from most problems.

  • What happens to replicat when a checkpoint table is accidentally removed ?

    Please let me know what happens when a active checkpoint table is removed?
    Does the replicat abend or does it pick from where it left off by reading the trail file.

    Hi,
    Oracle GoldenGatge keeps track of the details of the transactions that are replicated by two methods.
    1. Firstly and always GoldenGate writes to a checkpoint file which resides in the DIRCHK directory.If this Checkpoint File is lost or removed then GoldenGate loses track of your process.
    2. Optionally, you can create a CHECKPOINTTABLE during the creation of the Replicat Process. This Checkpoint table can be specified Globally in the ./GLOBALS parameter or separate checkpoint tables can be created for each processes.
    But Oracle highly recommends to create the Checkpoint table.
    When replicat starts, it will compare the checkpoint file with the checkpoint table. This has been brought because, in the event of failure, the checkpoint file and checkpoint table are referred or read by these processes and it gets started from the point of failure avoiding the re-capture and re-apply of the transactions.
    An another useful thing in using the Checkpoint table is, If you stop the Replicat process and flashback the target database and then start the replicat process again, you do not have to change or modify anything at the GoldenGate level. The Replicat process will just pick up as if you also flashed back the GoldenGate inspite of having all the trail files. This is because your Checkpoint Table will also get flashed back and the replicat process reads the checkpointtable and works accordingly.
    Regards,
    Veera

  • What happens to PR when the related PO is cancelled

    Hi guys
    What happens to the Purchase Requisition (PR) when the related Purchase ORder is cancelled..........!!
    What is the process..
    Regards
    Sreee

    If you check the box 'cancel requisition' when you cancel the PO, the req is cancelled, else the req is not cancelled and should become available again in the autocreate pool.

  • Tech Comm Suite 3.5 trial updated my licensed Acrobat 9.5 to X, what happens 9.5 when trial is over?

    After installing Technical Communications Suite 3.5 trial version, it updated my Acrobat Pro 9.5 to version X. What happens to my licensed version 9.5 when trial expires? How do I get it back?

    While that is a good answer to my question; it is not a good solution to my situation since it is a corporate license that has to be reinstalled by our IT department. That is a very cumbersome process and puts me, as an end-user testing this new product, in a poor situation and effectively shuts down my production for an unspecified time frame when the trial expires.

  • What happens to iMessages when the recipient's phone is off? ...

    What happens to messages sent via iMessage or as text messages if the recipient's phone is off? Are they queued and resent when the phone is turned on? Or do they end up in the bit bucket?
    Thanks!
    Chris

    If the recipient is activated his imessage and if he turns on the cellular data or wifi your imessages will get delivered whenever switched on the wifi network or 3g

  • What happens at backend when we fire alter database commit to switchover to physical standby

         Hi,
    What exactly happens at backend when we fire alter database commit to switchover to physical standby.
    how the transition happens?
    Thanks

    Hi,
    The following will happen at the backend
    1.) Notifies the primary database that a switchover is about to occur
    2.) Disconnect all users from the primary database
    3.) Generate a special redo record that signals the End of Redo (EOR)
    4.) Converts the primary database into a standby database
    5.) Once the standby database applies the final EOR record, guaranteeing that no data loss has been lost, converts the standby database into the primary database.
    The new standby database (old primary) starts to receive the redo records and continues process until we switch back again. It is important to remember that both databases receive the EOR record so both databases know the next redo that will be received.
    Regards,
    Pradeep. V

  • What happens to objects when I close a query?

    Hi,
    In my application I do a JDO query a couple of layers down in the
    architecture. I need to return these results to a higher layer. In the
    layer where I do my query, I add the objects to another Collection than
    the one given as a result of query.execute(). What happens to my
    objects when I call query.closeAll() before returning the result sets to
    the higher layer? Will they be made transient? Will I still be able to
    traverse the object graph? The JDO spec only states "that the results
    remain in their current state", although I am not so sure what exactly
    that implies.
    Thanks,
    khamsouk

    The objects returned from a query become part of the owning
    persistence manager's cache. That means they're under JDO
    management until the persistence manager is closed (or until
    you make them transient yourself). Basically retrieving objects via
    a query is just like retrieving them through a relation or via
    PM.getObjectById.

  • What Happen into Tablespace, when Drop Any Object??

    Hi people.
    I have a question about the store into tablespace, What happen when you make the follow taks into database:ç
    When you drop a table??? Change the size into tablespace?? Reduce the Size on tablespace..??
    What are the diferents between Delete table and Truncate Table...Change the size into tablespace?? Reduce the Size on tablespace..??
    Thank a lot for your help and Answers..Because I can clear my mind in diferents concepts.
    Regards.

    lokimoix wrote:
    Hi people.
    I have a question about the store into tablespace, What happen when you make the follow taks into database:ç
    When you drop a table??? Change the size into tablespace?? Reduce the Size on tablespace..??
    What are the diferents between Delete table and Truncate Table...Change the size into tablespace?? Reduce the Size on tablespace..??
    Thank a lot for your help and Answers..Because I can clear my mind in diferents concepts.
    Regards.Well, you could test it for yourself and see for yourself . .
    However,
    Nothing you have described changes the size of the tablespace. Those actions simply free up previously allocated space within the tablespace, allowing it to be
    reused.
    DROP TABLE releases all the extents allocated to that table, allowing the space they occupied to be allocated to any segment that may need it - AND REMOVES THE TABLE FROM THE DATABASE (well, there are now recyclebin considerations, but that is a different question).
    DELETE just deletes rows from a table, freeing up space on the blocks that those rows occupied. All of the extents allocated to that table remain allocated to it but the space vacated by the deleted rows is available to be re-used by new rows within that table.
    TRUNCATE table releases all the extents allocated to that table, allowing the space they occupied to be allocated to any segment that may need it, BUT UNLIKE DROP TABLE, the table structure remains in place.
    The above is just a high-level description of the differences, there are some details that some people will call me out on, but for your level of understanding these are sufficient for the moment. You really, REALLLY need to spend more time in the Concepts manual.

  • What happens to data, when Info object property is changed to have ALPHA

    Hi experts,
    I have a trivial question,
    What happens to existing data, when I change the info Object property to have an ALPHA convesion routine ? Specifically I need to know, will it remove any similar looking entries ??
    thanks in advance
    D Bret

    Check this:
    Re: Alpha conversion for an existing infoobjects
    Re: ALPHA conversion routine - how to change an existing InfoObject
    Alpha conversion
    TCODE: RSMDCNVEXIT in BW and What is Alpha Conversion?
    Hope it helps..

  • What happens to files when they are deleted on the iPhone?

    When you delete files like videos, podcasts or emails directly on the iPhone by swiping it and hitting the "Delete" button what happens to these files? Are they instantly removed from disk or they go to some sort of "Recycle Bin"?
    Do you know that bar on iTunes showing how your iPhone disk is being used, with "Audio, Video, Photos, Apps, Other and Free"?
    I wonder if having more than 4Gb on the "Other" category is related to this practice in any way?

    Other includes data such as 3rd party app settings and data created and stored by a 3rd party app, email stored or cached locally including email attachments, Safari history, cookies, and cache, notes, voice memos, visual voicemail, contacts, calendar events, etc.

  • What happens to calls when voice mail is not set up?

    Odd question...what happens to calls placed to a number that does not have the voice mail set-up yet?  Do they show up as missed calls or anywhere in the call log for that number?  Or is it like the call never happened because it was not answered and could not go to voice mail?  Also curious as to whether or not missed calls show up on the phone once it is powered back on after having been shut off (powered all the way down).  I realize those calls will go to voice mail (provided it has been set-up) but will the calls show up as missed on the phone when it is turned back on?

    Not odd...On Verizon if it is not set up, you will hear a recording that says "Im sorry, but the party you are trying to reach has a vm box that has not been set up yet". It will show as missed if the phone is on, and will appear in the log if the phone is on. If the phone is powered off, the call does not show in the log when turned back on. It will appear as if it never happened. You will only know if you get a VM (if its set up) or if the person tells you, hey I called you!

Maybe you are looking for

  • Error while installing OIM 9.1.0.1 server.

    Hi, I installed database10.2.0.1 with DBA Group: oinstall. i also installed the weblogic 10.3.0. Now I am trying to install OIM server 9.1.0.1 on linux. Before installing it i tried to run the prepare_xl_db.sh file by copying it to oracle home direct

  • Error message "some of your quicktime software is out of date...."

    After about 8 hrs of troubleshooting so far I need help here...please...I have a new ipod touch 3g (32gb) that requires itunes-9 and i have itunes-8. when i try to load itunes-9 i get the same error message about apx. half way thru the install. at th

  • Use a Java Script variable's value in some other  jsp ....how?

    Please help me................. <%@ page import="java.util.*" %> <%@ page language = "java" import="java.sql.*,javax.servlet.*,javax.servlet.http.*,java.util.*" session = "true" %> <HTML> <HEAD> <TITLE>Create Employee</TITLE> </HEAD> <BODY> <%      C

  • Flash Player not working in Win7 64bit machine

    Greetings. I have spent the past couple of weeks combing through first the help files, and then these forums looking at what should be the same problem I have. Even now up to the past couple of minutes it seems someone besides me is having this issue

  • Load balance issues with RV042

    Hi, I have some issue to configure my RV042. I have 8 voip phones and 10 pcs on my network. I used DHCP to attribute IP between 192.168.1.10 and 192.168.1.20 to the phones and over .100 to the PC. I want my phone to have their own connexion. My switc