Next Generation Java Plugin issues with Applets

Hi,
We have an web application with a jsp page which launches different apps in seperate browsers.
The jsp page has
<jsp:plugin type="applet"
                            code="AppLauncherApplet"
                            height="0" codebase="../../jars/" width="0"
                            name="LaunchApplet"
                            align="bottom">
                        <jsp:params>
                                <jsp:param name="applicationURL"
                                           value="applicationURL"/>
                        </jsp:params>
                        <jsp:fallback>
                                <p>This feature should run on applet supported
                                   browser.</p>
                        </jsp:fallback>
                </jsp:plugin>And applet has
           init()
          String appURL = getParameter("applicationURL");
          if(appURL != null && appURL.length() > 0)
               String WIN_PROGRAMFILES = System.getenv("programfiles");
               String FILE_SEPARATOR   = System.getProperty("file.separator");
               String execUrl = WIN_PROGRAMFILES + FILE_SEPARATOR + "Internet Explorer" + FILE_SEPARATOR + "iexplore.exe "+ appURL;
               System.out.println(execUrl);
               Runtime.getRuntime().exec(execUrl);
               System.out.println("Opening New IE Instance...");
            }Basically this is a launcher app...
This works fine when we run on JRE-build 1.6.0_21-rev-b08and launches apps in seperate browser windows as we click on links...
But after i disable Disable next-generation Java Plug-in as explained in http://www.java.com/en/download/help/new_plugin.xml
Then i noticed weird behavior that apps are getting opened in multiple windows per click.
For example... if i click on a link to open that app in a new browser... 3 seperate browsers are launched.... where it is expected to launch 1 seperate browser window....
I noticed applets init method got called 3 times... means applet initialised 3 times...
I am wondering if it is a JRE issue?
JRE-build 1.6.0_21-rev-b08
Please advice....
Thanks,
Murali
Edited by: cm on Jan 18, 2011 6:45 AM
Edited by: cm on Jan 18, 2011 9:15 PM
Edited by: cm on Jan 18, 2011 9:17 PM
Edited by: cm on Jan 19, 2011 12:51 AM

Done Thanks!!
--Murali                                                                                                                                                                                                                                       

Similar Messages

  • Disable next-generation Java Plug-in-Is Applets load on same JVM guranteed?

    Dear all,
    I am working on a banking application that uses WinXP and JRE1.5, where the banking application is browser based and with a lot of applets. For inter-applet communcation, we use singleton, a Object called CommonFunctionUtility, which is a single instance so that all applets can share information.
    Recently, there is a direction to upgrade the JRE to 1.7. However, after upgrade, we find that applets are loaded to different JVMs so that they're not referring to the same instance of this CommonFunctionUtility, so applet hangs as they cannot retrieve correct information.
    As an interim solution to meet internal requirement to complete JRE1.7 rollout, it is suggested to disable the next-generation java plugin first, and amend the application later using other way to share data later. In view to this, may anyone have any idea that Oracle ever confirm that after disabling next-generation java plugin, it is guranteed that all applets in same browser will be loaded on same JVM?
    Regards,
    Francis

    By disabling the next generation plugin it should "work as before". That's about as much guarantee as you'll get, the business of providing guarantees lies on your shoulders (without an Oracle service agreement) through system integration tests.

  • Next generation java plugin - How to toggle as non admin

    We have several users that have to access some timekeeping and bookkeeping sites that use the java plugin. However, one of these sites requires us to disable the next generation plugin and the rest of them require us to enable it. What I'm looking for is a way to grant our users permission to toggle the plugin without granting them administrator rights to the whole computer. These systems are all running Windows 7 x64, and Java 6 update 31 (32 bit, and this particular version due to compatibility issues with these sites) Can anybody suggest a way to do this?

    Done Thanks!!
    --Murali                                                                                                                                                                                                                                       

  • Next-Generation Java 7 Plugin Performance on Windows 7 and IE 8

    Applet performance has historically been a black eye, to say the least, for Java Applets. Slow load times over today's networks are simply not tolerated by today's network standards. I'm currently supporting an Applet that is forced to move to the Java 7 Platform. As such, we are particularly sensitive to anything new that may further hinder applet performance. To that end, I've been doing quite a bit of benchmarking lately of Applet load times using various configurations with the Java 7 Plugin on Windows 7 using IE 8.
    To capture Java Applet load times, I've simply been marking the start time in Javascript from the HTML onLoad() event, and then calling out to a similar Javascript function to mark the end time from the bottom of the init() method in the Java Applet. I subtract the two times to get a general idea of how long it takes to load the applet.
    The best load times, so far, (when loading the JARs from the web server) occur when caching is employed (e.g., cache_option, cache_archive, cache_version). What I've noticed though, is that when everything else is the same, the performance is degraded by at least half when I check the 'Enable the next-generation Java Plug-in' in the Plugin Control Panel. Applet load times slow down by at least half when this option is enabled. When loading JAR files from the web server, with caching in effect, the applet load time performance is comparable to loading JAR files from the file system only when the next-generation plugin is not enabled. I assume this is because of the associated overhead of spinning-up this external JVM process, but I'm not certain.
    Does anyone know if this is a correct assumption? And if I'm correct, are there ways to speed up the loading of an applet when caching is used with the next-generation plugin? Is this another cold-start vs. warm-start issue for the JVM?
    My goal is to have applet load times for JARs loaded from the web server, using the next-generation plugin, as fast as when the JARs could be loaded from the local file system (which apparently is no longer possible using the next-generation plugin, sadly).
    Thanks!

    Thanks Igor.
    Web Browser: IE 8.0.76
    Java Plugin: 7u3 (1.7.0_03-b05)
    OS: Windows 7 Enterprise (32-bit)
    Server: Websphere 7
    Java Applet is in O&M phase and been around a while. Rich Internet Application with file system access requirements. Currently compiled with JDK 1.5. 10 JAR files total, 6 of which are third-party JARs. 4 JARs are custom and are signed.
    JAR1.jar -> 11077 bytes
    JAR2.jar -> 14207 bytes
    JAR3.jar -> 5093 bytes
    JAR4.jar -> 22233 bytes
    JAR5.jar -> 18722 bytes
    JAR6.jar -> 17578 bytes
    JAR7.jar -> 722237 bytes
    JAR8.jar -> 90688 bytes
    JAR9.jar -> 17521 bytes
    JAR10.jar -> 50686 bytes
    JSP Page is used to render the following HTML tags for loading the applet:
    <object classid="clsid:${UID}" name="preview" width="100%" height="300" id="poc">
    <PARAM name="java_code" value="com.loadfast.Applet.class"/>
    <param name="codebase" value="/www/applet"/>
    <PARAM name="cache_option" value="Plugin"/>
    <PARAM NAME="cache_archive" VALUE="
    JAR1.jar,
                        JAR2.jar,
                        JAR3.jar,
                        JAR4.jar,
                        JAR5.jar,
                        JAR6.jar,
                        JAR7.jar,
                        JAR8.jar,
                        JAR9.jar,
                        JAR10.jar
    "/>
    <PARAM NAME="cache_version" VALUE="
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11"/>
    <PARAM name="type" value="application/x-java-applet"/>
    </object>
    Here's a brief synopsis of my test methodology:
    Assuming caching is the fastest performance I'm going to get by putting JARs on web server, goal was to determine if browser plugin and next-gen plugin will offer the same performance in terms of time to load the Applet.
    To test, I unchecked the 'Enable Next-Gen' plugin option in the Java Plugin. I updated the cache_version values for all JARs. I 'touched' all JAR files in the WAR (I use cygwin) and redeployed the WAR. I have a cli script that launches IE and points it at my applet. When the applet loads, a Javascript Alert box displays showing the number of milliseconds it took to load the applet. I document the time, quit the browser, and re-execute my script. I do this 10 times for each test scenario and take the average.
    The two basic test scenarios are using the Browser Plugin (not next-gen) and using the Next-Gen Plugin. That is the only variable I change between test scenarios. Here is the raw data I collected for each test scenario:
    Not Using Next-Gen Plugin (milliseconds):
    run1 run2 run3 run4 run5 run6 run7 run8 run9 run10
    1761 474 535 495 500 505 502 267 693 513
    Avg: 625ms
    Using Next-Generation Plugin (milliseconds):
    run1 run2 run3 run4 run5 run6 run7 run8 run9 run10
    5382 1529 983 1545 1622 1575 1544 1544 1545 1529
    Avg: 1880ms
    The time it takes to load for each first run indicates caching is happening as subsequent runs are faster. I verified that the JVM is not making http requests for cached JAR files by proxying these requests with Tcpmon just to confirm this was the case.
    I'm basically just looking for a logical explanation to account for the significant time difference that occurs from this Plugin configuration change. It seems to make logical sense to me that this can be explained by JVM Process start up time, but I'm looking for corroboration on that or another explanation.
    Thanks for any advice, help, etc. I'll start looking into JNLP and JAR index as well.

  • How to reload proxy configuration with Next Generation Java Plug-in

    When using the Next Generation Java Plug-in, I no longer see an option in the console to reload the proxy from the browser by pressing p. If the proxy information is changed in the browser after the Java console loads, is there a way to reload the proxy from the browser? If not, why was it removed?
    It's been useful to us because of the way we test with LoadRunner, which uses a proxy. Our other options are to either disable the Next Generation Java Plug-in so the option comes back, or set the proxy in the Java settings instead of trying to read from the browser, but I'm trying to find out it's one of those will be necessary.
    We're using Java 1.6.0_17. Thanks!

    btenney,
    Thanks very much for your suggestion. Can you explain what the parameters are on the ssvagent.exe that you noted -high -jpisetup -old? I can't seem to find any information on the parameters. Also, will this set the configuration just for the user logged on (current user) OR for all users existing and future?
    We are having trouble getting next-gen java shut off for all possible users that may logon to a machine in future .. thus looking at putting in bootup login script, but hoping there is a better way to have it take affect at the machine level. Or to at least automate at the user level (existing and future windows users/profiles)

  • Next Generation Java Plug-in

    Hi -
    Our desktop application was built using older versions of core java and now runs on 1.6.0_19. When the next generation java plug-in came into play (enabled by default) we started having some GUI issues with various dialog boxes (freezing, not functioning properly, etc). These could probably have been written better whenever they were. We can individually go back and fix all of these but don't have the time to do it now. So we decided to uncheck the plug-in for now. When I do this locally on my pc, everything works fine. However, our application is available on citrix servers and when I disabled the plug-in there, I'm getting "Java Heap Space" exceptions. I definitely know there is sufficient memory on the box and the JRE settings are fine as well. Any idea why disabling the plug-in would cause java to run out of memory? I have been really confused by this and any insight would be greatly appreciated.

    anyone?

  • Java Plugin Viewer with Crystal Reports 2008

    Hello,
    I am trying to use the Java Plugin Viewer with Crystal Reports, but I have some problems. The ActiveX Viewer works well, but as I want to use the reports in other browsers, I need the Java viewer.
    I have a Visual Basic 6 application, and, instead of including SmartViewerActiveX.asp, I have included JavaPluginViewer.asp. I have taken this file from an older version of Crystal, and I am changing the values on it (I have done the same with the ActiveX Viewer, without problems). This is the main code of the file:
    <OBJECT
        classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
        width="100%"
        height="100%"
        codebase="/crystalreportviewers11/JavaPlugin/Win32/j2re-1_4_2_04-windows-i586-p.exe#Version=1,4,0,0">
        <param name=type value="application/x-java-applet;version=1.4">
        <param name=code value="com.crystaldecisions.ReportViewer.ReportViewer">
        <param name=codebase value="/crystalreportviewers11/JavaViewer/">
        <param name=archive value="ReportViewer.jar">
        <param name=Language value="en_US">
        <param name=ReportName value="RDCrptserver11.asp">
        <param name=CanDrillDown value="true">
        <param name=HasExportButton value="true">
        <param name=HasGroupTree value="true">
        <param name=ShowGroupTree value="true">
        <param name=HasPrintButton value="true">
        <param name=HasRefreshButton value="true">
        <param name=HasTextSearchControls value="true">
        <param name=HasZoomControl value="true">
        <param name=HasSearchExpert value="false">
        <param name=HasSelectExpert value="false">
        <param name=ShowLogo value="false">
    </OBJECT>
    I know how to change all the values of this object so it works with Crystal2008 except one: the codebase.
    I have gone to IIS, and under the virtual folder "crystalreportviewers12" I don't see any JavaPlugin folder, there's only the JavaViewer folder, and there isn't any .exe inside...
    So, where can I find the .exe for the codebase?
    I have tried searching the web for a tutorial or something, but I haven't seen anything for Crystal 2008.
    Can anyone help me?
    Thank you very much!

    This is so wrong, I don't even know which forum this would belong to ( I think I'll move it to the SAP Crystal Reports, version for Eclipse topic Space...
    Let's start with this:
    I have taken this file from an older version of Crystal,
    Don't mix versions. It will not work. Period
    Next re:
    I don't see any JavaPlugin folder,
    If you want a Java solution, I'd recommend using CR for Eclipse which you can download from here:
    SAP BusinessObjects - SAP Crystal Reports, Version For Eclipse Download
    I would then recommend having a peek here:
    CRJ SDK
    Developer Help File is here:
    https://help.sap.com/javadocs/cr/xi/jrc/en/overview-summary.html
    Finally, I'm not sure what references you are making in your VB 6 app, but there is no SDK in CR 2008 that supports VB 6.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter
    https://twitter.com/SAPCRNetSup

  • The next-generation Java Plug-in

    I really need to disable the next-generation Java Plug-in on the Advanced tab of the Java control Panel, but it is grayed out.  I have admin rights. I tried to uninstall/install Java, but that did not work.  Any suggestions?  Thank you

    Hello jpalan!
    Last case, you can make a PKGBUILD for on older version on your local pc, according to a working PKGBUILD.

  • How to disable Next Generation Java Plug-in for GPO software deployments?

    Is there a way to disable the Next Generation Java Plug-in using a script or batch file for GPO software deployments?
    Our group needs to deploy JRE 6 Update 20 to a large number of Oracle Financials users. As part of this deployment, we need to disable the Next Generation Java Plug-in as part of the installation for each desktop. Our plan is to extract the MSI installer package from Sun and create a GPO for software deployment.
    It seems you cannot disable the Next Generation Java Plug-in using a simple registry hack or customized MST transform file. Is there another method for disabling Next Generation Java Plug-in?

    btenney,
    Thanks very much for your suggestion. Can you explain what the parameters are on the ssvagent.exe that you noted -high -jpisetup -old? I can't seem to find any information on the parameters. Also, will this set the configuration just for the user logged on (current user) OR for all users existing and future?
    We are having trouble getting next-gen java shut off for all possible users that may logon to a machine in future .. thus looking at putting in bootup login script, but hoping there is a better way to have it take affect at the machine level. Or to at least automate at the user level (existing and future windows users/profiles)

  • Next and previous button issue with Prettyphoto in filtered gallery

    Hi there,
    I'm stryggeling with a next and previous button issue with Prettyphoto in filtered gallery.
    Like to have it like this: http://demohtml.templatesquare.com/think/portfolio.html#!prettyPhoto
    (next and previous buttun are there as well social connection)
    My problem is this: http://finca-sonrisa.bitl.nl/sonrisa_gallery.html
    (social connection is there but no next and previous buttons??)
    Anybody who has a solution fot this. Have tried to change the CSS, Javascript and has followed the instructions from Prettyphoto but without any succes.
    Your help we muchly appriciated,
    Best Regards,
    Rolf

    bump PLEASE HELP

  • Java 8, next-generation java plug-in?

    hey all,
    i'm looking for the "enable the next-generation java plug-in" option in java 8 update 40, but can't find it in the advanced tab of the java control panel.
    has it been removed?
    thanks!

    anyone?

  • LightweightDispatcher issue with Applets in Browser using Java 7, not 6

    Spent the last year at work setting up some GUI JApplets for demos our of code. The JApplets house a number of layers of JPanels and JComponents, but should have no heavyweight components as children. I've set up standalone applications that run one of the JApplets as a child of a JFrame, and those demos have no trouble. When I run the same demo but as a JApplet in a browser, I get errors. Please note that the demo is a JApplet but written like the demo that uses a JFrame, so the JApplet causing an issue is a child of the JApplet the browser knows about.
    The issue is seen when the user mouses-over the child JApplet. The listener of the component being moused-over is trying to send an event that the LightweightDispatcher is erroring trying to retarget. It does not seem to find the component that should be receiving the event. For reference, the JApplet implements the mouse-listener interface and is set as the mouse-listener for all its children recursively. Here is the error that is seen:
    Exception in thread "AWT-EventQueue-2" java.lang.AssertionError
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.trackMouseEnterExit(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
         at java.awt.EventQueue.access$000(Unknown Source)
         at java.awt.EventQueue$3.run(Unknown Source)
         at java.awt.EventQueue$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
         at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
         at java.awt.EventQueue$4.run(Unknown Source)
         at java.awt.EventQueue$4.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    and it repeats that for every mouse event that tries to fire within the child JApplet.
    Any thoughts on what this could be?
    I had a similar issue with key strokes not finding the focused JComponent within the child JApplet, but I made my own KeyboardEventManager to handle that issue. Unfortunately there are no paths like that to override for the mouse listeners, not to mention that there is no focused object for the events erroring.
    I do see that when I stop adding the mouse-listeners then the error does not appear, so I'm sure its related to that.
    I suppose the most important note here though is that the JApplets were built using Java 6, but the error is seen when running the JApplet with the 1.7 JRE. Also, the JApplet is opened using a JNLP. When the JNLP is set to run at 1.6+ the demo runs fine, when set to 1.7+, the error is seen.
    Please let me know if anyone has seen this or has a solution, or if I should report this as a bug to Oracle.

    This shouldn't be the case. You did make sure you are pointing the applet at the plug in correct? That means you are using an <object> tag as opposed to the <applet> tag in the HTML file?
    If not, run your HTML page through the HtmlConverter that comes with the plugin and try using the resulting HTML.
    Bryan

  • Clientless SSL RDP Plugin Issues with Java 1.7 update 45

    Hi All,
    It appears the latest Java update (1.7 Update 45) has caused some issues with the Cisco RDP plugin for Clientless SSL VPN.
    When attempting to run the plugin to connect to a host, the following error message is receieved:
    I believe this may be because the plugin is unsigned which on the previous version of Java seemed to cause pop-ups prior to running. This error seems to occur in both IE and Firefox. The OS is Windows 7.
    I can confirm that the previous version of Java (1.7 Update 25) worked OK with this plugin apart from the warning mentioned above.
    Does anybody know of a work around or a fix for this? Does Cisco have to update their plugin for this to work on the latest Java version?
    Regards
    David

    Hi Jouni,
    Thanks for the reply. From the thread you linked:
    The workaround posted in the Cisco  Bug is to uncheck the setting "Keep temporary files on my computer"  which is found in the Java Control Panel under the General Tab /  Temporary Internet Files / Settings ...
    This workaround has worked for me with Jave 7 Update 45 on both PC and Mac.
    I've just tested this and it has resolved the issue for me.
    Thanks!
    David

  • Java options: "Enable the next-generation Java Plug-in"

    On windows, this option is sometimes "grayed out" and you cannot disable it.
    This option is available since java 6 u 10, and is accessible via windows control panel, or alternatively via javacpl.exe.
    Which are the cases where the option is grayed out?
    I've made the assumption that it is grayed out on windows 7, or on windows 7 64, but there are cases of windows 7 64 where the option isn't grayed out.
    It seem neither connected with Internet Explorer version, since it works or not with either IE 8 or IE 9.
    Edited by: Agostino on 18-gen-2012 2.58

    Current Firefox versions (3.6 and later) can only run Java applets via the Next Generation plugin.
    *http://java.com/en/download/help/new_plugin.xml

  • Need to disable next-generation Java plug-in for sccm deployment

    hey all,
    hope I have the right forum for this question.
    I'm deploying Java 7 update 55 to users in our company and have discovered that we need to disable the next generation plug-in.
    is there a way to deploy Java with the plug-in disabled?  preferably a command that I can add to a batch file.
    I've read about a registry hack (doesn't work based on feedback), but I'd prefer not to deploy a mass registry change company-wide.
    any help would be greatly appreciated.
    thanks for your time!

    I'm deploying Java 7 update 55 to users in our company and have discovered that we need to disable the next generation plug-in.
    is there a way to deploy Java with the plug-in disabled?  preferably a command that I can add to a batch file.
    I've read about a registry hack (doesn't work based on feedback), but I'd prefer not to deploy a mass registry change company-wide.
    any help would be greatly appreciated.
    Have you created the required deployment rule set?
    https://blogs.oracle.com/java-platform-group/entry/introducing_deployment_rule_sets?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+orana+(OraNA)
    This Symantec blog has several posts by JRE team members (they have 'Oracle' in their user id) about the issue and the above link is referenced from it:
    http://www.symantec.com/connect/forums/how-everyone-addressing-forced-java-dialog-java-update-needed-your-java-version-insecure
    This Symantec link discusses 'Updating Java through Managed Sjoftware Delivery Policy
    http://www.symantec.com/connect/articles/updating-java-through-managed-software-delivery-policy

Maybe you are looking for

  • My iphone4 is not working after I tried to update it and it wont let me restore it?

    My husbands iphone 4 is refusing to restore or really do anything since he tried to update it to the new operating system. It just alternates between the apple sign, and the thinking circle.  I updated mine on the computer right before he tried so we

  • Unable to register Photoshop Album Starter 3.2 via Cable

    Hi, Have tried to register 3.2 just abt all day today. I have a cable connection and have tried while on-line and off-line. Msg is the same: Internet send failed. I tried the continuous clicking for 10 mins straight, to no avail. Can't find my disc g

  • Changing the display names of objects in the JTree

    Hi All; Is there a possibility of changing the display name of the nodes in JTree? I mean not the actual name of the JTree object, but only the display name? Is there any method available for that? Your help would be greatly appreciated Thanks in adv

  • SCUP Publishing is Failing

    I've made user I have the WSUS hotfix installed as suggested. I've also exported and imported the self-signed cert. However I'm still getting a failure. Below is the failure log.  System Center Update Publisher starting up...$$<Updates Publisher><Thu

  • Using photoshop elements 13, can't see photo in folder

    I have a folder with 5 photos in it.  all 5 are linked to the folder.  3 are not displayed. any suggestions please.  Darrell