Browser gets closed abruptly producing 'Program Error' on launched browser

Hi all,
I have a applet program (code copied below). The applet just launches a test frame. The applet is launched by clicking on a 'launch' button in a browser(either Netscape or Mozilla).
When user closes the frame by clicking on frame close icon, the applet's stop() is invoked. In applet's stop, there are some system resource cleaning code and code for closing the applet window.
But when user closes the frame, and before applet window gets closed, if user again clicks on 'launch' button in the parent browser, the whole browser gets closed abruptly producing a Program Error saying 'Netscp.exe has generated errors and will be closed by windows. You will need to restart the program' in case of netscape browser. The same happens for mozilla browser too.
what is the problem here?
how to fix it...
please help...
-thx,
Soni.
(To execute this plugin.jar of jdk is required)
import javax.swing.JApplet;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import netscape.javascript.JSObject;
public class SampleApplet extends JApplet implements ActionListener{
     protected JButton closeButton = null;
     protected JSObject win = null;
     private JFrame frame = null;
     public void init(){
          this.win = JSObject.getWindow(this);
          this.closeButton = new JButton("Close Browser Window");
          //this.add(this.closeButton);
          //this.closeButton.addActionListener(this);
          frame = new JFrame("Test Frame");
          frame.setSize(300, 400);
          frame.addWindowListener(new WindowAdapter() {
               public void windowClosing(WindowEvent e) {
System.out.println("windowClosing");
                    SampleApplet.this.stop();
          frame.show();
     } // ends init(void)
     public void actionPerformed(ActionEvent ae){
          //this.win.eval("self.close();");
          //closeLaunchedBrowser();
          stop();
     private boolean alreadyClosed = false;
     public void stop() {
          if (!alreadyClosed) {
               alreadyClosed = true;
               closeLaunchedBrowser();
               frame.dispose();
               System.gc();
               System.runFinalization();
     private void closeLaunchedBrowser() {
          final SampleApplet thisObject = this;
          Runnable r = new Runnable() {
               public void run() {
                    try {
                         JSObject win = (JSObject)JSObject.getWindow(thisObject);
                         if (win != null && win.toString() != null) {
                              //win.eval("top.opener=self;self.close();");
                              //win.call("close", null);
                              win.eval("self.close();");
                    } catch (Exception e) {
          Thread t = new Thread(r);
          t.start();
} // ends class CloseApplet
//////////////////////////////////////////////////////

not at all since it only causes problems.
It works relativly stable on IE (since its an very old browser not updated since a long time -> SUN was able to work arround all the open IE bugs) but all other browsers cause troubles, call it opera, safari, konqueror or all the others.
The problem is that the plugin-interface requires a lot of interaction between the jvm and the browser and since browsers change very often it seems almost impossible to guarantee compatibility.
Sometimes it works, sometimes not, sometimes its just broken in one version and works in an older one.
I would suggest to stay away from java->javascript or the other was round...
lg Clemens

Similar Messages

  • LABVIEW gets closed abruptly

    Hi,
    We have some LABVIEW components(VIs) developed to use DLL file. The DLL files are generated by us. The VIs are developed by other team. The VIs are designed to read/write some parameters from a slave device. This communication works fine and we can see the changes in the slave device.
    To our surprise, the VI gets closed abruptly when we Power Off and On the slave device, after read/write from the VI.
    Is there any mechanism in LV for troubleshooting this behavior.
    We are not able to figure the exact cause of crashing of the LV. Any tips would be helpful.

    Try the technique here.  It should let you pinpoint exactly where the error is occurring.  I have used it for just such a problem many times.  In this situation, the normal problem is a datatype mismatch in the DLL call or a problem with the DLL itself.
    Good luck!
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • I AM TRYING TO PUT TEXT ON A PHOTO AND USE THE T ON THE BOARD BUT I GET A MESSAGE SAYING PROGRAM ERROR AND IT DOSNT LET ME PUT ANY PRINT .

    I AM TRYING TO PUT TEXT ON  A PHOTO USING THE T ON THE BOARD. I GET  A MESSAGE SAYING PROGRAM ERROR AND IT DOSNT LET ME ADD TEXT.

    There's something wrong with your Photoshop install.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Program Errors - I am getting all kinds of program errors with Photoshop CC

    Since I updated my photoshop version to CC I am getting all kinds of program errors.
    It is happening when:
    I try and add a shape
    Change the active colour in the tools
    Use a pattern
    This is what I have noticed so far.
    Ellissa

    OS is Yosemite - 10.10.1
    Photoshop CC 2014
    Apparently all up to date, and in fact it has been happening since I
    changed from another version of Photoshop to this one.

  • Close_Form('XXE_F501_SCRIPTING_START'); this is a command in IESCLPKG.PLL WHEN I AM USING THIS COMMAND MY SCRIPTING WINDOW IS GETTING CLOSED BUT THEN ONE ERROR IS COMMING ,KINDLY GIVE ME IDEA TO DEBUG THAT ERROR

    Close_Form('XXE_F501_SCRIPTING_START'); this is a command in IESCLPKG.PLL WHEN I AM USING THIS COMMAND MY SCRIPTING WINDOW IS GETTING CLOSED BUT THEN ONE ERROR IS COMMING ,KINDLY GIVE ME IDEA TO DEBUG THAT ERROR
      if (param_value = 'CLOSE_SCRIPTING_WINDOW') then
              --go_block('VIEW_IB');     
             -- SET_WINDOW_PROPERTY('SCRIPTING_WINDOW', WINDOW_STATE, MINIMIZE);
              --Set_Window_Property('SCRIPTING_WINDOW', VISIBLE, PROPERTY_OFF); 
              --hide_window('SCRIPTING_WINDOW');
               -- GO_BLOCK('CTRL');
               fnd_message.set_string('1');--nimish
               fnd_message.show;--nimish
               --Close_Form('XXE_F501_SCRIPTING_START');  -- Commented for Nova
               fnd_message.set_string('2');--nimish
               fnd_message.show;--nimish
                Scripting_Util.EndScript;
            end if;
    THIS IS THE PLL CODE KINDLY GIVE ME A CLEAR SOLUTION.

    First: you should get a new keyboard. Seems your shift-key is stuck.
    Second: A header of a post is a header and not for a summary of your question
    Third: This is the forum for the tool SQL Developer. Please mark this question as answered and post again in Forms
    Forth: When you expect an answer, the least would be to include the errormessage and your forms version.
    Regards
    Marcus

  • Get photoshop has stopped working error on Launch on my Win 8 pc

    About two weeks ago I downloaded Adobe CC for students, my problem is that photshop is not working. When I start the program i get the following message:"photoshop has stopped working and needs to be closed, windows will tell you if there is any solution in the future" I have tried to re-install it twice, and I just updated the program.
    I got windows 8
    Hope to get some help soon! Thanks!

    Does this happen only with Photoshop CC or with other Adobe apps like InDesign CC & Illustrator CC?
    What version of PS CC do you use?
    Try updating to Win 8.1 and that should install all the required windows updates and then check the same.
    You still want to install the video card driver from the manufacturer website, as already suggested by Chris, to be double sure that you have the right GPU drivers installed.
    In case your PS still crash, check Event Viewer for the Faulty Module and let us know.
    http://support.microsoft.com/kb/308427
    Event Viewer > Windows Logs > Application
    Look for "Error" in red color and check the Application name and faulty module.
    Cheers!
    ~ Arpit

  • ABAP Programming Error, OBJECTS_OBJREF_NOT_ASSIGNED, CL_GRFN_FPM_UTIL======

    Hi All,
    I am running GRC 10.0 SP07 when trying to add a response to a risk I get the following ABAP programming error,
    Category               ABAP Programming Error
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
    ABAP Program           CL_GRFN_FPM_UTIL==============CP
                                                                                    |
    |    Access via 'NULL' object reference not possible.  
    You attempted to use a 'NULL' object reference (points to 'nothing')    
    |    access a component (variable: " ").                                                  
    |    An object reference must point to an object (an instance of a class)
    |    before it can be used to access components.                                  
    |    Either the reference was never set or it was set to 'NULL' using the              
    |    CLEAR statement.
    Any help on the error would be greatly appreciated.
    Thanx
    Warren

    Hi Victor,
    When I am on a risk in NWBC, I select the "Response Plan" Tab, then when I try create a response I get the error.
    This is the error that is displayed:
    Error while processing your query
    What has happened?
    The URL call http://ravenclaw.cqs.co.za:8000/sap/bc/webdynpro/SAP/GRRM_WD_RNP was terminated because of an error.
    Note
    The following error text was processed in system GRC : Access via 'NULL' object reference not possible.
    The error occurred on the application server ravenclaw_GRC_00 and in the work process 7 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: GET_OIF_INFO of program CL_GRFN_FPM_UTIL==============CP
    Method: GET_INSTANCE of program CL_GRFN_OIF_BASE==============CP
    Method: INIT_UIBB of program /1BCWDY/06EI2HED04NJ1RLM34O4==CP
    Method: IF_COMPONENTCONTROLLER~INIT_UIBB of program /1BCWDY/06EI2HED04NJ1RLM34O4==CP
    Method: HANDLEDEFAULT of program /1BCWDY/06EI2HED04NJ1RLM34O4==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/06EI2HED04NJ1RLM34O4==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
    Method: NAVIGATE of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: DO_NAVIGATION of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Thanx
    Warren

  • OWB 9.0.4: dbms_awm.refresh_awcube  ORA-06501: PL/SQL: program error

    While running the following PL/SQL generated by OWB/OLAP bridge using OWB 9.0.4, I get the PL/SQL program error
    PL/SQL:
    begin
    dbms_awm.create_awcube (USER, 'BIBDEMO_STKPRICE_CUBE', USER, 'BIBDEMO_AW', 'AW_BIBDEMO_STKPRICE_CUBE');
    begin
    dbms_awm.create_awcubeload_spec ('BIBDEMO_STKPRICE_CUBE', USER, 'BIBDEMO_STKPRICE_CUBE', 'LOAD_DATA');
    exception when others then null;
    end;
    dbms_awm.refresh_awcube (USER, 'BIBDEMO_AW', 'AW_BIBDEMO_STKPRICE_CUBE', 'BIBDEMO_STKPRICE_CUBE');
    exception when others then cwm_utility.dump_error(); raise program_error;
    end;
    ERROR:
    ERROR at line 1:
    ORA-06501: PL/SQL: program error
    ORA-06512: at line 4
    ORA-06510: PL/SQL: unhandled user-defined exception
    fyi: I am using Oracle9i with 9.2.0.3 patch
    The DBMS_AW statement to create/populate the dimesntions works fine
    Here is the PL/SQL for the dimensions
    begin
    dbms_awm.create_awdimension (USER, 'STOCK', USER, 'BIBDEMO_AW', 'AW_STOCK');
    begin
    dbms_awm.create_awdimload_spec ('STOCK', USER, 'STOCK', 'FULL_LOAD');
    exception when others then null;
    end;
    dbms_awm.refresh_awdimension (USER, 'BIBDEMO_AW', 'AW_STOCK', 'STOCK');
    dbms_awm.create_awdimension (USER, 'DAY', USER, 'BIBDEMO_AW', 'AW_DAY');
    begin
    dbms_awm.create_awdimload_spec ('DAY', USER, 'DAY', 'FULL_LOAD');
    exception when others then null;
    end;
    dbms_awm.refresh_awdimension (USER, 'BIBDEMO_AW', 'AW_DAY', 'DAY');
    dbms_awm.create_awdimension (USER, 'STKMEAS', USER, 'BIBDEMO_AW', 'AW_STKMEAS');
    begin
    dbms_awm.create_awdimload_spec ('STKMEAS', USER, 'STKMEAS', 'FULL_LOAD');
    exception when others then null;
    end;
    dbms_awm.refresh_awdimension (USER, 'BIBDEMO_AW', 'AW_STKMEAS', 'STKMEAS');
    exception when others then cwm_utility.dump_error(); raise program_error;
    end;
    I am just trying the recreate the BIBDEMO_STKPRICE_CUBE in analytical workspace. Would be helpful if someone could send me the complete PL/SQL for creating the analytical workspace and views for this cube using DBMS_AW package.
    Thanks
    Panneer

    Panneer,
    Unfortunately you will need a patch on top of database version 9.2.0.3 in order to make this functionality work. This patch has not been released yet, but is currently in QA. We are hoping that the patch will be available in June. Stay tuned...
    Thanks,
    Mark.

  • Some iTunes U URLs - request produced an error [newNullResponse]

    Hi. We're using iTunes U Public Site Manager. <<http://itunes.apple.com/us/institution/wellesley-college/id389604498>>
    Recently, something changed such that some URL links that you get from Copy Link no longer work on Mac/Windows iTunes clients, though they seem to work from iPhone and iPad. I'm 95% sure these links worked all fall.
    Here's an example.
    http://itunes.apple.com/us/podcast/an-unsolitary-life-part-one/id414301582?i=903 17760
    If one tries this link on a Mac, one gets:
    Your request produced an error.
    [newNullResponse]
    Just clicking within the iTunes client works fine.
    Other URLs work fine, e.g.,
    http://itunes.apple.com/us/podcast/the-billion-dollar-molecule/id389607033?i=895 85264
    I tried creating a new Collection, and moving the content to the new collection. Same problem.
    Any idea what's wrong, and how it can be fixed? Thanks....k

    Hi Kenny,
    We are having the same problem at Brown University. See: http://itunes.apple.com/itunes-u/speaking-wickenden-voices/id414018381
    We would also appreciate some help/understanding of what is going on.
    Thanks!
    Natalia

  • Browser gets "Cannot complete your request because of a program error"

    Running Photoshop-7, WinXP Pro, on a PC with 2MB ram.
    PS7 was working fine but I installed a new Samsung 2253BW LCD monitor, and about 3 new software. I don't know what I did but when I opened PS7, the browser's left window pane does not show the folders at the left and only shows (+)Desktop. The right window pane shows thumbnails of whatever folder I'm in.
    WHAT I CANNOT DO:
    When I click the (+) for the Desktop icon in the left pane, I get the message "Cannot complete your request because of a program error."
    WHAT I CAN DO:
    I can browse using the textbox above the right window pane and access any graphic file I want to.
    THINGS I'VE TRIED:
    - Removed PS7. Installed PS7. --- Same problem.
    - Created a new user --- PS7 works normally!
    - Go back to the original user. --- Same problem.
    Any ideas before I get a sledge hammer?

    Never mind, I found the problem.
    It was a new desktop icon named "Folding@home" that a new software must have installed. I deleted it and now PS7's browser works normally again. Pretty unbelievable!
    Putting back the sledgehammer,
    mmo7

  • Windows 7: CS6: Getting a Program Error when flipping foreground and background colors

    Yesterday, I started getting an error when trying to set the default colors and then flipping them. I also get a program error when I try to click on the foreground color and manually assigning it with white.
    This is a Windows 7 Ultimate, with PS CS6.
    I closed the program twice and ran into the same problem, then rebooted and got the same errors.  As far as I can tell, this is the only tool or feature acting up, other than the actions which have this step in them.
    Looking for an easy fix first, of course.  Like maybe deleting the Prefs file? Mac people seem to have to do that regularly.
    But, if nothing works, will I need to uninstall PS and reinstall it? Would that also mean I'd have to install all of my filter packages again, too?
    Thanks in advance,
    M. Jackson

    Noel,
    To date, I have only restarted PS, and only rebooted and restarted PS.
    I have not done any other steps. I am open to anything that keeps me from having to reload, mainly because of all of the filters, presets, actions, and so forth I'd have to find to reload from scratch.
    And, please note, I am on a PC. The Command-Shift-Option is a Mac command. I assume, on a PC that would be Control-Shift-Alt?
    Thanks again,
    Mike Jackson

  • ITunes 9: program error when closing iTunes9

    Ever since updating to iTunes 9 on my pc running Windows XP SP3 a couple of weeks ago, I get a program error right after having closed iTunes 9. The program error reads: +The instruction at "0x7c90100b" referenced memory at "0x0fc528dc". The memory could not be "read".+
    Updating to 9.0.1 didn't help, and repairing and reinstalling didn't help either. Spywarescans and virusscans reveal nothing wrong. iTunes seems otherwise to be working normally, but I'm curious as to what's the problem. I've been searching the net to find help, but these kind of program errors are seemingly very specific, as are the solutions.
    Has anyone got any idea what causes this program error and how to fix it?

    Dear Madhavi,
    we just upgraded our CRM-systems. The problem is now solved. So it seems to be one of these hundreds of oss-notes, which are installed with the patches.
    I'm sorry for this unsatisfying answer! We now are on release:
    WEBCUIF 700 0011 SAPK-70011INWEBCUIF
    So probably you should show these WEBCUIF content for problems or update it.
    Best regards
    Fabian

  • I keep getting a message saying "Could not complete your request because of a program error"

    I keep getting a message saying ( Could not complete your request because of a program error??
    Does anyone know what this means or how to fix?

    blucoast,
    Can you please be more detailed? When are you getting this - what is causing it? Any specific tool or while starting Photoshop itself?
    Do you see an error number or error code or a report? Can you post that here?

  • Why is it when I go to open a file in Photoshop cc I get a "Could not complete your request because of a program error".  I have uninstalled and re-installed software,  It works for a short time then I get that error again when i go to open a file.  Thank

    @Why is it when I go to open a file in Photoshop cc I get a "Could not complete your request because of a program error".  I have uninstalled and re-installed software,  It works for a short time then I get that error again when i go to open a file.  Thank you!

    Without proper system information and other details like what files you work with  nobody can tell you much. From corrupted prefs to issues with your PS swap file to actual problems with the fiel storage this could be anything.
    Mylenium

  • When I open a raw file (NEF Nikon 7100)  and apply setting then click save, I get an error ( could not complete your request because of a program error ). Ideas?

    when I open a raw file (NEF Nikon 7100)  and apply setting then click save, I get an error ( could not complete your request because of a program error ). Ideas?

    Oh, dear.
    If you use PSE as your external editor for iphoto, you need to save the images back to iphoto by using Save, not Save As and not changing anything like the name or format that would bring up the Save As window. (You may need to adjust the editor prefs>saving files>on first save to save over existing.)
    OR you can export the photos from iphoto to the desktop, use file>open in the editor and then change whatever you want and either import the saved image to the organizer or import it back to iphoto as a new file. What you are doing is extremely risky, particularly to the iphoto library which you may easily damage by your workflow.
    I would start the organizer holding down the shift key, then create a new catalog and switch to the new one. Then try opening the editor without opening an image and see if you get any farther.
    PSE and iphoto are not designed to be used as you've been doing. You are trying to write to the iphoto library from outside iphoto, which is the fastest known way to corrupt the library and lose all your photos.

Maybe you are looking for