| View previous topic :: View next topic |
| Author |
Message |
Al Murphy Guest
|
Posted: Thu Jan 29, 2004 2:54 pm Post subject: Swing based applet not rendering - but I have the plugin! |
|
|
Hi,
Hope I have the right group. I'm trying to view a swing based applet
on a website but it is not rendering at all (I just get a grey box).
cf. error message below
Yes - I know, I have the Java plug-in installed (v.1.4.1_02). I'm
using IE v6.0.2800 on a Windows XP box (service pack 1).
Anyone with any ideas/comments/suggestions. I'm really confused!
Help!
Cheers,
Al
****** Java Console Error Message ********
java.lang.ArrayIndexOutOfBoundsException
at advtypew.run (advtypew.java)
at java/lang/Thread.run )(Thread.java)
java.lang.ClassNotFoundException: javax.swing.JApplet
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at java/lang/ClassLoader.loadClassInternal (ClassLoader.java)
at java/lang/ClassLoader.resolveClass (ClassLoader.java)
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/applet/AppletPanel.securedClassLoad (AppletPanel.java)
at com/ms/applet/AppletPanel.processSendEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSendEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
|
|
| Back to top |
|
 |
S Manohar Guest
|
Posted: Sun Feb 01, 2004 1:52 am Post subject: Re: Swing based applet not rendering - but I have the plugin |
|
|
I assume you mean the Java 1.4.1 console, and that the applet works
fine in appletviewer? Post the html bit as well...
[email]almurph (AT) altavista (DOT) com[/email] (Al Murphy) wrote in message news:<a23daf3f.0401290654.77ada1d0 (AT) posting (DOT) google.com>...
| Quote: | Hi,
Hope I have the right group. I'm trying to view a swing based applet
on a website but it is not rendering at all (I just get a grey box).
cf. error message below
Yes - I know, I have the Java plug-in installed (v.1.4.1_02). I'm
using IE v6.0.2800 on a Windows XP box (service pack 1).
Anyone with any ideas/comments/suggestions. I'm really confused!
Help!
Cheers,
Al
****** Java Console Error Message ********
java.lang.ArrayIndexOutOfBoundsException
at advtypew.run (advtypew.java)
at java/lang/Thread.run )(Thread.java)
java.lang.ClassNotFoundException: javax.swing.JApplet
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at java/lang/ClassLoader.loadClassInternal (ClassLoader.java)
at java/lang/ClassLoader.resolveClass (ClassLoader.java)
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/applet/AppletPanel.securedClassLoad (AppletPanel.java)
at com/ms/applet/AppletPanel.processSendEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSendEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
|
|
|
| Back to top |
|
 |
Al Murphy Guest
|
Posted: Mon Feb 02, 2004 10:40 am Post subject: Re: Swing based applet not rendering - but I have the plugin |
|
|
HTML code says:
<APPLET code = "EuroPuntConverterSwing.class" width = 380 height = 150>
Upgrade your browser
</APPLET>
Any ideas?
[email]sgmanohar (AT) hotmail (DOT) com[/email] (S Manohar) wrote in message news:<2ee5ef27.0401311752.333dc4ba (AT) posting (DOT) google.com>...
| Quote: | I assume you mean the Java 1.4.1 console, and that the applet works
fine in appletviewer? Post the html bit as well...
|
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Mon Feb 02, 2004 11:04 am Post subject: Re: Swing based applet not rendering - but I have the plugin |
|
|
"Al Murphy" ...
....
| Quote: | ...I'm trying to view a swing based applet
on a website but it is not rendering at all (I just get a grey box).
cf. error message below
...I have the Java plug-in installed (v.1.4.1_02).
....
****** Java Console Error Message ********
....
java.lang.ArrayIndexOutOfBoundsException
at advtypew.run (advtypew.java)
|
This does not sound like a plug-in problem,
but a problem with the applet itself.
What is your URL, and the _short_
applet code?
--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Mon Feb 02, 2004 4:23 pm Post subject: Re: Swing based applet not rendering - but I have the plugin |
|
|
"Mark Haase"...
| Quote: | (Al Murphy) wrote:
....
I just noticed that you threw a ClassNotFoundException. Are you sure you
have the java plugin enabled? Just downloading it doesn't always set it
up correctly. You need to select it in IE's preferences.
|
A quick way to check.
http://www.physci.org/codes/jre.jsp
If you are still using the MS 1.1 VM, the
page will redirect if you test for version 1.2
--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
|
|
| Back to top |
|
 |
Al Murphy Guest
|
Posted: Tue Feb 03, 2004 12:52 pm Post subject: Re: Swing based applet not rendering - but I have the plugin |
|
|
"Andrew Thompson" <SeeMySites (AT) www (DOT) invalid> wrote
| Quote: | This does not sound like a plug-in problem,
but a problem with the applet itself.
What is your URL, and the _short_
applet code?
|
Andrew,
Bit of an update. I've downloaded & installed Java console
1.4.2_03. It's fully enabled in tools -> advanced -> etc...
I've viewed the japplet again but to no avail. The console throws
the following exception:
java.lang.ClassNotFoundException: javax.swing.JApplet
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at java/lang/ClassLoader.loadClassInternal (ClassLoader.java)
at java/lang/ClassLoader.resolveClass (ClassLoader.java)
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/applet/AppletPanel.securedClassLoad (AppletPanel.java)
at com/ms/applet/AppletPanel.processSendEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSendEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
It's the same error as before. This is a pain. I've seen this applet
work before! The applet is on http://www.rice.eu.org/
I believe it's swing based and uses the gridbag layout manager & I've
seen it work before and it works using Netscape Navigator 7.1. What is
the problem? Unformatunately I don't have access to the source code.
Bummer!
Very confused,
Al.
|
|
| Back to top |
|
 |
Al Murphy Guest
|
Posted: Tue Feb 03, 2004 1:00 pm Post subject: Re: Swing based applet not rendering - but I have the plugin |
|
|
"Andrew Thompson" <SeeMySites (AT) www (DOT) invalid> wrote
| Quote: | This does not sound like a plug-in problem,
but a problem with the applet itself.
What is your URL, and the _short_
applet code?
|
Andrew,
I also notice that it is throwing the exact same erro message at the
test swing applet at the Sun site:
http://java.sun.com/docs/books/tutorial/uiswing/start/HelloSwingApplet.html
So it can;t be the code can it. Must be a third factor. Strange.
Al.
The confused.
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Tue Feb 03, 2004 1:23 pm Post subject: Re: Swing based applet not rendering - but I have the plugin |
|
|
Andrew Thompson wrote:
....
I noticed your two responses.
Both Sun's applet and the other URL you gave,
worked for me with IE6 and Java 1.4.2, the
URL you supplied has two applets that convert
currency (what the heck is a 'punt'?)
So far you have not reported your result for
the URL above. The more you say, the more
I think that despite what your IE is telling you,
it is still using the old VM.
Or, of course, you might just install a real UA
like Mozilla if the overriding concern is using applets.
Perhaps the problem is the rather poor browser
in the middle.
--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
|
|
| Back to top |
|
 |
Tor Iver Wilhelmsen Guest
|
Posted: Tue Feb 03, 2004 5:50 pm Post subject: Re: Swing based applet not rendering - but I have the plugin |
|
|
[email]almurph (AT) altavista (DOT) com[/email] (Al Murphy) writes:
| Quote: | java.lang.ClassNotFoundException: javax.swing.JApplet
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
|
This means that it's using the Microsoft VM, not Sun's. Go into the
"Advanced" tab of the IE properties and check that you have the option
to use Sun's VM for APPLET elements.
|
|
| Back to top |
|
 |
Al Murphy Guest
|
Posted: Tue Feb 03, 2004 6:22 pm Post subject: Re: Swing based applet not rendering - but I have the plugin |
|
|
I also see now that when I view the applet at the eu.org/ URL
Netscape's Navigator throws the following error:
java.lang.ClassNotFoundException: BaseConvert.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
|
|
| Back to top |
|
 |
Al Murphy Guest
|
Posted: Thu Feb 12, 2004 4:05 pm Post subject: Re: Swing based applet not rendering - but I have the plugin |
|
|
Folks,
Thanks for all your help - I found out the reason. I swing based
applets that use the <applet> tag do not invoke the plugin in IE 6.0.
However if you use the following <object> code tag it will force the
'dormant' plugin to invoke:
<OBJECT
classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
codebase = "http://java.sun.com/update/1.4.2/jinstall-1_4-windows
i586.cab#Version=1,4,0,0"
WIDTH = 150 HEIGHT = 300 >
<PARAM NAME = CODE VALUE = filename.class >
<PARAM NAME = "type" VALUE =
"application/x-java-applet;version=1.4">
<PARAM NAME = "scriptable" VALUE = "false">
</OBJECT>
Thanks for all your help.
Al.
I live therfore I learn.
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Thu Feb 12, 2004 4:43 pm Post subject: Re: Swing based applet not rendering - but I have the plugin |
|
|
Al Murphy wrote:
| Quote: | Folks,
Thanks for all your help - I found out the reason. I swing based
applets that use the <applet> tag do not invoke the plugin in IE 6.0.
|
They most certinly do Al, I use them
myself in valid html. Using IE 6 on XP
I can see applets like..
http://www.physci.org/applet/ptoe.jsp
This periodic table requires 1.4.
Now, I got curious about a link you posted
http://java.sun.com/docs/books/tutorial/uiswing/start/HelloSwingApplet.html
You reported this link showed the same
symptoms as your page.
....The thing is, that page has the applet tag
*commented* *out*. For some reason
Sun has left the page up, with the confusing
message to the effect..
"If you do not see this, you need the plug-in"
| Quote: | However if you use the following <object> code tag it will force the
'dormant' plugin to invoke:
|
Valid html, using the applet tag,
will have the same effect.
Speaking of which, you have given us
many html 'snippets' and stacktraces,
but you have not provided some _extremely_
important information.
*URL*.
Where is you applet at? you can put it up
free at geocities and other places.
--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
|
|
| Back to top |
|
 |
Al Murphy Guest
|
Posted: Fri Feb 13, 2004 10:34 am Post subject: Re: Swing based applet not rendering - but I have the plugin |
|
|
"Andrew Thompson" <SeeMySites (AT) www (DOT) invalid> wrote
| Quote: | Al Murphy wrote:
Folks,
Thanks for all your help - I found out the reason. I swing based
applets that use the <applet> tag do not invoke the plugin in IE 6.0.
They most certinly do Al, I use them
myself in valid html. Using IE 6 on XP
I can see applets like..
http://www.physci.org/applet/ptoe.jsp
This periodic table requires 1.4.
|
I go to this link and it tells me that I need to install 1.4. When I
go over to Sun it tells me that I have the most recent version of the
plugin installed i.e. 1.4._03. The point is Andrew is that I believe
for some reason that the <applet> tag does not invoke the plugin on my
box. However the <object> tag does. Granted I am sitting behind a
firewall so perhaps this has something to do with it. I don;t know why
though. I swear I have checked everything else - IE options, control
panel plugin options etc... I have all the new aptches installed for
XP & IE etc... Can't think of anything else...
| Quote: | Now, I got curious about a link you posted
http://java.sun.com/docs/books/tutorial/uiswing/start/HelloSwingApplet.html
You reported this link showed the same
symptoms as your page.
...The thing is, that page has the applet tag
*commented* *out*. For some reason
Sun has left the page up, with the confusing
message to the effect..
"If you do not see this, you need the plug-in"
|
Well spotted Andrew. I didn't notice.
| Quote: | However if you use the following <object> code tag it will force the
'dormant' plugin to invoke:
Valid html, using the applet tag,
will have the same effect.
Speaking of which, you have given us
many html 'snippets' and stacktraces,
but you have not provided some _extremely_
important information.
*URL*.
Where is you applet at? you can put it up
free at geocities and other places.
|
Applet throwing serious error at: http://rice.eu.org/
on the RHS at the top...
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Fri Feb 13, 2004 12:17 pm Post subject: Re: Swing based applet not rendering - but I have the plugin |
|
|
Andrew Thompson wrote:
...and since I mentioned it..
| Quote: | applet code =" BaseConvert.class" width = 200 height = 300
applet |
code="BaseConvert.class"
width=200
height=300>
| Quote: | Upgrade your browser
?!?!? |
[ How dare you tell me what to do! I'm outta' here. ]
instead.....
Wonderful things appear here if you have the FREE Java Plun-In
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
|
| Back to top |
|
 |
|