How to interrupt an funtion call and continue the followed code?

for example, the code:
public class A{
public static void main(String[] args){
int i = 0;
method1();
system.out.println("exit");
public void method1(){
int j = 0;
while(true){
j +=1;
there is a error in method1(), so the call the method1( ) in main() will make an error.
how can i interrupt this funtion call and continue the followed code?

in actually, I can not control the method1(), that's
an remote object function.
So I can not add exception in methoes().Then in your main method catch whatever "Error" your method1 is throwing.

Similar Messages

  • How to detect corrupt archivelog? and continue the backup.

    Hi Folks,
    In RMAN, While doing backup of archivelog, I am getting some error regarding some archivelog are corrupt.I have two question here?
    1) How to detect that particular archivelog is corrupt or not?
    2) how to continue the backup even if we have corrupt archivelog?
    Thanks
    Shailesh

    Shailesh.mishra wrote:
    Hi Folks,
    In RMAN, While doing backup of archivelog, I am getting some error regarding some archivelog are corrupt.I have two question here?
    1) How to detect that particular archivelog is corrupt or not?DBV can be used to detect corruption or archives.
    2) how to continue the backup even if we have corrupt archivelog?What kind of error you are experincing? You can use skip clause if you know which one is corrupted.
    HTH
    Aman....

  • Not enough space to install Mavericks-how do I free up space and continue the install? Help!

    I tried to install Mavericks but shortly after the installation initialized I got a message saying that I didn't have enough space to complete the install.  It asked to free up just under 1 MB of space...but I cannot get access to my hard drive.  When the computer turns on, it loads the OS X utilities screen with the following options
    1 Windows
    2 OS X INstaller
    3 Recovery
    So, I cannot access the MAC HD to free up space or complete the install.  I am stressing that I am going to lose all of my data on my hard drive! Please help!
    P.S We have boot camp and that works fine but cannot gain access to the MAC drive.

    OPTION boot to select your OS X partition:
    Boot Using OPTION key:
      1. Restart the computer.
      2. Immediately after the chime press and hold down the
          "OPTION" key.
      3. Release the key when the boot manager appears.
      4. Select the desired disk icon from which you want to boot.
      5. Click on the arrow button below the icon.
    If you have no OS X volume showing, then you are in deep doo-doo. You will need to erase the OS X volume and reinstall OS X. This would be done from the Recovery HD which you said was an available boot option.
    Install or Reinstall Mavericks or Mountain Lion from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    OS X Mavericks- Erase and reinstall OS X
    OS X Mountain Lion- Erase and reinstall OS X
    OS X Lion- Erase and reinstall Mac OS X
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • How can I use wpg_docload.download_file and prompt the user to save it?

    Hi,
    Posted about this a couple of weeks ago with a text file and got the following code (where x.zip=x.txt) and it worked fine. Problem is that I need to do this with zip files, and when I run the code below, it simply displays the zip file, rather than prompting the user to save the file. Have tried every mime type under the sun. No joy.
    The How to Upload and Download Files in an Application Advanced Tutorial for Release 3.2 does not work for APEX4. Simply creating a file browse item leads to Error ORA-20999: P3_FILE_NAME has to have a valid BLOB column as source. and so I cannot follow that tutorial to get further clues on how to make this work.
    Susan
    Thanks and here's the wpg_docload.download_file code that displays a binary file:
    declare
    lob_loc bfile;
    v_length integer;
    fname varchar2(100) := 'x.zip';
    l_blob blob;
    des_offset number := 1;
    src_offset number := 1;
    begin
    lob_loc := bfilename('CELFILES_9906', fname);
    v_length := dbms_lob.getlength(lob_loc);
    DBMS_LOB.createtemporary(l_blob, FALSE);
    dbms_lob.open(lob_loc, dbms_lob.lob_readonly);
    DBMS_LOB.LOADBLOBFROMFILE(
    dest_lob=>l_blob,
    src_bfile=>lob_loc,
    amount=>v_length,
    dest_offset=>des_offset,
    src_offset=>src_offset);
    owa_util.mime_header('application/zip', false);
    htp.p('Content-length: ' || v_length);
    htp.p('Content-Disposition: inline; filename="' || fname || '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( l_blob );
    DBMS_LOB.freetemporary(l_blob);
    EXCEPTION WHEN OTHERS THEN
    DBMS_LOB.freetemporary(l_blob);
    RAISE;
    end;

    I downlod blobs like this without issue (using IE7 and FF):
    owa_util.mime_header('application/octet', False);
    HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
    htp.p('Content-Disposition: attachment; filename="'||v('P20_FNAME')||'"');
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (l_blob);
    ...Remember, that it's your browser's MIME type settings that determine whether to pop up a save diaglog box. In FF 3.6 > Tools > Options > Applications > Content type. The set action for each mime type.

  • HT1725 I have paid for a movie rental, when trying to download but wifi got interrupted , therefore I can't see the movie in the download section , it's disappear and I have paid for it , how can I find the movie and continue the download ?

    I have paid for a movie rental, when trying to download but wifi got interrupted , therefore I can't see the movie in the download section , it's disappear and I have paid for it , how can I find the movie and continue the download ?

    In the "Store" menu, click "Check for Available Downloads"

  • How to quickly pick up a 2nd call and drop the first call

    If I am on a phone call, and then a second call comes in, then how can I quickly pick up the second call and DROP the first call?  I can do it if I put the first call on hold but then I have two calls going.  If I simply END the first call, then it takes 5 or 6 seconds for the second call to come in.  Several times I have lost the second call because it took too long to transition over. 

    never mind i did a direct chat with a skype rep and got my answer which is no.

  • How can I merge conference calls and hang up on one of the instead of both on iOS 8.1.1

    How can I merge phone Calls and make conference calls with iOS 8.1.1 and hang up on one instead of both of them , it's not giving me an option like before on iOS 7 ?

    The following from the 8.1 user manual (http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf) may help
    Create a conference call. While on a call, tap Add Call, make another call, then tap Merge Calls. Repeat to add more people to the conference.
        Drop one person: Tap  next to a person, then tap End.
        Talk privately with one person: Tap , then tap Private next to the person. Tap Merge Calls to resume the conference.
        Add an incoming caller: Tap Hold Call + Answer, then tap Merge Calls.

  • HT4847 i want to keep and continue the amount of iCloud storage that I currently have

    i want to keep and continue the amount of iCloud storage that I currently have.  How do I extend my current iCloud service beyond the expiration date?

    Are you an ex-MobileMe subscriber who has the complimentary extra storage? If so this will downgrade to the free storage level at the end of next September, and if you want to keep the storage you will need to cancel the downgrade and pay for the additional storage. Note that if you purchase additional storage before next September it will cancel the complimentary storage immediately. Please see
    http://support.apple.com/kb/HT5527
    If you are not an ex-MobileMe subscriber then as said above you need do nothing except make sure you have a valid credit card registered.

  • Hello apple I have the problem with my iPhone and my friends have this problem too. My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it bu

    Hello apple
    I have the problem with my iPhone and my friends have this problem too.
    My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it but when answer both of us can't hear anything and when I put my iPhone to my face the screen is still on and when I quit the phone application and open it again it will automatic call my recent call. And when my friends call me my iPhone didn't show anything even the missed call I'm only know that I missed the call from messages from carrier. Please check these problem I restored my iPhone for 4 time now in this week. I lived in Hatyai, Songkhla,Thailand and many people in my city have this problem.
    Who have this problem??

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • How do I remove iTunes 11 and restore the older version. I really don't like the new interface

    How do i remove iTunes 11 and restore the older version ??

    If you change sync settings it is on your computer and you change it and apply like you always have done.
    As far as list view goes for TV shows

  • How can I download itunes when I get the following errors...have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up..ituneshelper did not install correctly error 7

    How can I download itunes when I get the following errors  ..ituneshelper did not install correctly error 7..I .have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up.
    This has been a problem for 6 weeks now, I retry when I have time and patience and use my other laptop which is also Windows 7 and runs with no problem.
    Every attempt fails when all seems fine on the desktop and I try to log on to Itunes I get the errors.
    Any help greatly appreciated.
    billymac

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (If this won't uninstall press on)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
    C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    and paste into:
    C:\Program Files (x86)\iTunes
    The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
    tt2

  • With my new macbook I attempted to open an older spreadsheet and get the following error message:  "This spreadsheet cannot be opened because ti is too old.  To open it, save it with numbers '09 first"  So how does one do this when I only have ver3.1?

    With my new macbook I attempted to open an older spreadsheet and get the following error message:  "This spreadsheet cannot be opened because ti is too old.  To open it, save it with numbers '09 first"  So how does one do this when I only have ver3.1?

    Numbers 3.x can only open Numbers '09 and later.  You will need Numbers '09 to open Numbers '08 files.
    If it is a single file (or only a few) you can email me and I will open and convert then email back.  My email address is in the "Biography" of my profile.
    You may have Numbers '09 installed.  Look in the folder "/Applications/iWork '09"  if Numbers is in that folder launch it, open the file you tried to open, and save.  Then you should be able to open in Numbers 3.x

  • How to use setFireActionForSubmit with parameters and capture the parameter

    Hi,
    Can anyone explain how to use setFireActionForSubmit.
    I am extending the Controller of ShoppingCartPG. In the extended controller processRequest method I am adding a button to the table and setting up the setFireActionForSubmit, so when the button is pressed it raises the event associated with the setFireActionForSubmit.
    I need to pass the RequisitionLineId as a parameter which is present in the VO associated with the ShoppingCartPG.
    I have used the following code in processRequest
    =================================
    public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    super.processRequest(paramOAPageContext, paramOAWebBean);
    OATableBean otbRN=(OATableBean)paramOAWebBean.findIndexedChildRecursive("ItemTableRN");
    OASubmitButtonBean oasb= (OASubmitButtonBean)paramOAPageContext.getWebBeanFactory().createWebBean(paramOAPageContext,"BUTTON_SUBMIT");
    oasb.setID("addnInfo");
    oasb.setUINodeName("addnInfo");
    oasb.setText("Additional Info");
    String pageName = paramOAPageContext.getRootRegionCode();
    Hashtable params = new Hashtable (1);
    params.put ("param1", pageName);
    Hashtable paramsWithBinds = new Hashtable(1);
    paramsWithBinds.put ("param2", new OADataBoundValueFireActionURL(oasb, "${oa.encrypt.current.RequisitionLineId}"));
    oasb.setFireActionForSubmit("addnInfoEvent",params,paramsWithBinds,false,false);
    otbRN.addIndexedChild(oasb);
    =================================
    And in processFormRequest method I am capturing the event "addnInfoEvent" and trying to capture the RequisitionLineId which I have passed it as a parameter.
    This is the code I have used in processFormRequest.
    =================================
    public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    super.processFormRequest(paramOAPageContext, paramOAWebBean);
    OAApplicationModule localOAApplicationModule = paramOAPageContext.getApplicationModule(paramOAWebBean);
    String strEvent= paramOAPageContext.getParameter(EVENT_PARAM) ;
    if ("addnInfoEvent".equals(strEvent))
    Number localNumber = 0;
    try {
    localNumber = new Integer(ClientUtil.getDecryptedParameter(paramOAPageContext, "param2"));
    catch (Exception e) {e.printStackTrace();}
    String outmsg="Line ID : " + localNumber + ":" + strEvent;
    throw new OAException(outmsg,OAException.INFORMATION);
    =================================
    But I am not able to capture the RequisitionLineId which I have sent as a parameter.
    Can anyone let me know what I am doing wrong.

    Hi,
    This is the requested HTML Code
    ===============================
    <button id="N3:addnInfo:0" class="x7g" style="background-image:url(/OA_HTML/cabo/images/swan/btn-bg1.gif)" onclick="return _chain('submitForm(\'DefaultFormName\',1,{\'param1\':\'${oa.encrypt.current.RequisitionLineId}\',\'serverValidate\':\'1\',\'param2\':\'${oa.encrypt.current.RequisitionLineId}\',event:\'addnInfoEvent\',source:\'N3:addnInfo:0\'});return false;',*'submitForm*(\'DefaultFormName\',1,{\'_FORM_SUBMIT_BUTTON\':\'N34\'});return false',this,event,true)" type="submit">Additional Info</button>
    ===============================
    Hi I am not able to paste the HTML Code..some parts of HTML gets removed automatically when I paste it in the forum.
    Regards,
    Rohit

  • I purchased a CD on itunes and it charged automatically to the card under the account, but I wanted it to charge to my gift card.  How do I get a refund and get the music to charge to my gift card instead?

    I purchased a CD on itunes and it charged automatically to the card under the account, but I wanted it to charge to my gift card.  How do I get a refund and get the music to charge to my gift card instead?

    Hi TKCDM1!
    You should try to get this purchase onto your iOS device by using the suggestions in the following article:
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • I occasionally get a call and at the end of the call, it sounds like the camera is taking a picture.  Anyone else ever experience this

    I occasionally get a call and at the end of the call, it sounds like the camera is taking a picture.  Anyone else ever experience this?

    No, but when the other party hangs up first I have heard the click of the disconnect.

Maybe you are looking for

  • Photoshop CC 2014 crashes in OSX 10.9.4

    I am using a MacBook Pro mid 2010 with OSX 10.9.4 and Photoshop CC 2014 crashes on opening with a message "Could not initialise Photoshop because of a program error." I also have the previous version Photoshop CC and it runs fine.  Anyone experiencin

  • New documentation for BI+ SDK?

    Hi everyone, I am an intern working for a company that's using System 9. I've been working with the BIPlus sdk coding some java apps that can run SQR jobs and create repository output folders on the fly, upload documents, etc. I've hit a wall though,

  • Sequential Read on BSAD

    Why would the following select statement not use the primary key and instead be read sequentially? SELECT bsadbukrs bsadkunnr bsadshkzg bsaddmbtr       FROM bsad       APPENDING corresponding fields of table tbsad       WHERE bsad~mandt EQ sy-mandt  

  • JButton actionPerformed by pressing enter

    hi all i have my little form when my users have to insert userName and password i'd like that they can start the login method only by pressing enter, not by pressing my jbutton any advice? thanx sandro

  • Inactive plug ins java

    I have always been able to play certain games that use java, but all of a sudden I get a message stating "inactive plug-ins" and the pages won't load.  Help!  I've done everything I can think of.....already reset Safari, emptied cache', and installed