Em 12-07-2013 00:36, DJ Lucas escreveu:
> DJ Lucas <[email protected]> wrote:
>> Fernando de Oliveira <[email protected]> wrote:
>>> Instructions in BLFS for OpenJDK were very robust. Originally, by DJ,
>> I
>>> think last update was from Bruce, cannot remember if Armin or Ken
>>> touched it.

Problem solved!!!!

Thank you, DJ.

Thank you, Bruce, for suspecting the code, not the build.

I have to say: instructions in BLFS for OpenJDK still *are* very robust.

>>> Unfortunately, since icedtea-2.4.0, problems started.
>>>
> 
> 
> <Snip>
> 
>>> First, the icedtea-2.4.0-add_cacerts-1.patch was first to finally fail

This seems not to be related at all with the problem. Attaching a image
of a popup from the plugin, do not know if it comes from a problem with
the patch or is just the "new way" the plugin acts, for security reasons.

Also, a make with a new "complete" icedtea-2.4.1-add_cacerts-1.patch
that I rediffed is running (run out of space, had to restart). When it
finishes, I will send the patch to this list, and ask you, please, to
inspect it.

>>> Even though, it seemed to partially work, the three sites where I have
>>> to use java understood everything from icedtea-web-1.4.
>>>
> 
> This seems relevant as well:
> 
> http://icedtea.classpath.org/hg/icedtea-web/rev/2469bedc6d63
> 
> --DJ

Now, to the point.

Yes it is relevant. After my initial panic, and in order to test if I
could myself find a solution, I resisted reading your posts and found
the original patch:

<http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-June/023745.html>

Earlier, I had found:

<http://icedtea.classpath.org/hg/icedtea-web/raw-rev/2469bedc6d63>

which is another view of the patch you gave the address above.

Edited the files according to this last patch and produced a new one with:

diff -Naur icedtea-web-1.4.orig icedtea-web-1.4 | tee
icedtea-web-1.4-imminent_breakage_fix-1.patch

Attaching it (author is Jiri Vanek, as written in it).

Using it, with "patch -Np1 -i", things run as before!!!!!!!!

So I am much grateful to you, pleased to see that any problem with OJDK
and related, you can find some time to help us.

Changed the title, just to increase the probability that anyone with
similar problem finds this.

-- 
[]s,
Fernando
Submitted By: Fernando de Oliveira <famobr at yahoo dot com dot br>
Date: 2013-07-11
Initial Package Version: 1.4 (though original post mentions head, 1.3, 1.2 as well)
Upstream Status: Submitted
Origin: Jiri Vanek <jvanek at redhat.com>
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-June/023745.html
Description: Latest OpenJDK breaks Java browser plugin
diff -Naur icedtea-web-1.4.orig/netx/net/sourceforge/jnlp/runtime/Boot.java icedtea-web-1.4/netx/net/sourceforge/jnlp/runtime/Boot.java
--- icedtea-web-1.4.orig/netx/net/sourceforge/jnlp/runtime/Boot.java	2013-05-03 16:08:24.274519818 -0300
+++ icedtea-web-1.4/netx/net/sourceforge/jnlp/runtime/Boot.java	2013-07-12 10:50:41.120910762 -0300
@@ -35,6 +35,8 @@
 import net.sourceforge.jnlp.cache.UpdatePolicy;
 import net.sourceforge.jnlp.security.viewer.CertificateViewer;
 import net.sourceforge.jnlp.services.ServiceUtil;
+import sun.awt.AppContext;
+import sun.awt.SunToolkit;
 
 /**
  * This is the main entry point for the JNLP client.  The main
@@ -113,6 +115,9 @@
      * Launch the JNLP file specified by the command-line arguments.
      */
     public static void main(String[] argsIn) {
+        if (AppContext.getAppContext() == null) {
+            SunToolkit.createNewAppContext();
+        }
         args = argsIn;
 
         if (null != getOption("-viewer")) {
diff -Naur icedtea-web-1.4.orig/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java icedtea-web-1.4/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java
--- icedtea-web-1.4.orig/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java	2013-05-03 16:08:24.280519745 -0300
+++ icedtea-web-1.4/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java	2013-07-12 10:55:13.751999632 -0300
@@ -234,7 +234,7 @@
         try {
             UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
         } catch (Exception e) {
-            // ignore it
+            e.printStackTrace();
         }
 
         doMainAppContextHacks();
diff -Naur icedtea-web-1.4.orig/plugin/icedteanp/java/sun/applet/PluginMain.java icedtea-web-1.4/plugin/icedteanp/java/sun/applet/PluginMain.java
--- icedtea-web-1.4.orig/plugin/icedteanp/java/sun/applet/PluginMain.java	2013-05-03 16:08:24.491517092 -0300
+++ icedtea-web-1.4/plugin/icedteanp/java/sun/applet/PluginMain.java	2013-07-12 10:59:10.906708012 -0300
@@ -72,6 +72,8 @@
 import java.net.ProxySelector;
 import java.util.Enumeration;
 import java.util.Properties;
+import sun.awt.AppContext;
+import sun.awt.SunToolkit;
 
 import net.sourceforge.jnlp.config.DeploymentConfiguration;
 import net.sourceforge.jnlp.runtime.JNLPRuntime;
@@ -94,6 +96,9 @@
      */
     public static void main(String args[])
             throws IOException {
+        if (AppContext.getAppContext() == null) {
+            SunToolkit.createNewAppContext();
+        }
         if (args.length != 2 || !(new File(args[0]).exists()) || !(new File(args[1]).exists())) {
             System.err.println("Invalid pipe names provided. Refusing to proceed.");
             System.exit(1);

<<attachment: Java-plugin-applet-popup-Captura-de-tela-2013-07-12-11h35m14s_600x380.png>>

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to