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 / First Aid / October 2004

Tip: Looking for answers? Try searching our database.

Applet No Longer Working

Thread view: 
Sir George Anonymous - 27 Oct 2004 13:00 GMT
I have an applet that was written a couple of years ago that works
under ie 5 with jvm 1.4.2, but not under ie 6 with jvm 1.4.2_03.
Where should I start looking for the problem?  Is it more likely the
java code, a bug in the virtual machine, the html, or something else?
We're running cold fusion, but the applet is being called via the
<applet> tag.  All that comes up on the newer machines is the dreaded
red X.

Thanks in advance,

Larry Davis
Senior Programmer/Analyst
Cooper Crouse-Hinds, LLC

Note:  The email address on the message is a spam catcher.  To reply
directly to me, send your message to Larry dot Davis at crouse dash
hinds dot com where the words dot, at, and dash represent the
characters ".", "@", and "-" respectively.
Andrew Thompson - 27 Oct 2004 13:46 GMT
> I have an applet that was written a couple of years ago that works
> under ie 5 with jvm 1.4.2, but not under ie 6 with jvm 1.4.2_03.

Maybe it's just gotten lazy, ehhh?  Try flogging it.
<http://www.physci.org/codes/javafaq.jsp#exact>

> Where should I start looking for the problem?

a) The Java console of the browser when pointing at
the URL you did not supply.  Where is it?

b) The code you (also) did not supply.
<http://www.physci.org/codes/sscce.jsp>

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

Sir George Anonymous - 29 Oct 2004 00:26 GMT
> > I have an applet that was written a couple of years ago that works
> > under ie 5 with jvm 1.4.2, but not under ie 6 with jvm 1.4.2_03.
>
> Maybe it's just gotten lazy, ehhh?  Try flogging it.

OK, the problem doesn't appear to be my specific applet.  My newer
machines don't seem to be recognizing the jvm.  I just went out to
Sun's site and tried to run their sample applets and got the same
results.  I tried reinstalling the jre, but it still isn't working.
I'm sure it is just a setting or something, but I can't seem to find
it.  :(  Any thoughts?

Thanks in advance,

Larry Davis
Senior Programmer/Analyst
Cooper Crouse-Hinds, LLC

Note:  The email address on the message is a spam catcher.  To reply
directly to me, send your message to Larry dot Davis at crouse dash
hinds dot com where the words dot, at, and dash represent the
characters ".", "@", and "-" respectively.
Andrew Thompson - 29 Oct 2004 07:29 GMT
>>> I have an applet that was written a couple of years ago that works
>>> under ie 5 with jvm 1.4.2, but not under ie 6 with jvm 1.4.2_03.
[quoted text clipped - 5 lines]
> Sun's site and tried to run their sample applets and got the same
> results.  

It's time to bail you up with 'which browser'?

>...I tried reinstalling the jre, but it still isn't working.
> I'm sure it is just a setting or something,

What is your OS component* configured to use?
<http://www.physci.org/pc/property.jsp?prop=java.version+java.vendor>

* WAG

>..but I can't seem to find
> it.  :(  Any thoughts?

More info.

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

Sir George Anonymous - 29 Oct 2004 12:41 GMT
> >>> I have an applet that was written a couple of years ago that works
> >>> under ie 5 with jvm 1.4.2, but not under ie 6 with jvm 1.4.2_03.
[quoted text clipped - 15 lines]
>
> * WAG

I'm using Internet Explorer, v6.  Since I'm not seeing *any* applets,
the applet on the web page you referenced above doesn't tell me
anything.  :(

However, entering "java -version" on the command line gives me

java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)

(as it should since that's the version I installed on this machine
last night).

Thanks again,

Larry Davis
Senior Programmer/Analyst
Cooper Crouse-Hinds, LLC

Note:  The email address on the message is a spam catcher.  To reply
directly to me, send your message to Larry dot Davis at crouse dash
hinds dot com where the words dot, at, and dash represent the
characters ".", "@", and "-" respectively.
Andrew Thompson - 29 Oct 2004 12:57 GMT
>>>>> I have an applet that was written a couple of years ago that works
>>>>> under ie 5 with jvm 1.4.2, but not under ie 6 with jvm 1.4.2_03.
[quoted text clipped - 7 lines]
>>
>> It's time to bail you up with 'which browser'?

> I'm using Internet Explorer, v6...

OK, I have some experience with IE.

It is worthwhile finding out if the problem is IE specific.

Install Firefox and configure/check it's Java.

>>>...I tried reinstalling the jre, but it still isn't working.
>>> I'm sure it is just a setting or something,
[quoted text clipped - 3 lines]
>>
>> * WAG

That WAG was IE, it is the single most common source of 'problem
with applet' type questions.  Mentioned in the FAQ
<http://www.physci.org/codes/javafaq.jsp#appletie>

> ... Since I'm not seeing *any* applets,
> the applet on the web page you referenced above doesn't tell me
> anything.  :(

OK, time to delve further into IE.
<http://www.physci.org/jvmclean.jsp?pt=deselect>

This page is not relevant to your problem, but the image is.
Bring up the tools/configuration screen displayed on that page,
and report back what you find.

What Java's (if any) are listed?  Are they selected?

> However, entering "java -version" on the command line gives me
>
> java version "1.4.2_06"

Thanks.  You can  also answer basic questions about
you local environment with the JTest application (linked
from the top of the page with 'PC properties' applet).
It is the applcation version of the properties applet.  
Of course, we need to concentrate on your browser
environment for the moment.

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

Sir George Anonymous - 29 Oct 2004 20:57 GMT
>It is worthwhile finding out if the problem is IE specific.
>
>Install Firefox and configure/check it's Java.

OK, I installed Firefox, and the applet runs perfectly on the same
machine.

>That WAG was IE, it is the single most common source of 'problem
>with applet' type questions.  Mentioned in the FAQ
><http://www.physci.org/codes/javafaq.jsp#appletie>

I made sure the java plug-in was installed before I posted, and if I
had an error message to go from (e.g. class not found), then I could
probably diagnose the problem myself.  I realize that most people that
ask "why won't my applet run?" are complete newbies, but I'm not.  ;)


> What Java's (if any) are listed?  Are they selected?

The ie and Firefox options screens both tell me that I'm using Sun's
jvm 1.4.2_06.  Again, that is after the reinstall.  It previously read
1.4.2_03.  And yes, it's selected.


>>However, entering "java -version" on the command line gives me
>>
[quoted text clipped - 6 lines]
>Of course, we need to concentrate on your browser
>environment for the moment.

OK, I downloaded the jtest application so if we need any of that, I
can get it pretty easily.

Thanks again,

Larry Davis
Senior Programmer/Analyst
Cooper Crouse-Hinds, LLC

Note:  The email address on the message is a spam catcher.  To reply
directly to me, send your message to Larry dot Davis at crouse dash
hinds dot com where the words dot, at, and dash represent the
characters ".", "@", and "-" respectively.
Andrew Thompson - 29 Oct 2004 21:24 GMT
>> What Java's (if any) are listed?  Are they selected?
>
> The ie and Firefox options screens both tell me that I'm using Sun's
> jvm 1.4.2_06.  Again, that is after the reinstall.  It previously read
> 1.4.2_03.  And yes, it's selected.

I missed something in your first post that might be important.

Can you run applets that use <object>/<embed> elements?
(Use the HTMLConverter if you need to, I suppose only the
<object> element is needed)

If you can run applets that way, it might be that somebody has
run the (supposedly withdrawn) unmsjvm.exe on the affected PC's.

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

Sir George Anonymous - 30 Oct 2004 13:21 GMT
> Can you run applets that use <object>/<embed> elements?
> (Use the HTMLConverter if you need to, I suppose only the
> <object> element is needed)
>
> If you can run applets that way, it might be that somebody has
> run the (supposedly withdrawn) unmsjvm.exe on the affected PC's.

Cold Fusion didn't like the format of the converted tag, but when I
took out the cf code and made a plain html file with object/embed tags
it worked.  I then tried making a plain html file with the applet tag,
and it didn't work.  That rules out Cold Fusion as the culprit.

Unless our tech group has put unmsjvm.exe into an automated script
that runs upon bootup or upon attaching to the network, I don't think
anybody would have done that.  The two machines that I'm currently
trying to fix (there are others with this issue), are reserved for my
personal use.

Thanks,

Larry Davis
Senior Programmer/Analyst
Cooper Crouse-Hinds, LLC

Note:  The email address on the message is a spam catcher.  To reply
directly to me, send your message to Larry dot Davis at crouse dash
hinds dot com where the words dot, at, and dash represent the
characters ".", "@", and "-" respectively.
Andrew Thompson - 30 Oct 2004 15:44 GMT
>> Can you run applets that use <object>/<embed> elements?
>> (Use the HTMLConverter if you need to, I suppose only the
[quoted text clipped - 13 lines]
> trying to fix (there are others with this issue), are reserved for my
> personal use.

The symptoms of this problem all point to 'unmsvm.exe' being run..
- cannot run <applets>
- can run <object>/<embed>
- Win/IE combo.

I can think of no other problem that would produce those results.

The 'fix' is simple, find, download and install the 3805, 3809 and
3810 builds of the MSVM - that should fix IE's ability to use the
<applet> element.

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

Sir George Anonymous - 31 Oct 2004 13:49 GMT
> The 'fix' is simple, find, download and install the 3805, 3809 and
> 3810 builds of the MSVM - that should fix IE's ability to use the
> <applet> element.

This seems to have done the trick.  For anyone else with the same
problem, I downloaded the three builds from
http://www.virtualmachine.tk/.

During my research in finding the msjvm builds, I found a reference to
a microsoft security patch that reportedly needs to be installed as
well.  Further research indicated that build 3810 *is* the security
patch.  Someone please correct me if I'm wrong here.

*sigh* This is why I'm a software guy and not a hardware guy.

Thanks Andrew,

Larry Davis
Senior Programmer/Analyst
Cooper Crouse-Hinds, LLC

Note:  The email address on the message is a spam catcher.  To reply
directly to me, send your message to Larry dot Davis at crouse dash
hinds dot com where the words dot, at, and dash represent the
characters ".", "@", and "-" respectively.
Andrew Thompson - 31 Oct 2004 15:51 GMT
> ...Further research indicated that build 3810 *is* the security
> patch.  

Probably, yes.  The 3810 was the safest and last of the MSVM builds,
though there are still some security aspects about it that I consider
to be questionable.

>..Someone please correct me if I'm wrong here.

I have a better alternative to either leaving the MSVM
installed, *or* using the unmsvm.exe.

It was during my investigations of the problems caused by 'unmsvm.exe'
that I developed a better alternative to render IE safe of the MSVM.
It is called JVMClean, and it removes the MSVM from under IE.
<http://www.physci.org/jvmclean.jsp>

> *sigh* This is why I'm a software guy and not a hardware guy.

Could you hunt down whoever it was that installed/ran the
unmsvm.exe and notify them of the better alternative?
I am concerned about the other PC's this person has access to.

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

Sir George Anonymous - 29 Oct 2004 13:05 GMT
Oh, I forgot to mention.  The machines with the problems are all running Windows XP.

Thanks,

Larry Davis
Senior Programmer/Analyst
Cooper Crouse-Hinds, LLC

Note:  The email address on the message is a spam catcher.  To reply
directly to me, send your message to Larry dot Davis at crouse dash
hinds dot com where the words dot, at, and dash represent the
characters ".", "@", and "-" respectively.


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



©2008 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.