Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Jul 2004 14:24:44 +0400
From:      Alexander Kirillov <nevis2us@infoline.su>
To:        Greg Lewis <glewis@eyesbeyond.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: mozilla-1.7,2 and jdk-1.4.2p6_4 plugin problem
Message-ID:  <40E3E66C.8030407@infoline.su>
In-Reply-To: <20040630195750.GA93252@misty.eyesbeyond.com>
References:  <40E1ED6D.4050001@infoline.su> <20040629230259.GA79310@misty.eyesbeyond.com> <40E28B0A.9020502@infoline.su> <20040630195750.GA93252@misty.eyesbeyond.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Greg,
More info on the problem.
Looking at the thread stack dumps when the browser gets stuck
I've found threads locked within sun.security.provider.SeedGenerator
methods.

The reason why I'm having trouble loading applets over http is that
I have grant codeBase "https://something/-" in my ~/.java.policy file.
As soon as I removed https:// clause from my ~/.java.policy everything
works fine over http.

I've attached thread stack dump at the end of the message.
Hope this may help to reproduce and fix the problem.
Thank you,
Sasha

> On Wed, Jun 30, 2004 at 01:42:34PM +0400, Alexander Kirillov wrote:
> 
>>FreeBSD version is 4.10-RELEASE.
> 
> 
> Ok, so we should be identical at least in that respect.
> 
> 
>>This time I gave it a try with one of the applets wich come with the jdk 
>>(/usr/local/jdk1.4.2/demo/jfc/SwingSet2/SwingSet2.html)
>>just to be sure it's not a problem with one of my applets.
>>
>>The browser behaves differently when I'm trying to load the applet over
>>https or http.
>>With https it freezes completely. With http it's sitting there with a
>>blank gray applet panel but still responds to user input.
>>In case of https java console window stays alive if I opened it before
>>going to a page with an applet.
>>
>>In both cases hitting x (clear classloader cache) 2-3 times in java
>>console seems to be getting
>>the plugin off the hook and everything works after that.
>>I've attached plugin traces for both cases at the bottom of this message.
> 
> 
> Thanks.  I'll take a look at these as soon as I can and do some testing
> myself.  I've tried loading a plugin over http and didn't have any
> problems.  I will definitely try https too though.

"main" prio=5 tid=0x0806ba00 nid=0x804e000 runnable [bfbf8000..bfbfb75c]
	at java.io.FileInputStream.readBytes(Native Method)
	at java.io.FileInputStream.read(FileInputStream.java:194)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
	- locked <0x2cc70e38> (a java.io.BufferedInputStream)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
	- locked <0x2cc70e58> (a java.io.BufferedInputStream)
	at
sun.security.provider.SeedGenerator$URLSeedGenerator.getSeedByte(SeedGenerator.java:467)
	at sun.security.provider.SeedGenerator.getSeedBytes(SeedGenerator.java:137)
	at sun.security.provider.SeedGenerator.generateSeed(SeedGenerator.java:132)
	at
sun.security.provider.SecureRandom.engineGenerateSeed(SecureRandom.java:112)
	at
sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java:169)
	- locked <0x2cc70eb8> (a sun.security.provider.SecureRandom)
	at java.security.SecureRandom.nextBytes(SecureRandom.java:381)
	- locked <0x2cc70ef8> (a java.security.SecureRandom)
	at java.security.SecureRandom.next(SecureRandom.java:403)
	at java.util.Random.nextInt(Random.java:191)
	at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineInit(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLContextImpl.e(DashoA6275)
	- locked <0x30ccb478> (a java.lang.Class)
	at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.<init>(DashoA6275)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
	at java.lang.Class.newInstance0(Class.java:308)
	at java.lang.Class.newInstance(Class.java:261)
	at javax.net.ssl.SSLSocketFactory.getDefault(DashoA6275)
	- locked <0x30cc85d0> (a java.lang.Class)
	at javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(DashoA6275)
	at javax.net.ssl.HttpsURLConnection.<init>(DashoA6275)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(DashoA6275)
	at
sun.net.www.protocol.https.PluginHttpsURLConnection.<init>(PluginHttpsURLConnection.java:24)
	at sun.plugin.net.protocol.https.Handler.openConnection(Handler.java:109)
	at java.net.URL.openConnection(URL.java:896)
	at
sun.security.provider.PolicyFile.canonicalizeCodebase(PolicyFile.java:1724)
	at sun.security.provider.PolicyFile.getCodeSource(PolicyFile.java:755)
	at sun.security.provider.PolicyFile.addGrantEntry(PolicyFile.java:779)
	at sun.security.provider.PolicyFile.init(PolicyFile.java:575)
	at sun.security.provider.PolicyFile.access$500(PolicyFile.java:261)
	at sun.security.provider.PolicyFile$2.run(PolicyFile.java:526)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.security.provider.PolicyFile.initPolicyFile(PolicyFile.java:458)
	at sun.security.provider.PolicyFile.initPolicyFile(PolicyFile.java:445)
	at sun.security.provider.PolicyFile.init(PolicyFile.java:431)
	at sun.security.provider.PolicyFile.<init>(PolicyFile.java:298)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
	at java.lang.Class.newInstance0(Class.java:308)
	at java.lang.Class.newInstance(Class.java:261)
	at java.security.Policy.getPolicyNoCheck(Policy.java:140)
	- locked <0x3092b0a8> (a java.lang.Class)
	at java.security.ProtectionDomain.implies(ProtectionDomain.java:189)
	at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:254)
	at
java.security.AccessController.checkPermission(AccessController.java:401)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
	at java.lang.SecurityManager.checkSecurityAccess(SecurityManager.java:1673)
	at
sun.plugin.security.ActivatorSecurityManager.checkSecurityAccess(ActivatorSecurityManager.java:66)
	at java.security.Provider.check(Provider.java:384)
	at java.security.Provider.put(Provider.java:339)
	- locked <0x2cc4e458> (a com.sun.crypto.provider.SunJCE)
	at com.sun.crypto.provider.SunJCE_ah.run(DashoA6275)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.crypto.provider.SunJCE.<init>(DashoA6275)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
	at java.lang.Class.newInstance0(Class.java:308)
	at java.lang.Class.newInstance(Class.java:261)
	at java.security.Provider.loadProvider(Provider.java:153)
	at java.security.Security$2.run(Security.java:278)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.Security.reloadProviders(Security.java:274)
	- locked <0x30883368> (a java.lang.Class)
	- locked <0x30883368> (a java.lang.Class)
	at java.security.Security.getProviders(Security.java:814)
	- locked <0x30883368> (a java.lang.Class)
	at javax.net.ssl.SunJSSE_b.a(DashoA6275)
	at javax.net.ssl.SSLContext.getInstance(DashoA6275)
	at sun.plugin.net.protocol.https.Handler$1.run(Handler.java:54)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin.net.protocol.https.Handler.<clinit>(Handler.java:41)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:141)
	at java.net.URL.getURLStreamHandler(URL.java:1043)
	at java.net.URL.<init>(URL.java:542)
	at java.net.URL.<init>(URL.java:434)
	at java.net.URL.<init>(URL.java:383)
	at sun.plugin.AppletViewer.setDocumentBase(AppletViewer.java:923)
	at
sun.plugin.viewer.MNetscapePluginObject.setDocumentURL(MNetscapePluginObject.java:624)
	- locked <0x2cc33040> (a sun.plugin.viewer.MNetscapePluginObject)
	at sun.plugin.navig.motif.Plugin.doit(Plugin.java:297)
	at sun.plugin.navig.motif.Plugin.start(Plugin.java:103)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40E3E66C.8030407>