Menu

#317 Plugin repeatedly displays 'applet alert' dialogs

2.x
closed-invalid
5
2011-07-07
2011-07-05
kdmiller
No

This glitch is not present in net.sourceforge.eclipseccase_2.2.8.201103071259.zip, but IS present in net.sourceforge.eclipseccase_2.2.9.201106170733.zip.
Every time a file access attempt is made, and every time an environment variable is read, an 'Applet Alert' dialog appears, asking for permission to continue.
I am running the plugin with latest JRE/Eclipse on SLED10 Linux.
This constant popup of dialogs (sometimes several) makes the plugin unusable, so I have downgraded to the previous version.
I can reproduce this problem on other machines, just by doing a fresh install of eclipse, followed by an install of the CC plugin.
I have tried to disable all security in the java policy, but as a C++ developer, I'm not that familiar with java, and its security configuration.

Discussion

  • Mikael Petterson

    Hi,

    Thanks for using the plug-in.

    1. Do you use the same JRE and Eclipse with net.sourceforge.eclipseccase_2.2.8.201103071259.zip as well as net.sourceforge.eclipseccase_2.2.9.201106170733.zip ?

    2. What do you mean by "file access attempt is made". Is it when you open a file in the Editor?

    3. Please provide a log file when this occurs. It can be found at ${WORKSPACE}/.metadata/.log

    4. Also do "java -version" in an xterm window.

    br,

    //mike

     
  • Mikael Petterson

    • milestone: --> 2.x
    • assigned_to: nobody --> eraonel
     
  • kdmiller

    kdmiller - 2011-07-06

    1. Do you use the same JRE and Eclipse with
    net.sourceforge.eclipseccase_2.2.8.201103071259.zip as well as
    net.sourceforge.eclipseccase_2.2.9.201106170733.zip ?
    Yes.
    Each time, a fresh extraction of the archive: eclipse-cpp-indigo-incubation-linux-gtk-x86_64.tar.gz, followed by installation of the clearcase plugin. I have checked the paths of the executing JRE, using 'ps -ef'

    2. What do you mean by "file access attempt is made". Is it when you open
    a file in the Editor?
    No, opening files is ok.
    On eclipse startup, for example, a popup dialog appears when the plugin does a getenv() to obtain CLEARCASE_PRIMARY_GROUP. Likewise, whenever the plugin does what are presumably direct file accesses.
    The dialog is titled '- APPLET ALERT -'.
    There is then a message in the dialog:
    "The applet is attempting to invoke the java/lang/System.getenv() operation on CLEARCASE_PRIMARY_GROUP'
    There are three options 'Allow', 'Disallow', 'Stop Applet'.
    Similar security dialogs appear for 'commentHistory.xml', and during various file operations.
    I have also tried editing the policy file for the java VM to disable applet security:
    grant {
    permission java.security.AllPermission;
    };
    in policy file.
    I have tried fresh installs again with both versions of the plugin. I can confirm that this still only happens with the newer version.

    3. Please provide a log file when this occurs. It can be found at
    ${WORKSPACE}/.metadata/.log
    Will attach below.

    4. Also do "java -version" in an xterm window.

    java version "1.6.0_26"
    Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
    Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

     
  • kdmiller

    kdmiller - 2011-07-06

    Workspace Log on newest plugin version (Installed using web link in eclipse software mgr)

     
  • Mikael Petterson

    - Have 2.2.9 installed.
    - Remove .metadata directory removed.
    - Restart Eclipse
    - Reimport projects and Associate with ClearCase,

    If problem please attatch .log.

    I would recommend you to use "Update Manager " and use our update site to install new versions. http://eclipse-ccase.sourceforge.net/update/

    br,

    //mike

     
  • kdmiller

    kdmiller - 2011-07-07

    Looking at the log file that you have specified, I appear to be getting exceptions that relate to code being injected into the JAR file by the Trend Micro firewall that our corporate IT department seem to have installed.
    I suspect that this is somehow interfering with the security mechanism that is used by java to verify the JAR integrity.
    Thank you very much for your assistance in finding this, and for providing this very useful piece of software.

    com.trend.iwss.jscan.runtime.AppletTrapStopError: Applet disabled by IWSVA Javascan site policy.
    2081 at com.trend.iwss.jscan.runtime.PolicyRuntime.stopApplet(PolicyRuntime.java:300)
    2082 at com.trend.iwss.jscan.runtime.PolicyRuntime.stopActionInner(PolicyRuntime.java:254)
    2083 at com.trend.iwss.jscan.runtime.PolicyRuntime.stopAction(PolicyRuntime.java:172)
    2084 at com.trend.iwss.jscan.runtime.MiscPolicyRuntime._preFilter(MiscPolicyRuntime.java:182)
    2085 at com.trend.iwss.jscan.runtime.PolicyRuntime.preFilter(PolicyRuntime.java:132)
    2086 at com.trend.iwss.jscan.runtime.MiscPolicyRuntime.preFilter(MiscPolicyRuntime.java:142)
    2087 at net.sourceforge.eclipseccase.ClearCasePreferences.setGraphicalToolTimeout(ClearCasePreferences.java:438)
    2088 at net.sourceforge.eclipseccase.ClearCasePlugin.resetClearCase(ClearCasePlugin.java:604)
    2089 at net.sourceforge.eclipseccase.ClearCasePlugin.stop(ClearCasePlugin.java:752)
    2090 at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771)
    2091 at java.security.AccessController.doPrivileged(Native Method)
    2092 at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764)
    2093 at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510)
    2094 at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:565)
    2095 at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1160)
    2096 at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:595)
    2097 at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
    2098 at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
    2099 at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)
    2100 at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:690)
    2101 at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:597)
    2102 at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:390)
    2103 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
    2104 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2105 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    2106 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    2107 at java.lang.reflect.Method.invoke(Unknown Source)
    2108 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
    2109 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
    2110 at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
    2111 at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

     
  • Mikael Petterson

    Hi,
    I learned something interesting what was useful for future issues. Hope that you like plugin and can contribute to its involvement.

    br,

    //mike

     
  • Mikael Petterson

    Firewall was the problem.

    //mike

     
  • Mikael Petterson

    • status: open --> closed-invalid
     

Log in to post a comment.

MongoDB Logo MongoDB