problems encountered with sablevm-1.1.7

Asutosh Gopinath <[email protected]>
Newsgroups gmane.comp.java.vm.sablevm.general
Message-ID <[email protected]>
Hi,
1. 
SimpleWrite used to work fine with 1.1.6 but in new release there appears to be 
a deadlock

/usr/local/bin/sablevm  SimpleWrite


Devel Library
=========================================
Native lib Version = RXTX-2.1-7pre17
Java lib Version   = RXTX-2.1-7pre17

.... hangs

--- stack trace dump (begin) ---
Thread ID: 1, Posix ID: 16384
(String.java:-1)  java/lang/String.replace
(StackTraceElement.java:113)  java/lang/StackTraceElement.<init>
(internal frame)
(Throwable.java:-1)  java/lang/Throwable.nativeGetStackTraceList  n
(Throwable.java:515)  java/lang/Throwable.fillInStackTrace
(Throwable.java:163)  java/lang/Throwable.<init>
(Exception.java:78)  java/lang/Exception.<init>
(RuntimeException.java:76)  java/lang/RuntimeException.<init>
(NullPointerException.java:80)  java/lang/NullPointerException.<init>
(internal frame)
(RXTXCommDriver.java:-1)  gnu/io/RXTXCommDriver.testRead  n
(RXTXCommDriver.java:246)  gnu/io/RXTXCommDriver.registerValidPorts
(RXTXCommDriver.java:747)  gnu/io/RXTXCommDriver.registerScannedPorts
(RXTXCommDriver.java:303)  gnu/io/RXTXCommDriver.initialize
(CommPortIdentifier.java:68)  gnu/io/CommPortIdentifier.<clinit>
(internal frame)
(VMClass.java:-1)  java/lang/VMClass.step8  n
(Class.java:145)  java/lang/Class.initialize
(internal frame)
(SimpleWrite.java:67)  SimpleWrite.main
(internal frame)
(VirtualMachine.java:-1)  java/lang/VirtualMachine.invokeMain  n
(VirtualMachine.java:92)  java/lang/VirtualMachine.main
(internal frame)
--- stack trace dump (end) ---


2. i had compiled using real life brokeness. I want to paint Helloworld, works 
fine with 1.1.6 but gives following error with 1.1.7:

import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.PrintStream;

public class FirstAWT extends Frame
{
    private class WindowDestroyer extends WindowAdapter
    {

        public void windowClosing(WindowEvent windowevent)
        {
            System.exit(0);
        }

        private WindowDestroyer()
        {
        }

    }


    public static void main(String args[])
    {
        FirstAWT firstawt = new FirstAWT();
        firstawt.setVisible(true);
    }

    public FirstAWT()
    {
        setSize(400, 200);
        setBackground(Color.red);
        setTitle("My first AWT application");
        WindowDestroyer windowdestroyer = new WindowDestroyer();
        addWindowListener(windowdestroyer);
    }

    public void paint(Graphics g)
    {
        g.setColor(Color.black);
        g.drawString("Hello world!", 150, 50);
        System.out.println("paint called");
    }
}



--- stack trace dump (begin) ---
Thread ID: 3, Posix ID: 32771
(GtkComponentPeer.java:-1)  gnu/java/awt/peer/gtk/GtkComponentPeer.gtkWidgetSetC
ursor  n
(GtkComponentPeer.java:461)  gnu/java/awt/peer/gtk/GtkComponentPeer.setCursor

(GtkComponentPeer.java:456)  gnu/java/awt/peer/gtk/GtkComponentPeer.setCursor

(internal frame)
(GtkMainThread.java:-1)  gnu/java/awt/peer/gtk/GtkMainThread.gtkMain  n
(GtkMainThread.java:106)  gnu/java/awt/peer/gtk/GtkMainThread.run
(Thread.java:704)  java/lang/Thread.run
(VMThread.java:120)  java/lang/VMThread.callRun
(Thread.java:390)  java/lang/Thread.callRun
(VirtualMachine.java:121)  java/lang/VirtualMachine.runThread
(internal frame)
--- stack trace dump (end) ---
[jni: fatal error (Local reference capacity exceeded.
** This is a bug in your application or in the GNU Classpath Library.
** A virtual machine is only required to provide 16 native local
** references per JNI function call.  To get more, an application must call
** EnsureLocalCapacity().
** Temporarily, you might want to compile SableVM with the configure option:
** --enable-real-life-brokenness
** See: http://java.sun.com/docs/books/jni/html/pitfalls.html#11229
)]
Aborted

----------------
SableVM version 1.1.7
- compile date and time: 2004-12-11 15:17:59 UTC
- gcc version: 3.3.1
- 'real life brokenness' features enabled
- signal based exception detection
- copying garbage collection
- bidirectional object layout
- direct-threaded interpreter


what could be the reasons?

3. RXTXcomm.jar is not recognised when placed in /usr/local/share/sablevm-
classpath. I have to un-jar it to make it work. I thought it was possible to 
use a jar file in 1.1.7!


regards
Asutosh
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.