0 Replies Latest reply: Mar 16, 2013 2:31 PM by 997265 RSS

    Applet runnning jre7 sends tons of PersistenceDelegate requrests to server:

    997265
      Our server runs jdk1.6. Applet runs on IE7. Just recently, some clients with jre1.7 experiences slow down. By monitoring our Apache Mod_jk log, we see tons of requests from client such as:
      GET /epen-webapp/java/lang/ClassPersistenceDelegate.class
      GET /epen-webapp/java/util/PropertiesPersistenceDelegate.class
      GET/epen-webapp/java/util/HashtablePersistenceDelegate.class
      GET/epen-webapp/java/lang/IntegerPersistenceDelegate.class

      This is likely because of some changes in java 1.7 on XmlEncoder change. As we use XmlEncoder in transporting data between client and server. Somehow, the XmlEncoder in 1.7 does not know how to persists Integer, Propertyies and Hashtable?

      We don't recognize these classes and don't know why these are being requested by the applet.

      Applets running jre1.6 do not have this problem.

      Our server is jboss 4.3 eap running on jdk1.6.

      Here is how the applet is embedded:
      document.write('<object classid="clsid:xxxxxx" width="100%" height="100%" align="baseline">');
      document.write(' <param name="type" value="application/x-java-applet;jpi-version=1.6.0">');
      document.write(' <param name="image" value="images/logo_1.jpg">');
      document.write(' <param name="cache_option" value="Plugin">');
      document.write(' <param name="cache_archive" value="' + appletJars + '">');
      document.write(' <param name="codebase" value="' + codeBase + '">');
      document.write(' <param name="code" value="' + appletClass + '">');
      document.write(' <param name="mediaCodecPlugins" value="' + mediaCodecPlugins + '">');
      document.write(' <param name="mediaViewFactoryPlugins" value="' + mediaViewFactoryPlugins + '">');
      document.write(' <param name="hardCloseURL" value="' + hardCloseURL + '">');
      document.write(' <param name="jSessionId" value="' + jSessionId + '">');
      document.write(' <param name="requestURL" value="' + requestURL + '">');
      document.write(' <param name="lookAndFeel" value="' + lookAndFeel + '">');
      document.write(' <param name="java_arguments" VALUE="-Djnlp.packEnabled=true">');
      document.write(' <param name="jnlp.altCrossDomainXMLFiles" value="' + requestURL + 'crossdomain.xml' + '">');
      document.write(' <comment>');
      document.write('<embed width="100%" height="100%" align="baseline" type="application/x-java-applet;version=1.6.0" image="images/epen_logo_1.jpg" cache_option="Plugin" cache_archive="' + appletJars + '" codebase="' + codeBase + '" code="' + appletClass + '" mediaCodecPlugins="' + mediaCodecPlugins + '" mediaViewFactoryPlugins="' + mediaViewFactoryPlugins + '" hardCloseURL="' + hardCloseURL + '" requestURL="' + requestURL + '">');
      document.write(' <noembed>');
      document.write(' </comment>');
      document.write(' No Java v 1.6.0 support found!');
      document.write(' </noembed>');
      document.write('</embed>');
      document.write('</object>');

      Thanks.

      Edited by: user7440563 on Mar 15, 2013 8:54 PM

      Edited by: user7440563 on Mar 16, 2013 12:28 PM