From owner-freebsd-java Sun Feb 17 9:33:38 2002 Delivered-To: freebsd-java@freebsd.org Received: from d3210.upc-d.chello.nl (d7058.upc-d.chello.nl [213.46.7.58]) by hub.freebsd.org (Postfix) with ESMTP id D7D9437B426 for ; Sun, 17 Feb 2002 09:33:26 -0800 (PST) Received: from bowtie.nl (localhost [127.0.0.1]) by d3210.upc-d.chello.nl (8.11.3/8.11.3) with ESMTP id g1HHXAi63498; Sun, 17 Feb 2002 18:33:19 +0100 (CET) (envelope-from marc@bowtie.nl) Message-ID: <3C6FE956.1BE2E200@bowtie.nl> Date: Sun, 17 Feb 2002 18:33:10 +0100 From: Marc van Kempen X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-RC2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Joe Kelsey Cc: java@freebsd.org Subject: Re: Mozilla plugin and native JDK 1.3.1p6. References: <20020215150421.A50739@shale.csir.co.za> <20020216150534.C60480@shale.csir.co.za> <1013894600.59818.5.camel@zircon.zircon.seattle.wa.us> <20020217003431.E60480@shale.csir.co.za> <1013903067.59818.12.camel@zircon.zircon.seattle.wa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Joe Kelsey wrote: > > On Sat, 2002-02-16 at 14:34, Jeremy Lea wrote: > > On Sat, Feb 16, 2002 at 01:23:20PM -0800, Joe Kelsey wrote: > > > Did you compile Mozilla with debugging enabled? I have seen this > > > error occur consistently whenever I tried compileing Mozilla with > > > debugging enabled, but disappear whenever I turn off debugging. It is > > > very frustrating, as I was trying to track down a plugin error on the > > > Mozilla side, but this error prevented the oji plugin from loading, so > > > I was never able to debug it. > > > > Yes, because I was trying to debug it too... Oh well, it looks like > > this has all taken me down a long path, involving lots of compiling, and > > it appears at the moment that my problem is simple. Java isn't using a > > proxy server... Anyone know how to tell the plugin about my proxy? > > The proxy bug in the plugin is the last bug we fixed before releasing > patchset 6. The problem, if you want to know, is that > nsProxyHostImpl::FindProxyForURL returns a bad error code for *direct* > connections, but returns the correct code for *proxy* connections. Greg > Lewis specifically tested with proxies set up in Mozilla to verify that > the code works. I wanted to trace the erring function to find out why > it returned the error code for direct connections, but could not get the > debugging mozilla to get past the loading of the oji plugin. > > Anyway, if anyone out there knows how to fix this stupid error, it would > really help us with the debugging of some sticky bugs here. The way > that we worked around the bug is that if FindProxyForURL returns an > error, we treat the connection as direct. That means that if you have > valid proxies set up in mozilla, it should still use them correctly. > The manifestation of the bug we were trying to fix is the inability to > load applet code for direct connections. > My problem with the plugin is that when I use an authenticated proxy the browser just hangs while loading the applet. It might be that in this case the function also returns an errorcode (when you're not yet authenticated), but then fails because it gets treated as a direct connection. Marc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message