[Kaffe] How can I test the Sun demos ?

2005-03-28 Thread Archaiesteron
Hi,
I already posted about my other trouble with my own program.
But I have to mention that I can't launch any Sun's demo either.
For instance :
$ kaffe -jar SwingSet2.jar
java.lang.Error: not implemented
  at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment 
(GraphicsEnvironment.java:73)
  at SwingSet2.main (SwingSet2.java:237)
  at java.lang.reflect.Method.invoke0 (Method.java)
  at java.lang.reflect.Method.invoke (Method.java:255)
  at kaffe.jar.ExecJarName.main (ExecJarName.java:67)
  at kaffe.jar.ExecJar.main (ExecJar.java:75)

I still mention that my CLASSPATH variable is set to the jars from Sun 
(and especially rt.jar).

Another try with my exact previous problem :
$ kaffe -jar Stylepad.jar
java.lang.SecurityException: Prohibited package: 
java/awt/KeyboardFocusManager
  at javax.swing.JFrame.init (JFrame.java:155)
  at Stylepad.main (Stylepad.java:80)
  at java.lang.reflect.Method.invoke0 (Method.java)
  at java.lang.reflect.Method.invoke (Method.java:255)
  at kaffe.jar.ExecJarName.main (ExecJarName.java:67)
  at kaffe.jar.ExecJar.main (ExecJar.java:75)

I think it only has to do with some settings, but which one ?
Regards,
___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] CVS kaffe (guilhem): Importatnt fix for strings (lock object)

2005-03-28 Thread Kaffe CVS
PatchSet 5618 
Date: 2005/03/28 16:08:36
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Importatnt fix for strings (lock object)

* kaffe/kaffevm/string.c
(stringWalk): Mark the object lock also.

Reported by: gian paolo ciceri [EMAIL PROTECTED]

Members: 
ChangeLog:1.3790-1.3791 
kaffe/kaffevm/string.c:1.40-1.41 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3790 kaffe/ChangeLog:1.3791
--- kaffe/ChangeLog:1.3790  Sun Mar 27 16:05:39 2005
+++ kaffe/ChangeLog Mon Mar 28 16:08:36 2005
@@ -1,3 +1,10 @@
+2005-03-28  Guilhem Lavaux  [EMAIL PROTECTED]
+
+   * kaffe/kaffevm/string.c
+   (stringWalk): Mark the object lock also.
+
+   Reported by: gian paolo ciceri [EMAIL PROTECTED]
+   
 2005-03-27  Guilhem Lavaux  [EMAIL PROTECTED]
 
* kaffe/kaffevm/kaffe.def
Index: kaffe/kaffe/kaffevm/string.c
diff -u kaffe/kaffe/kaffevm/string.c:1.40 kaffe/kaffe/kaffevm/string.c:1.41
--- kaffe/kaffe/kaffevm/string.c:1.40   Fri Mar 11 16:41:53 2005
+++ kaffe/kaffe/kaffevm/string.cMon Mar 28 16:08:37 2005
@@ -490,8 +490,15 @@
 void
 stringWalk(Collector* collector, void *gc_info, void* str, uint32 size UNUSED)
 {
+   Hjava_lang_String *objstr = (Hjava_lang_Object *)str;
+   iLock *lk;
+
 /* That's all we have to do here */
-KGC_markObject(collector, gc_info, 
unhand((Hjava_lang_String*)str)-value);
+   KGC_markObject(collector, gc_info, unhand(objstr)-value);
+
+lk = GET_HEAVYLOCK(unhand(objstr)-base.lock);
+   if (lk != NULL  KGC_getObjectIndex(collector, lk) == KGC_ALLOC_LOCK)
+ KGC_markObject(collector, gc_info, lk);
 }
 
 /*   

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [Kaffe] How can I test the Sun demos ?

2005-03-28 Thread Michael Koch
On Mon, Mar 28, 2005 at 10:37:21AM +0200, Archaiesteron wrote:

 I still mention that my CLASSPATH variable is set to the jars from Sun (and 
 especially rt.jar).

That is surely wrong. SUNs rt.jar can't work with kaffe.


Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] make check fails on alpha arch

2005-03-28 Thread mel kravitz
Hi,
In kaffe-1.1.4, built succesfully on alpha (debian-unstable) ./configure 
--with-jikes,
'make check' fails with:
soft_fixup_trampoline(): return 0x1201b3108
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/ArrayIndexOutOfBoundsException
/bin/sh: line 1: 15962 Aborted env 
TEST_CLASSES=ConstMethods.cl ass ConstMathMethods.class 
ParameterizedMethods.class ParameterizedMathMethods.c lass 
ParameterizedLogicalMethods.class ParameterizedBitwiseMethods.class 
Control FlowMethods.class StaticMethodCall.class TypeConversion.class 
StaticFields.class  PrimitiveArrays.class ObjectFields.class 
MethodOptimizations.class `BOOTCLASSP ATH=.; export BOOTCLASSPATH; . 
../../BUILD_ENVIRONMENT; sed 's/.*export \(.*\) /echo \1=$\1/'  
../../BUILD_ENVIRONMENT | sh` ${dir}$tst
FAIL: jitBasic

1 of 1 tests failed
Please report to kaffe@kaffe.org

make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/home/mel/kaffe-1.1.4/test/internal'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/mel/kaffe-1.1.4/test/internal'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/mel/kaffe-1.1.4/test'
make: *** [check-recursive] Error 1

my .bash_profile contains:
CLASSPATH=/usr/local/kaffe/lib/kjc.jar
export CLASSPATH
-How to fix?
-Mel
___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] gnu.java.nio.VMSelector implementation

2005-03-28 Thread Rei Odaira
Hi,

I'm trying to run Tomcat 5 with clustering support on Kaffe/jthread.

The current implementation of gnu.java.nio.VMSelector#select()
seems to directly invoke a system call select(), instead of KSELECT().
Since the system call is not aware of jthread, Kaffe can stop
indefinitely when java.nio.channels.Selector#select() is called
with timeout == 0 (blocking mode).

Below is a simple testcase.

I think the previous implementation, which uses KSELECT(), would be better,
although it has several serious bugs.
Any thoughts?


Rei


##
import java.net.*;
import java.nio.channels.*;

class TestSelector {

TestSelector() {
(new Runner()).start();
}   

void doSelect() {
try {
ServerSocketChannel serverChannel = ServerSocketChannel.open();
ServerSocket serverSocket = serverChannel.socket();
Selector selector = Selector.open();
serverSocket.bind (new InetSocketAddress 
(InetAddress.getLocalHost(), 10001));
serverChannel.register (selector, SelectionKey.OP_ACCEPT);
selector.select(0);
} catch (Exception ex) {
}
}

public static void main(String[] args) {
(new TestSelector()).doSelect();
}

class Runner extends Thread {
public void run() {
int i = 0;
while (true) {
if (i % 10 == 0) {
System.out.println(i);
}
i++;
}
}
}
}
##
 java TestSelector
0
10
20
30
40
50
60
70
80
90
... (continues indefinitely)

 kaffe TestSelector
0
10
(stops here)

##

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] make check fails on alpha arch

2005-03-28 Thread Michael Koch
On Mon, Mar 28, 2005 at 12:46:22PM -0500, mel kravitz wrote:
 Hi,
 In kaffe-1.1.4, built succesfully on alpha (debian-unstable) ./configure 
 --with-jikes,
 'make check' fails with:
 soft_fixup_trampoline(): return 0x1201b3108
 Internal error: caught an unexpected exception.
 Please check your CLASSPATH and your installation.
 java/lang/ArrayIndexOutOfBoundsException
 /bin/sh: line 1: 15962 Aborted env 
 TEST_CLASSES=ConstMethods.cl ass ConstMathMethods.class 
 ParameterizedMethods.class ParameterizedMathMethods.c lass 
 ParameterizedLogicalMethods.class ParameterizedBitwiseMethods.class Control 
 FlowMethods.class StaticMethodCall.class TypeConversion.class 
 StaticFields.class  
 PrimitiveArrays.class ObjectFields.class MethodOptimizations.class 
 `BOOTCLASSP ATH=.; export BOOTCLASSPATH; . ../../BUILD_ENVIRONMENT; sed 
 's/.*export \(.*\) /echo 
 \1=$\1/'  ../../BUILD_ENVIRONMENT | sh` ${dir}$tst
 FAIL: jitBasic
 
 1 of 1 tests failed
 Please report to kaffe@kaffe.org
 
 make[3]: *** [check-TESTS] Error 1
 make[3]: Leaving directory `/home/mel/kaffe-1.1.4/test/internal'
 make[2]: *** [check-am] Error 2
 make[2]: Leaving directory `/home/mel/kaffe-1.1.4/test/internal'
 make[1]: *** [check-recursive] Error 1
 make[1]: Leaving directory `/home/mel/kaffe-1.1.4/test'
 make: *** [check-recursive] Error 1
 
 my .bash_profile contains:
 CLASSPATH=/usr/local/kaffe/lib/kjc.jar
 export CLASSPATH
 -How to fix?
 -Mel

Can you please retry with current CVS and report here? Current CVS is
much advanced over 1.1.4 release.


Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] retry on alpha with kaffe-cvs 3/25 'make check'

2005-03-28 Thread mel kravitz
Mike Koch wrote:
Can you please retry with current CVS and report here? Current CVS is
much advanced over 1.1.4 release.
3/25 cvs ./configure --with-jikes, debian-unstable kernel-2.6.10 alpha arch:
failes at:
Translated ParameterizedMethods.int_method_int_double_int(IDI)I (static) 
0x1201c 0448
Failure for test_1_2_3___int_method_int_double_int, got: 4000 0.00
 expected: 0003 0.00
FAIL: jitBasic

1 of 1 tests failed
Please report to kaffe@kaffe.org

make[5]: *** [check-TESTS] Error 1
make[5]: Leaving directory `/home/mel/kaffe/test/internal'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/home/mel/kaffe/test/internal'
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory `/home/mel/kaffe/test'
make[2]: *** [check-local] Error 2
make[2]: Leaving directory `/home/mel/kaffe'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/mel/kaffe'
make: *** [check-recursive] Error 1
-hope this helps my application trows '[INFO] Http11Protocol - Starting 
Coyote HTTP/1.1 on http-8080
java.lang.NullPointerException
-Mel


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] CVS kaffe (guilhem): Reverted patch.

2005-03-28 Thread Kaffe CVS
PatchSet 5620 
Date: 2005/03/28 19:34:34
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Reverted patch.

Members: 
test/internal/jitBasic.c:1.8-1.9 

Index: kaffe/test/internal/jitBasic.c
diff -u kaffe/test/internal/jitBasic.c:1.8 kaffe/test/internal/jitBasic.c:1.9
--- kaffe/test/internal/jitBasic.c:1.8  Mon Mar 28 19:32:53 2005
+++ kaffe/test/internal/jitBasic.c  Mon Mar 28 19:34:34 2005
@@ -197,10 +197,10 @@
switch( field-bsize )
{
case sizeof(jbyte):
-   actual.b = ((char *)field-info.addr)[0];
+   actual.i = ((char *)field-info.addr)[0];
break;
case sizeof(jshort):
-   actual.s = ((short *)field-info.addr)[0];
+   actual.i = ((short *)field-info.addr)[0];
break;
case sizeof(jint):
memcpy(actual.i,

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] CVS kaffe (guilhem): Reverted patch.

2005-03-28 Thread Kaffe CVS
PatchSet 5620 
Date: 2005/03/28 19:34:34
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Reverted patch.

Members: 
test/internal/jitBasic.c:1.8-1.9 

Index: kaffe/test/internal/jitBasic.c
diff -u kaffe/test/internal/jitBasic.c:1.8 kaffe/test/internal/jitBasic.c:1.9
--- kaffe/test/internal/jitBasic.c:1.8  Mon Mar 28 19:32:53 2005
+++ kaffe/test/internal/jitBasic.c  Mon Mar 28 19:34:34 2005
@@ -197,10 +197,10 @@
switch( field-bsize )
{
case sizeof(jbyte):
-   actual.b = ((char *)field-info.addr)[0];
+   actual.i = ((char *)field-info.addr)[0];
break;
case sizeof(jshort):
-   actual.s = ((short *)field-info.addr)[0];
+   actual.i = ((short *)field-info.addr)[0];
break;
case sizeof(jint):
memcpy(actual.i,

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: Status update (Was: Re: Getting 1.1.5 out (Was: Re: [kaffe] Mailing list problem and server update))

2005-03-28 Thread Jim Pick
Dalibor Topic wrote:
In that spirit, I plan to have a release candidate tarball ready tonight
for testing, and barring some huge problems, a release tomorrow.
I don't know how helpful this is, but I wrote down the steps I used for 
the last release:

http://www.kaffe.org/cgi-bin/viewcvs.cgi/kaffe-project-services/release-process/HOW-TO-MAKE-A-RELEASE?rev=1.1content-type=text/vnd.viewcvs-markup
Thanks for doing this!  (I know how much work it is.  :-)
Cheers,
 - Jim
___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Fail to run kaffe with -Xkaffe-nanox-awt

2005-03-28 Thread Rafael Savignon
Im having some problams running kaffe on top of nano-x  :(


./configure  --with-kaffe-nanox-awt --with-nanox-include=/usr/include/microwin
--with-nanox-library=/usr/lib --wihtout-classpath-gtk-awt

make  make install  export PATH=$PATH:/usr/local/kaffe/bin

but when i try to run with -Xkaffe-nanox-awt flag without X running

kaffe -Xkaffe-nanox-awt test

Gtk-WARNING **:cannot open display: 



thanks in advance !

best regards.

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] solaris on usparc results

2005-03-28 Thread Riccardo
Hey,

this is mainly for guilhem, who asked for results of his patch:

only 5 tests fail:

GetInterfaces.fail TestUnlock.fail
NetworkInterfaceTest.fail  ThreadState.fail
Preempt.fail

a fairly good result!

_R


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe