[Bug 131] New: IcedTea crashes on a simple applet

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Tue Apr 1 09:55:04 PDT 2008


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=131

           Summary: IcedTea crashes on a simple applet
           Product: IcedTea
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: IcedTea
        AssignedTo: unassigned at icedtea.classpath.org
        ReportedBy: Luc.Bouge at bretagne.ens-cachan.fr


My Linux box is running Fedora Core 8: "Linux cidre.irisa.fr 2.6.23.9-85.fc8 #1
SMP Fri Dec 7 15:49:59 EST 2007 i686 i686 i386 GNU/Linux"

I am running InceTea Java

[bouge at cidre Cours6_Applets]$ appletviewer -debug a
Initializing jdb ...
> version
This is jdb version 1.6 (Java SE version 1.7.0)

I am prepared a simple applet for teaching a Java programming course. It is
appended below.

If I start appletviewer, and then click on "reload", then the applet
disappears.

I have tried to run this scenario under the debugger: here is the output. An
exception is raised "IllegalMonitorStateException".


[bouge at cidre Cours6_Applets]$ appletviewer -debug Hello1.html
Initializing jdb ...
> run
run sun.applet.Main Hello1.html
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable

VM Started: >
Exception occurred: java.lang.IllegalMonitorStateException
(uncaught)"thread=TimerQueue",
java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(), line=155 bci=24

TimerQueue[1] where
  [1] java.util.concurrent.locks.ReentrantLock$Sync.tryRelease
(ReentrantLock.java:155)
  [2] java.util.concurrent.locks.AbstractQueuedSynchronizer.release
(AbstractQueuedSynchronizer.java:1,193)
  [3] java.util.concurrent.locks.ReentrantLock.unlock (ReentrantLock.java:459)
  [4] java.util.concurrent.DelayQueue.take (DelayQueue.java:205)
  [5] javax.swing.TimerQueue.run (TimerQueue.java:171)
  [6] java.lang.Thread.run (Thread.java:675)
TimerQueue[1] 

[bouge at cidre Cours6_Applets]$   

_______________________________________________________________________________
File "Hello1.java"

import java.awt.Graphics;
import java.awt.Color;
import javax.swing.*;

public class Hello1 extends javax.swing.JApplet {

    public void init() {
        setBackground(Color.GREEN);
    }

    public void paint(Graphics g) {
        g.setColor(Color.RED);
        g.drawString("Hello World!", 5, 15);
    }

}

_______________________________________________________________________
File "Hello1.html"

<html>

<head>
<title>Hello world  #1!</title>
</head>

<body>

<h1>Ceci est le titre de ma première applet Java</h1>

Un peu de texte avant l'applet

<applet code="Hello1.class"
        width=100 
        height=20>
</applet>

et un peu de texte après!

</body>

</html>


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the distro-pkg-dev mailing list