From f859ff931c28e7c6153e6d4d5356cc985e92a92b Mon Sep 17 00:00:00 2001 From: clemenso Date: Wed, 23 Feb 2011 16:58:12 +0000 Subject: apply workaround from http://forums.oracle.com/forums/thread.jspa?messageID=7432921 Issue #MOCCA-777 - Labeltexts disappear after applet reload (Java Bug ID: 7001786) git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@910 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'BKUApplet/src') diff --git a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java index f6ceacd0..fb71cb0d 100644 --- a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java +++ b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java @@ -45,6 +45,7 @@ import at.gv.egiz.stal.service.STALService; import java.applet.AppletContext; import java.awt.Color; import java.awt.Container; +import javax.swing.text.html.parser.ParserDelegator; import javax.xml.namespace.QName; @@ -151,6 +152,13 @@ public class BKUApplet extends JApplet { log.trace("Called init()."); showStatus("Initializing MOCCA applet."); + // workaround to bug, cf. + // http://forums.oracle.com/forums/thread.jspa?messageID=7432921 + // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6993691 + // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6993073 + // and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7001786 + ParserDelegator workaround = new ParserDelegator(); + HttpsURLConnection.setDefaultSSLSocketFactory(InternalSSLSocketFactory.getInstance()); String locale = getParameter(LOCALE); -- cgit v1.2.3