My patch has been incorrectly applied

Pavel Roskin pavel_roskin at geocities.com
Tue Nov 17 03:05:45 PST 1998


Hello!

My patch for enabling compatability between AppletViewer and Sun JDK has
been applied incorrectly. Patch against today's CVS attached.
IMHO debugging messages about mutex's should not be in the CVS, because
they break tests.
Maybe some developers may be interested to see how today's Kaffe
(with recompiled Klasses.jar) works with AIM, ICQ, HotJava, Javanoid and
EasyMandel.

===================================
[proski at zorro proski]$ kaffe -classpath
/home/proski/aim/AIM.jar:/usr/local/share/kaffe/Klasses.jar:/usr/local/java/lib/classes.zip
main.Oscar -root /home/proski/aim
Running AOL Instant Messenger (TM) version 1.1.19 for Java built 03/24/98,
freeMem 22020096 totalMem 33554432, i586, Linux, #4 Fri Nov 13 16:41:10
GMT 1998, Transvirtual Technologies, Inc., 1.00, 1, 17-Nov-98 2:45:20 AM
1 __lockMutex() lk 0x400500d0 count 1 holder 0x804d058 current 0x8b9f038
2 __lockMutex() lk 0x400500d0 count 0 holder 0x8b9f038 current 0x8b9f038
1 __lockMutex() lk 0x40052564 count 1 holder 0x804d058 current 0x8b9f038
2 __lockMutex() lk 0x40052564 count 0 holder 0x8b9f038 current 0x8b9f038
1 __lockMutex() lk 0x400500d0 count 1 holder 0x804d058 current 0x8b9f038
1 __lockMutex() lk 0x40052564 count 1 holder 0x8b9f038 current 0x804d058
2 __lockMutex() lk 0x400500d0 count 0 holder 0x8b9f038 current 0x8b9f038
2 __lockMutex() lk 0x40052564 count 0 holder 0x804d058 current 0x804d058
1 __lockMutex() lk 0x400500ec count 1 holder 0x804d058 current 0x8f60038
1 __lockMutex() lk 0x400500d0 count 1 holder 0x804d058 current 0x8f69038
2 __lockMutex() lk 0x400500ec count 0 holder 0x8f60038 current 0x8f60038
1 __lockMutex() lk 0x400500d0 count 1 holder 0x804d058 current 0x8f60038
2 __lockMutex() lk 0x400500d0 count 0 holder 0x8f60038 current 0x8f60038
2 __lockMutex() lk 0x400500d0 count 0 holder 0x8f69038 current 0x8f69038
1 __lockMutex() lk 0x400500d0 count 1 holder 0x804d058 current 0x91db038
2 __lockMutex() lk 0x400500d0 count 0 holder 0x91db038 current 0x91db038
java.lang.NullPointerException
        at java/awt/image/FilteredImageSource.startProduction(52)
        at java/awt/Image$Initializer.startProduction(246)
        at java/awt/Image$Initializer.run(181)
        at java/lang/Thread.run(140)
===================================
[proski at zorro proski]$ kaffe -classpath
/home/proski/ICQJava/ICQ.jar:/usr/local/share/kaffe/Klasses.jar:/usr/local/java/lib/classes.zip
Mirabilis.ICQ.NetAware.CNetAwareApp -path /home/proski/ICQJava
java.lang.NullPointerException
        at java/awt/image/FilteredImageSource.startProduction(52)
        at java/awt/Image$Initializer.startProduction(246)
        at java/awt/Image$Initializer.run(181)
        at java/lang/Thread.run(140)
===================================
[proski at zorro proski]$ kaffe -classpath /usr/local/hjava/lib/classes.zip:/usr/local/hjava/lib:/usr/local/share/kaffe/Klasses.jar:/usr/local/java/lib/classes.zip
-Dhotjava.home=/usr/local/hjava -Djava.home=/usr/local/java
sunw.hotjava.Main
[Starting HotJava]
[Initializing globals]
sunw.hotjava.security.SecurityPolicy could not be loaded as a security
manager
java.lang.NullPointerException
        at java/lang/System.checkPropertyAccess(50)
        at java/lang/System.getProperty(72)
        at java/lang/Integer.getInteger(89)
        at java/lang/Integer.getInteger(101)
        at sun/net/www/http/KeepAliveCache.<clinit>(37)
        at sun/net/www/http/HttpClient.<clinit>(79)
        at sunw/hotjava/misc/Globals.initProperties(361)
        at sunw/hotjava/Main.main(79)
error: null
java.lang.NullPointerException
        at java/lang/System.checkPropertyAccess(50)
        at java/lang/System.getProperty(72)
        at java/lang/System.getProperty(68)
        at java/lang/Runtime.<init>(28)
        at java/lang/Runtime.<clinit>(21)
        at sunw/hotjava/Main.main(84)
===================================
[proski at zorro jn]$ kaffe -classpath /usr/local/share/kaffe/Klasses.jar:.
kaffe.applet.AppletViewer javanoid.htm 
1 __lockMutex() lk 0x400500ec count 1 holder 0x804d058 current 0x88a1038
2 __lockMutex() lk 0x400500ec count 0 holder 0x88a1038 current 0x88a1038
java.lang.NullPointerException
        at java/net/URL.<init>(91)
        at java/applet/Applet.getImage(78)
        at jngame.<init>(231)
        at javanoid.init(43)
        at kaffe/applet/AppletViewer.<init>(110)
        at kaffe/applet/AppletViewer.main(219)
java.lang.NullPointerException
        at java/net/URL.<init>(91)
        at java/applet/Applet.getImage(78)
        at jngame.<init>(231)
        at javanoid.init(43)
        at kaffe/applet/AppletViewer.<init>(110)
        at kaffe/applet/AppletViewer.main(219)
1 __lockMutex() lk 0x888c488 count 1 holder 0x89bd038 current 0x88a1038
2 __lockMutex() lk 0x888c488 count 0 holder 0x88a1038 current 0x88a1038
===================================
[proski at zorro jn]$ kaffe -classpath
/usr/local/share/kaffe/Klasses.jar:/usr/local/java/lib/classes.zip:.
sun.applet.AppletViewer javanoid.htm 
[no appletviewer.properties file found!]
security properties not found. using defaults.
java.lang.NullPointerException
        at java/io/InputStreamReader.read(52)
        at java/io/BufferedReader.refillBuffer(168)
        at java/io/BufferedReader.read(69)
        at sun/applet/AppletViewer.parse(927)
        at sun/applet/AppletViewer.parse(904)
        at sun/applet/AppletViewer.main(1081)
===================================
[proski at zorro jn]$ /usr/local/java/bin/java -classpath
/usr/local/java/lib/classes.zip:/usr/local/share/kaffe/Klasses.jar:.
kaffe.applet.AppletViewer javanoid.htm 
java.lang.NullPointerException
        at jngame.<init>(javanoid.java:238)
        at javanoid.init(javanoid.java:43)
        at kaffe.applet.AppletViewer.<init>(AppletViewer.java:110)
        at kaffe.applet.AppletViewer.main(AppletViewer.java:219)
java.lang.NullPointerException
        at jngame.<init>(javanoid.java:238)
        at javanoid.init(javanoid.java:43)
        at kaffe.applet.AppletViewer.<init>(AppletViewer.java:110)
        at kaffe.applet.AppletViewer.main(AppletViewer.java:219)
===================================
[proski at zorro em]$ kaffe -classpath
/usr/local/share/kaffe/Klasses.jar:/usr/local/java/lib/classes.zip:.
sun.applet.AppletViewer easymandel.htm 
[no appletviewer.properties file found!]
security properties not found. using defaults.
java.lang.NullPointerException
        at java/io/InputStreamReader.read(52)
        at java/io/BufferedReader.refillBuffer(168)
        at java/io/BufferedReader.read(69)
        at sun/applet/AppletViewer.parse(927)
        at sun/applet/AppletViewer.parse(904)
        at sun/applet/AppletViewer.main(1081)
===================================

Pavel Roskin
-------------- next part --------------
Index: libraries/javalib/kaffe/applet/AppletViewer.java
===================================================================
RCS file: /home/cvspublic/kaffe/libraries/javalib/kaffe/applet/AppletViewer.java,v
retrieving revision 1.4
diff -u -r1.4 AppletViewer.java
--- AppletViewer.java	1998/11/16 00:57:44	1.4
+++ AppletViewer.java	1998/11/17 10:40:58
@@ -11,6 +11,7 @@
 import java.awt.Image;
 import java.awt.Insets;
 import java.awt.Label;
+import java.awt.Font;
 import java.awt.Menu;
 import java.awt.MenuBar;
 import java.awt.Panel;


More information about the kaffe mailing list