Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

Applets will not load with JVM 1.5.x

Thread view: 
Gilbert Ostlethwaite - 09 Oct 2006 16:00 GMT
Hi

I'm supporting a web-site that uses a java applet. When any client
connects using either Microsofts JVM or Sun <= 1.4x in their browser
there is no problem and everything works correctly. However, if the
client is using Sun JVM 1.5.x in IE (I haven't tested other browsers
yet), the applet will not load.

I've discovered that by adding the line
"grant {permission java.net.SocketPermission "xxx.xxx.xx.xx", "connect,
resolve";}; to the runtime java.policy file on the client PC, the
applet will load.

Since I find it hard to believe that I now have to advise all potential
clients that they have to alter the contents of their java.policy
(assuming that any of them will actually understand what I'm on about)
I'm sure that I'm missing something on either the server side or in the
HTML that actually loads the applet.
The question is what?

Regards
KiLVaiDeN - 09 Oct 2006 16:53 GMT
> Gilbert Ostlethwaite wrote:
>
[quoted text clipped - 19 lines]
>
> Regards

Hello,

I believe you must sign your applet, here is a tutorial on how to do it

http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html

I hope it solves your problem.

Cheers,
K
Gilbert Ostlethwaite - 09 Oct 2006 17:27 GMT
> Hello,
>
> I believe you must sign your applet, here is a tutorial on how to do it
> :
> http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html

Hi K

Thanks for your response, but I'm not sure that this is the root cause.
I've now found that Firefox does not behave like this. Firefox loads
the applet without a problem.

Regards
Gilbert Ostlethwaite - 09 Oct 2006 17:44 GMT
> I've now found that Firefox does not behave like this. Firefox loads
> the applet without a problem.

Nor does Opera 9.2
Andrew Thompson - 09 Oct 2006 17:10 GMT
...
> I'm supporting a web-site that uses a java applet.
...
The web's a big place.  Care to share an URL,
or would you just like us to guess randomly?

Andrew T.
Gilbert Ostlethwaite - 10 Oct 2006 09:56 GMT
> ...
> > I'm supporting a web-site that uses a java applet.
> ...
> The web's a big place.  Care to share an URL,
> or would you just like us to guess randomly?

Doh!
http://www.brakebros.co.uk

If you see the login box then the applet has loaded successfully.

Regards
Andrew Thompson - 10 Oct 2006 10:11 GMT
> > ...
> > > I'm supporting a web-site that uses a java applet.
> > ...
> > The web's a big place.  Care to share an URL,
> > or would you just like us to guess randomly?
...
> Doh!
> http://www.brakebros.co.uk

Good start, but..

> If you see the login box then the applet has loaded successfully.

..I was almost tempted to add* - to my original suggestion..

'..and please do *not* point us to a page that
involves frames (or pop-ups or flash) or log-ins.

If it is in such a complex page, strip it out into
simple, valid stand-alone test-page of its own
(if you are half serious about getting my help
on this problem).

You might even find, that process itself
ends with a working applet.'

Is it a signed applet?  (Will I see a dialog asking
me to accept/trust the code?)

* ..but why waste the words?   ;-)

Andrew T.
Gilbert Ostlethwaite - 10 Oct 2006 11:59 GMT
> '..and please do *not* point us to a page that
> involves frames (or pop-ups or flash) or log-ins.

This is a third party solution that I have no control over & the login
is the first screen of the applet.

Anyway, it appears that in Sun JVM's >= 1.5 the "use Browser Settings"
option in the Network options of the Java configuration doesn't work
properly. Specifically the JVM appears not to automatically pick up
proxy server settings from IE6 (Firefox automatically picks up proxy
settings and the JVM gets these from Firefox, Opera requires the proxy
to be configured directly anyway). If you manually configure your proxy
server in the Java config tool in Control Panel then everything works.

Next question, is does anyone know why Suns JVM fails to detect the
proxy settings from IE6 (IE6 auto detects proxies)

Regards
Dag Sunde - 10 Oct 2006 13:46 GMT
>> ...
>> > I'm supporting a web-site that uses a java applet.
[quoted text clipped - 6 lines]
>
> If you see the login box then the applet has loaded successfully.

The applet (Login) loads and shows perfectly without any errors
in both IE 6 anf FF for me, with:
   Java Plug-in 1.5.0_06
   Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM

Signature

Dag.

Andrew Thompson - 10 Oct 2006 14:38 GMT
> >> ...
> >> > I'm supporting a web-site that uses a java applet.
...
> > http://www.brakebros.co.uk
> >
> > If you see the login box then the applet has loaded successfully.
> >
> The applet (Login) ..

Ohhh...  That USER ID / PASSWORD thing with the white
blinking caret is the applet?  I missed that bit.

In an case, it loads, I get 'Applet Jj started' in the status line,
no messages in the console, for Java Plug-in 1.5.0_08 in
IE 6.

..What was the question, again?
(Sub) "Applets will not load with JVM 1.5.x"

Uhh. OK.

So we have three tests on two PC's with two
different browser types and two different Java
1.5 versions that all load the applet successfully.
Maybe the problem is the specific box that
cannot load it.

Andrew T.
Dag Sunde - 10 Oct 2006 15:33 GMT
>> "Gilbert Ostlethwaite" <roger.varley@googlemail.com> skrev i melding
<snipped>
>> > If you see the login box then the applet has loaded successfully.
>> >
>> The applet (Login) ..
>
> Ohhh...  That USER ID / PASSWORD thing with the white
> blinking caret is the applet?  I missed that bit.

LOL...
Yes... Here's the src=".." for the frame that contains it...
http://www.brakebros.co.uk/ipscgibin/$APPLETS.exe?BGCOLOR=294F38&FGCOLOR=FFFFFF&
TEXTCOLOR=FCE693%22


> In an case, it loads, I get 'Applet Jj started' in the status line,
> no messages in the console, for Java Plug-in 1.5.0_08 in
[quoted text clipped - 10 lines]
> Maybe the problem is the specific box that
> cannot load it.

Obviously he discovered that 1.5.x have some problems with
auto-discovering proxy settings thru IE 6.

I don't use any proxies, so it was probably the reason it worked for me.

Signature

Dag.

Andrew Thompson - 10 Oct 2006 15:45 GMT
> "Andrew Thompson" <andrewthommo@gmail.com> skrev i melding
..
> > ..What was the question, again?
> > (Sub) "Applets will not load with JVM 1.5.x"
..
> > Maybe the problem is the specific box that
> > cannot load it.
[quoted text clipped - 3 lines]
>
> I don't use any proxies, so it was probably the reason it worked for me.

Aaah.. finally an explanation, so simple even I
can understand it.   ;-)

A.
Andy Dingley - 10 Oct 2006 14:09 GMT
> http://www.brakebros.co.uk

An OT answer for your Java question, but that is one of the worst web
sites I've seen in ages. You just _can't_ throw the user a java applet
on the first page and lock the whole site out if they don't get past
it. It's just not reasonable web design.
Gilbert Ostlethwaite - 10 Oct 2006 14:33 GMT
> An OT answer for your Java question, but that is one of the worst web
> sites I've seen in ages. You just _can't_ throw the user a java applet
> on the first page and lock the whole site out if they don't get past
> it. It's just not reasonable web design.

If you check my original post ... I only support it :-)

Regards


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.