Exception handeling problem, keeps looping?

Hi I have a gui screen that asks the user to enter a membership no. I have a try catch clause but it does an infinate loop could anyone help me. What I need is the dialog box to appear and when it is closed my gui screen should appear from the start again thanks
private void personalDetailsButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                     
     Inductee.setTrainingGoal((String) trainingGoalComboBox.getSelectedItem());
     Inductee.setName(nameText.getText());
     String age=((String) ageComboBox.getSelectedItem());
     boolean stop=false;
     do{
     try{
     Inductee.setMembershipNo(membershipNo=Integer.parseInt(membershipNoText.getText()));
     catch (NumberFormatException e) {
           JOptionPane.showMessageDialog(null, "You must enter a number format for Membershp Number");
           this.dispose();
           new PersonalDetailsScreen().setVisible(true);
     while(stop==false);
     Inductee.setTrainerProfile((String) trainerProfileComboBox.getSelectedItem());
     int ages=Integer.parseInt(age);
     Inductee.setAge(ages);
     this.dispose();
     new MedicalScreen().setVisible(true);
    }                                                 

I think that you must set the boolean stop to true at the end of your catch.
That would fit the immediate error, but as i do have have the whole source i cannot say.
From what i see this will not solve the problem, should the user cause the error again.
By the way, is this the same problem as the other post with the broken if statement?
Your new catch statement will look like this
catch (NumberFormatException e)
           JOptionPane.showMessageDialog(null, "You must enter a number format for Membershp Number");
           this.dispose();
           new PersonalDetailsScreen().setVisible(true);
           stop = true;
}

Similar Messages

  • Reports included in the page keep looping without retrieving any results

    We are facing an issue related to the behaviour of Siebel Analytics when more than 1 answer are included in a dashboard page. When a report is generated, the other reports included in the page keep looping without retrieving any results, but if I manually click on 'cancel' link, the reports successfully appear with consistent data. This behaviour is not stable since sometimes the page works fine, sometimes not, but it's not clear what it depends on. Can anybody please let me know if this behaviour is a known bug.

    Hi Deb,
    Could you please explain me in more detail?
    The problem is we are able to see the old reports that we were already moved into Q environment. The newly moved 5 reports are giving this error message.
    Please help
    Thanks
    Sri

  • Flash export of slideshow keeps looping, hyperlinks not working.

    I have made an intro page for a website using Keynote 3 <http://web.mac.com/archstanton1862/iWeb/Tricktrial/Welcome.html> I can't figure out why the page keeps looping. It should go through it's transitions and then stop. Right? Also, the ENTER hyperlink is supposed to go to <http://web.mac.com/archstanton1862/iWeb/Trickracing1/Menu.html> but it instead goes to www.apple.com/startpage What's the deal? I have loop slideshow "unchecked" in the playback options. I used iWeb Enhancer 1.0.1 to embed the flash animation html, and it worked awesome. It just keeps looping and the hyperlink is wrong. Is what I'm wanting to do even possible? HELP!!

    Looks like everything's working to me. I was having this same problem, but never got around to uploading the flash to the site because it keeps looping for me, too. But your's seems to be fine--did you do anything to correct this, or did it seem to fix itself?!
    Bryan

  • Laptop with windows vista prem keeps looping like it wants to start

    The model number psaf-3u-onr00v satellite a205 s5804.my problem is the system will not load windows and it keeps looping like it wants to load but it just keep looping it wont load the recovery disk either it starts loading but again it goes back to looping like it wants to start it also wont work in the safe mode or any mode can anyone help?

    Unfortunatly I had a computer do this to me recently and I found out that it was the had drive itself.  I know this isn't what you wanted to hear, but this is my only suggestion.

  • Aligning stylus touch screen / keeps looping

    Hello,
    I am trying to align the touch screen on my Palm Tungesten E2, using the built in touchscreen configuration tool.
    It tells me to tap exactly on the center of the target. I do that three times or more, and it keeps looping still telling me to tap exactly center of the target.
    This is a problem because whenever I using the letter or number function , I get a period (.) symbol. The stylus is not aligning properly.
    The only option to get out of the touchscreen configuration tool is by pressing the reset hole on the back of my device.
    Can somebody out there help me? 
    Regards,
    Mike
    Post relates to: Tungsten E2

    Hello, if you get a period when you use the on-screen keyboard, it could be that you have turned on the full screen graffiti function.  This is what allows you to write on the full screen rather than just in the graffiti area.
    There should be a small icon in the status bar on the bottom of your screen, which looks like a little squiggly line or a snake.  Tap it to toggle this function on and off, and see if it helps.
    Post relates to: None
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • Precomposed Menu keeps looping to intro sequence

    How can I make the DVD stop at main menu? It keeps looping to the intro sequence.

    thanks, but how do I take a screen capture please?
    If you're on a pc, just hit the PrtScn button, then paste that into a Photoshop document.
    It is a motion asset that is part of the menu.  Everything works except it won't stay on main menu.
    Since you mention "precomposed," look at the tutorial page on Jon Geddes' site:
    http://www.precomposed.com/tutorials/
    You set a loop point to tell the menu where to loop back to once it has gone through the full motion asset once. Is it looping back to the beginning?
    Other help files regarding motion menus, and doing them in AE:
    Here's encore help:
    http://help.adobe.com/en_US/encore/cs/using/WSA5513911-0AD1-440c-BDAD-2E0E806B425E.html
    Here's an adobe tutorial on using AE for EN menus:
    http://www.adobe.com/designcenter/video_workshop/?id=vid0258
    From the After Effects help:
    http://help.adobe.com/en_US/aftereffects/cs/using/WS3878526689cb91655866c1103906c6dea-7e45 a.html

  • Slideshow Keeps Looping after a few images

    My slideshow keeps looping back to the first image after displaying 2-5 images. It displays them in the correct order (I don't have 'random' turned on). I can get it to display the images correctly if I set 'Slide Duration' to .1 seconds (with no fade). If the duration is set any slower, the problem appears. When I export to PDF, it displays fine. This only occurs when I 'play' the slideshow in LR. The problem doesn't occur when I 'preview'. I have 276 images that have been 'user ordered'.
    Using LR 2.1 64b, WinVista 64b.
    Thanks in advance,
    Christopher

    Hi Christopher,
    This is an age old problem with Lightroom that I don't think they have ever got to the bottom of. Seems to be a Windows only issue from what I recall. I have it too on LR 1.41 but only ever on my laptop and not on my desktop. Only way around it seems to be to close LR down and re-open it - a great pain! Hopefully this new thread will encourage Adobe to take another look at this.

  • How to re-activate 'Mail' after complete successful Time machine re-installation except 'Mail' backup keeps getting stuck?

    How to re-activate 'Mail' after complete successful Time machine re-installation except 'Mail' backup keeps getting stuck?

    Trying to re-instal my email history the 'Mail Message Import' dialogue screen says: 'Mail needs to import your messages. This might take a few minutes. You won't be able to use Mail until the import is finished'.
    The problem is: after importing 5,000 messages it stops and the 'Time remaining' only keeps adding up to many hours (17 hours). There are almost 80,000 email messages in my Time machine backup.
    How to get this working? I am even prepared to give up my email history if i can only get my 'Mail' application working again.

  • MovieClip Preloader keeps looping movie

    MovieClip Preloader keeps looping movie
    I made a MovieClip preloader and everything workes fine.  The problem is the movie that I am loading  keeps looping.  Is there any way to stop this from looping?  I used  Flash CS5, AS2.
    Here is the code that I am using:
    bar._visible = false;
    border._visible = false;
    this.createEmptyMovieClip("container", "100");
    my_mc = new MovieClipLoader();
    preload = new Object();
    my_mc.addListener(preload);
    preload.onLoadStart = function(targetMC) {
    trace("started loading "+targetMC);
    container._visible = false;
    bar._visible = true;
    border._visible = true;
    pText._visible = true;
    preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
    bar._width = (lBytes/tBytes)*100;
    pText.text = "% "+Math.round((lBytes/tBytes)*100);
    preload.onLoadComplete = function(targetMC) {
    container._visible = true;
    border._visible = false;
    bar._visible = false;
    pText._visible = false;
    trace(targetMC+" finished");
    //default image
    my_mc.loadClip("main.swf", "container");

    Thank you for responding
    The stop action stopped the movieclip preloader from looping the movie, but now it shows a black screen at the end instead of the last frame of the movie. 

  • Itunes wont let me download anything for my ipod touch.  everytime i try to it keeps looping thru to verify my account, so i do and then try to download and it loops me right back thru again to verify my account.  HELP ME PLEASE :(

    everytime i try to it keeps looping thru to verify my account, so i do and then try to download and it loops me right back thru again to verify my account.  HELP ME PLEASE

    Contact iTunes.  Select the appropriate topic of:
    Apple - Support - iTunes

  • HT1339 I have tried restoring an Ipod Nano 6th Generation but it seems to keep looping back and saying it is in recovery and needs restoring, can anyone help?

    I have tried restoring an Ipod Nano 6th Generation but it seems to keep looping back and saying it is in recovery and needs restoring, can anyone help?

    Try doing a level reformat of the iPod's flash storage instead to see if that kills the restore loop using the instructions in the article below.
    http://www.methodshop.com/gadgets/ipodsupport/erase/
    B-rock

  • Exception Handling Problem In BPM

    All
    I am facing an exception handling problem I am using BPM and , I have caught exception in the transformation step but when there is any data problem in that mapping(mentioned in the transformation)
    it is not throwing the exception . is there any option to collect these type of system exception in  the bpm and give a alert thru mail
    is there any way to collect these type of exception happened in the BPE and raise alert thru generic alert
    Thanks
    Jayaraman

    Hi Jayaraman,
        When you say there is any data problem, does that fail the message mapping that you have defined?
    If the message mapping used in the tranformation fails, it should raise an exception in the BPM.
    Did you test the message mapping using the payload and see if it really fails or not?
    Regards,
    Ravi Kanth Talagana

  • Two step verification code entry keeps looping in Safari

    I've recently upgraded to a 5S, however when I try to purchase from the app store, it askes me to verify the device, as I have two step verification set up.
    However, it doesn't work.
    I get the verification code sent to my iPad, but when I type it into Safari on either the phone or my iMac, it keeps looping.
    The text is
    "We have sent a temporary verification code to [device name]. Enter the code to continue. Didn't receive a code?"
    When I enter the code, it flickers, then displays the same message.
    Help? I can't set up my 5S, I can't disable two-step through my iMac.
    Suggestions to overcome? (I do not have my Recovery Key either)

    Hi Nate...
    Might be Safari cookies, cache, or extensions.
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:  Remove All Website Data
    No open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, try troubleshooting extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • Com.sap.caf.mp.base.exception.EngineException: Problem in server response:

    Hi,
    I have created one CAF application,which is having one external webservice and one application service.Webservice takes two input parameters(string,boolean) and it returns an arraylist.
    So when i test the CAF application on the CAF service browser it is giving me error like " com.sap.caf.mp.base.exception.EngineException: Problem in server response: [Bad Request]."
    I am getting this error while creating object of web service.
    Can anybody help me on this issue..
    Thanks in Advance

    It looks like you are not authorized to execute the webservice. Check the webservice authentication settings.
    Peter

  • IE7/Firefox keep looping in CS3 (ignores AS3 cmds)

    I created an index.html and index.swf and placed them with
    the AC_Runactivecontent.js on the server after they worked fine
    locally. Now they run fine on the latest Opera and IE6, but with
    Firefox (1.5 and 2) and IE7 (WinXp) the flash keeps looping forever
    and I cannot touch any of the buttons or controls (also seems to
    ignore the AS3 commands including stop();) ?! Please help as I am
    new to Flash and CS3 especially. Oh, and it also runs fine on
    Vista's IE7
    You can check the results at
    www.alifcc.com
    I'm using the UIScrollBar component, and following is the
    actionscript used:
    stop();
    function oncontactClick(evt:MouseEvent):void {
    gotoAndStop("contact");
    function onaboutClick(evt:MouseEvent):void {
    gotoAndStop("about");
    function onsolutionsClick(evt:MouseEvent):void {
    gotoAndStop("solutions");
    function onclientsClick(evt:MouseEvent):void {
    gotoAndStop("clients");
    contact_btn.addEventListener(MouseEvent.CLICK,oncontactClick);
    about_btn.addEventListener(MouseEvent.CLICK,onaboutClick);
    solutions_btn.addEventListener(MouseEvent.CLICK,onsolutionsClick);
    clients_btn.addEventListener(MouseEvent.CLICK,onclientsClick);

    It turned out to be because of a conflict with the Real
    Player 11 Beta plugin.

Maybe you are looking for

  • The (nearly) Ultimate Intel HD Graphics 3000 gaming performance sheet

    Hi everyone, I am compiling my personally tested list of about 200 Mac & PC games that can be played on the new (lame    ) Intel HD 3000 chip coming with the new 2011 Macbooks 13" (and presumably in the new Mini and Air, too). I hope this provides so

  • Unable to Install Cordova for App Builder Environment on Mac OS ?

    Hi Experts, I'm Unable to Install Cordova-3.4.0 V on Mac OS, Here i'm Getting Errors like " $ sudo npm install -g cordova-3.4.0 npm ERR! network tunneling socket could not be established, cause=connect ECONNREFUSED npm ERR! network This is most likel

  • HOW TO GET TOP N RECORDS IN SQL , URGENT

    Hi, I want to get the TOP 2 and BOTTOM 2 records (TOP 2 SAL , BOTTOM 2 SAL) from the following query result for each department . How do I get it using a SQL statement ? Thanks SQL> SELECT A.DNAME, B.ENAME, B.SAL FROM DEPT A, EMP B WHERE A.DEPTNO = B

  • PI Export and Import

    Hi , I have two PI server and one ECC server, Now the problem is after completion of development in one server i have to test the same interfaces in another PI server. But this not quality server, in this case what i have to do?. I exported the produ

  • Favicon and title not loading

    When loading a particular web page, the favicon and title are not being shown by FF.