Red Hat Bugzilla – Full Text Bug Listing
|Summary:||applet bytecode verification errors|
|Product:||[Fedora] Fedora||Reporter:||Thomas Fitzsimmons <fitzsim>|
|Component:||java-1.6.0-openjdk||Assignee:||Andrew Haley <aph>|
|Status:||CLOSED NOTABUG||QA Contact:||Fedora Extras Quality Assurance <extras-qa>|
|Version:||9||CC:||aph, esteban.xandri, langel, michal, mjw, patrickm, scottt.tw|
|Fixed In Version:||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2008-11-18 10:23:32 EST||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
Description Thomas Fitzsimmons 2007-10-24 17:27:14 EDT
+++ This bug was initially created as a clone of Bug #333721 +++ [pruned unrelated comment] -- Additional comment from firstname.lastname@example.org on 2007-10-24 16:57 EST -- Here is more applets which end up with "Start: applet not initialized". Those on the following pages: http://www.colorado.edu/physics/2000/xray/making_xrays.html http://www.colorado.edu/physics/2000/tomography/x_rays.html http://www.colorado.edu/physics/2000/tomography/final_rib_cage.html http://www.colorado.edu/physics/2000/tomography/auto_rig_cage.html Various applets from http://www.colorado.edu/physics/2000/ do work although I do not know if the list above cannot be extended if one would try all of them (and a pretty extensive collection is available at that location). With java plugin from Sun all the above are fine. This was checked with java-1.7.0-icedtea-plugin-126.96.36.199-0.19.b21.snapshot.fc8.x86_64 -- Additional comment from email@example.com on 2007-10-24 16:59 EST -- Oops! Read http://www.colorado.edu/physics/2000/tomography/auto_rib_cage.html instead of "auto_rig..." -- Additional comment from firstname.lastname@example.org on 2007-10-24 17:19 EST -- [pruned]
Comment 1 Lillian Angel 2007-11-02 10:46:34 EDT
I cant seem to get these applets working with any java plugins from Sun (1.5, 1.6 and 1.7). What version did you use?
Comment 2 Lillian Angel 2007-11-02 11:19:55 EDT
Also, this seems to fail with OpenJDK. I don't believe it is an IcedTea/gcjwebplugin bug. Changing status to "NEED INFO"
Comment 3 Michal Jaegermann 2007-11-02 14:36:25 EDT
Created attachment 246941 [details] image from a working applet > I cant seem to get these applets working with any java plugins from Sun That is somewhat strange. Although indeed the first one on that list appears to develop some troubles (probably it got "fixed" in the meantime as it worked when I tried it in time of the report) the other three work for me just fine. I attach a screenshot of a relevant screen fragment from firefox on F7 running the fourth one, i.e. "auto_rib_cage", on that list. I also tried with CentOS4 installation with firefox and galeon. Every time this worked. When starting this example I see Applet tomography/Tomography started at a status line at the bottom of a browser and everything looks like expected. In all tests above I used a plugin from Sun java 188.8.131.52. Those applets also used to work for me with earlier Sun versions but I do not have that on hands anymore. Just to be sure I rechecked the current situtation using java-1.7.0-icedtea-plugin-184.108.40.206-0.19.b21.snapshot.fc8, in case something changed in applets, and they still none of these works.
Comment 4 Lillian Angel 2007-11-02 14:42:03 EDT
Looking into it. Thanks for the info.
Comment 5 Michal Jaegermann 2007-11-02 15:36:21 EDT
Comment 6 Lillian Angel 2007-11-05 14:25:22 EST
Have you tried these applets with Sun's appletviewer? I just tested them with 1.5.0 and they do not work. I am curious if they only work with Sun's Java Plugin: applet]$ ./jdk1.5.0_13/bin/appletviewer http://www.colorado.edu/physics/2000/tomography/final_rib_cage.htmljava.lang.ClassFormatError: Invalid start_pc 65535 in LocalVariableTable in class file tomography/Figure at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:163) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at tomography.Tomography.init(C:\Msdev\projects\tomography\Tomography.java:29) at sun.applet.AppletPanel.run(AppletPanel.java:380) at java.lang.Thread.run(Thread.java:595) applet]$ ./jdk1.5.0_13/bin/appletviewer http://www.colorado.edu/physics/2000/xray/making_xrays.html java.lang.VerifyError: (class: bohr/TungstenAtom, method: detectCollisions signature: ()V) Illegal use of nonvirtual function call at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) at java.lang.Class.getConstructor0(Class.java:2671) at java.lang.Class.newInstance0(Class.java:321) at java.lang.Class.newInstance(Class.java:303) at sun.applet.AppletPanel.createApplet(AppletPanel.java:723) at sun.applet.AppletPanel.runLoader(AppletPanel.java:652) at sun.applet.AppletPanel.run(AppletPanel.java:326) at java.lang.Thread.run(Thread.java:595)
Comment 7 Michal Jaegermann 2007-11-05 15:26:56 EST
> Have you tried these applets with Sun's appletviewer? I did not have appletviewer even installed until now. :-) (I used, more or less, nosrc.rpm from http://www.jpackage.org/ to repackage Sun stuff as a series of rpms and I did not bother with installing java-1.6.0-sun-devel before you asked). > I am curious if they only work with Sun's Java Plugin That looks like the case. I am seeing exactly the same spillage in appletviewer from java-1.6.0-sun-220.127.116.11 like you quote in comment #6. No idea how those thing work with plugins. That is clearly developed under Windows: "...init(C:\Msdev\projects\tomography\Tomography.java:29)". Maybe java there is much more lax? The same "... Invalid start_pc 65535 in LocalVariableTable ..." error shows up with two other URLs from the original report too. Not that surprising as the same class file is in use. Hm, apparently a contact address is email@example.com Could you bug those guys? I am very naive when it comes to Java.
Comment 8 Lillian Angel 2007-11-15 12:43:31 EST
It seems as though Sun's plugin has a bytecode transformer which converts erronous class files to something usable. IcedTea's plugin does not have this at the moment.
Comment 9 Bug Zapper 2008-05-13 23:43:26 EDT
Changing version to '9' as part of upcoming Fedora 9 GA. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Comment 10 Red Hat Bugzilla 2008-07-24 21:04:04 EDT
Adding firstname.lastname@example.org to the cc list as the manager of the disabled user email@example.com who reported this bug
Comment 11 Andrew Haley 2008-11-18 10:23:32 EST
I'm closing this: the class files are not valid, and there's nothing in the VM spec that says we should not reject them. In fact, the VM spec says we should.
Comment 12 Michal Jaegermann 2008-11-18 12:31:04 EST
> the class files are not valid ... By this token it would be impossible to boot most of "PC class" machines as BIOSes are usually horribly broken if you follow specs. OTOH at lest with a plugin from java-1.6.0-sun-18.104.22.168 on an applet from http://www.colorado.edu/physics/2000/xray/making_xrays.html I am getting an error and "details" show: java.lang.VerifyError: (class: bohr/TungstenAtom, method: detectCollisions signature: ()V) Illegal use of nonvirtual function call at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at sun.applet.AppletPanel.createApplet(AppletPanel.java:785) at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2302) at sun.applet.AppletPanel.runLoader(AppletPanel.java:714) at sun.applet.AppletPanel.run(AppletPanel.java:368) at java.lang.Thread.run(Thread.java:619) If there is some hope that this will get fixed? Chances seem to be slim as this used to "work" before. OTOH it is easy to collect quickly an impressive collection of complaints from various applets on http://www.colorado.edu/physics/2000/ site even if they do show something. As I suggested before - if somebody who knows first things about Java, and that is not me, would contact firstname.lastname@example.org that would likely be good.
Comment 13 Andrew Haley 2008-11-18 12:49:59 EST
> If there is some hope that this will get fixed? Unlikely. It should just be a matter of recompiling the applets with a javac that is not broken. Surely eventually UColorado will simply do the Right Thing and recompile the applets.
Comment 14 Michal Jaegermann 2008-11-18 13:25:06 EST
The question about "hope" (s/If/Is/) was really about a preceding trace and not java distributed with Fedora. I also think "unlikely", at least without some prodding, contrary to the opinion expressed in the last sentence of the previous comment. :-) Some of these "out-of-specs" applets still work, more or less, with java-1.6.0-sun-plugin-22.214.171.124 so an incentive to fix them does not look so great.