[kaffe] bug while getting URLs in current ClassLoader.

2004-01-24 Thread Alok Menghrajani
The following code returns an empty array with Kaffe:

ClassLoader cl = Thread.currentThread().getContextClassLoader();
URL urls[] = ((URLClassLoader) cl).getURLs();

(It returns the actual class path with SUN's JVM).

Could you please keep me updated about this bug, my email is:
[EMAIL PROTECTED]

Thanks,
Alok.

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] kaffe on windows

2004-01-24 Thread Tim Mickelson
   Hi.

 I'm trying to install kaffe on a windows machine. Inside cygwin, but I 
get errors, why? This should be ported according to the website. Does 
anyone have any insight in this matter? I've tried several different 
versions of kaffe and get several different versions of errors.

 Greetings Tim.

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] CVS kaffe (jim): Fix building class library using kjc

2004-01-24 Thread Kaffe CVS
PatchSet 4366 
Date: 2004/01/24 22:03:01
Author: jim
Branch: HEAD
Tag: (none) 
Log:
Fix building class library using kjc

Members: 
ChangeLog:1.1951->1.1952 
libraries/javalib/Klasses.jar.bootstrap:1.44->1.45 
libraries/javalib/Makefile.am:1.165->1.166 
libraries/javalib/Makefile.am.in:1.7->1.8 
libraries/javalib/Makefile.in:1.221->1.222 
libraries/javalib/bootstrap.classlist:1.36->1.37 
libraries/javalib/essential.files:1.35->1.36 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1951 kaffe/ChangeLog:1.1952
--- kaffe/ChangeLog:1.1951  Fri Jan 23 17:34:17 2004
+++ kaffe/ChangeLog Sat Jan 24 22:03:01 2004
@@ -1,3 +1,22 @@
+2004-01-24  Jim Pick  <[EMAIL PROTECTED]>
+
+   * libraries/javalib/essential.files:
+   Add extra classes needed for kjc build.
+
+   * libraries/javalib/bootstrap.classlist:
+   Add classes used during kjc build.
+   
+   * libraries/javalib/Makefile.am.in:
+   Create $(LIBDIR)/gnu/java/locale directory before
+   installing files.
+
+   * libraries/javalib/Makefile.am,
+   libraries/javalib/Makefile.in:
+   Regenerated.
+   
+   * libraries/javalib/Klasses.jar.bootstrap:
+   Rebuilt.
+
 2004-01-23  Dalibor Topic <[EMAIL PROTECTED]>
 
* libraries/javalib/java/security/PermissionCollection.java,
Index: kaffe/libraries/javalib/Klasses.jar.bootstrap
cvs rdiff: failed to read diff file header /tmp/cvs9j3NJu for Klasses.jar.bootstrap,v: 
end of file
system command returned non-zero exit status: 1: aborting

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [Fwd: Re: [kaffe] libtritonusalsa does not get installed]

2004-01-24 Thread Matthias Pfisterer
Hi,

regarding the error below, I tried building kaffe (CVS of today) with 
gcc 3.0.4 and encountered the same error:
---
make[1]: Entering directory `/home/matthias/java/kaffe/libraries/javalib'
rm -rf lib
mkdir lib
/bin/sh ./rebuildLib @essential.files
Compiling classes from  @essential.files  using 
/home/matthias/java/kaffe/kaffe/kaffe/kaffe-bin -verbosegc -mx 256M 
at.dms.kjc.Main
[ start compilation in verbose mode ]
[ parsed gnu/classpath/Configuration.java in 488 ms ]
./rebuildLib: line 58:  2632 Segmentation fault  $JAVAC $VERBOSE 
$JAVAC_FLAGS -d $LIBDIR $CPATH ${1+"$@"}
make[1]: *** [lib/stamp] Error 139
make[1]: Leaving directory `/home/matthias/java/kaffe/libraries/javalib'
make: *** [all-recursive] Error 1
---
Any more ideas I could try?

Matthias

Matthias Pfisterer wrote:
Resending because it didn't get through presumably because the attached 
config.log was too big (300 K). If you need config.log, please tell me 
and I'll send it directly.

Matthias

 Original Message 
Subject: Re: [kaffe] libtritonusalsa does not get installed
Date: Sun, 18 Jan 2004 22:33:52 +0100
From: Matthias Pfisterer <[EMAIL PROTECTED]>
To: Kaffe <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

Dalibor Topic wrote:
 > Hallo Matthias,
 >
 > Matthias Pfisterer wrote:
 >
 >> First the "no target all in po" that was reported recently. I edited
 >> the top-level Makefile to remove po from SUBDIRS as suggested.
 >
 >
 > This should be fixed now [1]. Could you do a fresh check out from CVS
 > and retry?
Yes, I can confirm that it's fixed. Thanks. However, the problem below
remains.
 >> Now I get the following:
 >> --
 >> Making all in libraries/javalib
 >> make[1]: Entering directory 
`/home/matthias/java/kaffe/libraries/javalib'
 >> rm -rf lib
 >> mkdir lib
 >> /bin/sh ./rebuildLib @essential.files
 >> Compiling classes from  @essential.files  using
 >> /home/matthias/java/kaffe/kaffe/kaffe/kaffe-bin -verbosegc -mx 256M
 >> at.dms.kjc.Main
 >> [ start compilation in verbose mode ]
 >> [ parsed gnu/classpath/Configuration.java in 486 ms ]
 >> ./rebuildLib: line 58: 15924 Segmentation fault  $JAVAC $VERBOSE
 >> $JAVAC_FLAGS -d $LIBDIR $CPATH ${1+"$@"}
 >> make[1]: *** [lib/stamp] Error 139
 >> make[1]: Leaving directory 
`/home/matthias/java/kaffe/libraries/javalib'
 >> make: *** [all-recursive] Error 1
 >> --
 >> This is for ./configure without opions. If I say './configure
 >> --without-alsa', the following happens:
 >> --
 >> make[1]: Entering directory 
`/home/matthias/java/kaffe/libraries/javalib'
 >> rm -rf lib
 >> mkdir lib
 >> /bin/sh ./rebuildLib @essential.files
 >> Compiling classes from  @essential.files  using
 >> /home/matthias/java/kaffe/kaffe/kaffe/kaffe-bin -verbosegc -mx 256M
 >> at.dms.kjc.Main
 >> [ start compilation in verbose mode ]
 >> [ parsed gnu/classpath/Configuration.java in 471 ms ]
 >> --
 >> ...and it hangs, hogging the CPU. It is interruptible with ctrl-C.
 >
 >
 > Interesting bugs, definitely. I'd be more interested in the crash, atm.
 > Do the problems still occur with the current version from CVS HEAD? If
 > so, what's your cpu-os platform (or distribution, of you are using
 > linux), and which gcc are you using? Are there any interesting warnings
 > during compilation?

I investigated this further by trying old cvs versions. I can reproduce
the problem with versions of 12th, 13th and 15th (haven't tried in
between). With the version of 10th, the build runs smooth. With the
version of 11th, there is an unrelated error about TAudioInputStream
missing, but it seems to get beyond the point of the error. So
presumably, the problem was introducd between 11th and 12th. In each
case, I did a fresh checkout with
cvs -z3 -d :pserver:[EMAIL PROTECTED]:/cvs/kaffe co -D "2004-01-11"
kaffe
(and the appropriate date, of course). Then I issued './configure' (no
params) and 'make'.
My system is Linux on a x86, distribution is Debian stable. The gcc
version is 2.95.4. Does it make sense to try with a different version of
gcc?
I haven't detected something obviously wrong during the build. I'm
attaching config.log (produced with the CVS of today (18th).
Matthias





--
Matthias Pfisterer  
Reuchlinstrasse 28  phone ++49-711-62 87 12
D-70176 Stuttgart   (in Deutschland 0711-62 87 12)
GERMANY
Work like you don't need the money.
Love like you've never been hurt.
Dance like nobody is watching.
Java Sound Resources (examples, FAQ, applications):
http://www.jsresources.org/
Tritonus, the open source implementation of the Java Sound API:
http://www.tritonus.org/
--
___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] A new challenge! [was: Bug#229337: libsaxon-java: missing classes]

2004-01-24 Thread Arnaud Vandyck
Hi all,

I do use saxon to parse xml files with xsl ones to build websites. I do
use this with an ant task I wrote.

When trying the latest libsaxon-java from Debian, I did get an error
(see the attachment mail) and thought some classes were missing.

After some tests, I did rebuild the Debian package with Blackdown
non-free JDK and the execution of the code was fine.

The original package was build with jikes (and the classpath classes). I
also did try kjc, jikes with Blackdown classes but it only works when
built with Blackdown's javac.

I also did suspect gnujaxp, but it also fails with xerces.

To reproduce the bug, you can (on Debian system)
  $ apt-get source libsaxon-java

Then, in the libsaxon-java directory, you can modify the call of the
compiler in the debian/rules file. You can install 'devscripts' and type
  $ debuild -rfakeroot -uc -us
to get the package compiled.

To test it, you'll have to parse some docbook-website documents. I can
send a tarball in private but it needs to be chanded.

An easy document will not fail to be transform.

Here is the original bug report with the error message when trying to
run the jikes built saxon... (note it's the same result with the kjc
one)

Note that the transformer just runs fine with kaffe!

Cheers

--- Begin Message ---
Package: libsaxon-java
Version: 6.5.4-0.2
Severity: grave

Hi, trying to parse an DocBook-Website set of files with ant and the
result is correct with the older lib-saxon (6.4.4), but with this
package I got:

$ ant

Buildfile: build.xml

layout:
 [echo] Processing the layout...
 [java] Exception in thread "main" java.lang.NoSuchMethodError: 
com.icl.saxon.tree.NodeImpl: method getNodeType()S not found
 [java] at 
com.icl.saxon.style.XSLStyleSheet.spliceIncludes(XSLStyleSheet.java:397)
 [java] at com.icl.saxon.style.XSLStyleSheet.preprocess(XSLStyleSheet.java:346)
 [java] at 
com.icl.saxon.PreparedStyleSheet.setStyleSheetDocument(PreparedStyleSheet.java:176)
 [java] at 
com.icl.saxon.PreparedStyleSheet.prepare(PreparedStyleSheet.java:133)
 [java] at 
com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:127)
 [java] at com.icl.saxon.StyleSheet.doMain(StyleSheet.java:327)
 [java] at com.icl.saxon.StyleSheet.main(StyleSheet.java:63)

BUILD FAILED
file:/home/arnaud/www/website-arnaud/build.xml:47: Java returned: 1

Total time: 5 seconds

-- System Information:
Debian Release: testing/unstable
Architecture: powerpc
Kernel: Linux oz.fapse.ulg.ac.be 2.6.1-rc1-ben1 #1 Tue Jan 6 18:38:38 CET 2004 ppc
Locale: LANG=C, LC_CTYPE=C

Versions of packages libsaxon-java depends on:
ii  gij  4:3.3.2-2   The GNU Java bytecode interpreter
ii  gij-3.3 [java1-runti 1:3.3.3-0pre2   The GNU Java bytecode interpreter
ii  kaffe [java1-runtime 1:1.1.3-0.2 A JVM to run Java bytecode
ii  libgnujaxp-java  0.0.cvs20030915-2   A free implementation of jaxp api
ii  sablevm [java1-runti 1.0.9+svn20040115-1 Free implementation of Java Virtua

-- no debconf information


-- 
Arnaud


pgp0.pgp
Description: PGP signature
--- End Message ---

-- 
Arnaud


pgp1.pgp
Description: PGP signature


Re: [kaffe] Production release planning

2004-01-24 Thread Arnaud Vandyck
Jim Pick <[EMAIL PROTECTED]> writes:

> What do I mean when I say a "real" production release?

As a Debian Developer, I'd like kaffe to be build on all the Debian
arches. Also a working Swing implementation would be great but I think
it's better to leave this work to classpath.

I'd like a good javadoc replacement (I'm sure gjdoc will soon be ready).

My 0.02EUR. ;)

Cheers,

-- 
Arnaud


pgp0.pgp
Description: PGP signature


Re: [kaffe] Next development release planning - 1.1.4

2004-01-24 Thread Arnaud Vandyck
Jim Pick <[EMAIL PROTECTED]> writes:

> How about if we do a feature freeze next weekend, Sunday, February
> 1st, to be followed by an actual release on Sunday, February 8th?

How about this release in the Debian archive the next day?

Cheers ;)

-- 
Arnaud


pgp0.pgp
Description: PGP signature


[kaffe] Problem with eXist again

2004-01-24 Thread Hakon Gunsen
Hi! I tried to run the latest development release of eXist database on Kaffe of jan 19th built with interpreter engine on Fedora Core 1, Athlon processor.
http://sourceforge.net/project/showfiles.php?group_id=17691&package_id=23675&release_id=171595
It was mentioned in the release notes that "Changed usage of String methods to run eXist with kaffe".
But I only get these exceptions when trying to run, then it Kaffe exits. The previous version I was at least able to run, even though it didn't work well. Can anyone tell what this is? Thanks.




Configuring eXist from /home/hakon/eXist-1.0b1/conf.xml
log4j:WARN Caught Exception while in Loader.getResource. This may be innocuous.
java.lang.StringIndexOutOfBoundsException: index = 0, length=0
   at java.lang.String.charAt (String.java:150)
   at kaffe.lang.AppClassLoader.findResource (AppClassLoader.java:270)
   at java.lang.ClassLoader.getResource (ClassLoader.java:224)
   at java.lang.ClassLoader.getResource (ClassLoader.java:216)
   at org.apache.log4j.helpers.Loader.getResource (Loader.java:78)
   at org.apache.log4j.LogManager. (LogManager.java:104)
   at org.apache.log4j.Logger.getLogger (Logger.java:94)
   at org.exist.util.Configuration. (Configuration.java:47)
   at org.exist.JettyStart.main (JettyStart.java:52)
   at java.lang.reflect.Method.invoke0 (Method.java)
   at java.lang.reflect.Method.invoke (Method.java:255)
   at org.exist.start.Main.invokeMain (Main.java:94)
   at org.exist.start.Main.run (Main.java:485)
   at org.exist.start.Main.main (Main.java:44)
   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)
java.lang.reflect.InvocationTargetException
   at java.lang.reflect.Method.invoke0 (Method.java)
   at java.lang.reflect.Method.invoke (Method.java:255)
   at org.exist.start.Main.invokeMain (Main.java:94)
   at org.exist.start.Main.run (Main.java:485)
   at org.exist.start.Main.main (Main.java:44)
   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)
Caused by: java.lang.ExceptionInInitializerError
   at org.exist.JettyStart.main (JettyStart.java:52)
   at java.lang.reflect.Method.invoke0 (Method.java)
   ...8 more
Caused by: java.lang.StringIndexOutOfBoundsException: index = 0, length=0
   at java.lang.String.charAt (String.java:150)
   at kaffe.lang.AppClassLoader.findResource (AppClassLoader.java:270)
   at java.lang.ClassLoader.getResource (ClassLoader.java:224)
   at java.lang.ClassLoader.getSystemResource (ClassLoader.java:264)
   at org.apache.log4j.helpers.Loader.getResource (Loader.java:106)
   at org.apache.log4j.LogManager. (LogManager.java:104)
   at org.apache.log4j.Logger.getLogger (Logger.java:94)
   at org.exist.util.Configuration. (Configuration.java:47)
   at org.exist.JettyStart.main (JettyStart.java:52)
   ...9 more




Re: [kaffe] [Fwd: Debian/Free Java room at Fosdem (February 21/22, Brussel)]

2004-01-24 Thread Daniel Veillard
On Fri, Jan 23, 2004 at 02:19:48PM -0800, Jim Pick wrote:
> On Sat, 03 Jan 2004 07:24:30 +0100
> Dalibor Topic <[EMAIL PROTECTED]> wrote:
> 
> > Hi all,
> > 
> > I think I forgot to forward this e-mail to the kaffe mailing list. We'll 
> > have a room for a developer meeting at FOSDEM[1] (shared with Debian 
> > guys), and a ton of cool people from various free java runtime projects 
> > are going to attend.
> > 
> > I intend to do a little presentation on getting the different java 
> > packaging efforts in different distributions to cooperate on some 
> > issues, as that would be probably of interest to the debian people as well.
> > 
> > hope to see some of you there in february, in bruxelles!
> 
> Excellent.  I'm in the mood for a vacation -- so I booked and plane
> ticket.  I'm looking forward to some beers and some keysigning. :-)

  I expect to be there too !

Daniel

-- 
Daniel Veillard  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
[EMAIL PROTECTED]  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | 

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] PATCH: CodeSource

2004-01-24 Thread Casey Marshall
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi.

The attached patch fixes a number of problems with
java.security.CodeSource when either the location or certificates
field is null. Some basic tests with my PolicyFile reader work with
this patch.

2004-01-23  Casey Marshall <[EMAIL PROTECTED]>

* libraries/javalib/java/security/CodeSource.java
(location): marked final.
(certificates): marked final.
(): clone the certificate array.
(getCertificates): clone the certificate array.
(equals): handle null components.
(hashCode): handle null components.
(toString): handle null components.
(implies): don't check SocketPermission if the host field of
`location' is empty.

Cheers.

- -- 
Casey Marshall || [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 

iD8DBQFAEiTRgAuWMgRGsWsRAoLLAJ9xx4QB96ks8IpVC1aoUy5jNZdPmgCdGJM6
jbkBC9xxcAkMz8i/oZpCcXM=
=q0QS
-END PGP SIGNATURE-
Index: libraries/javalib/java/security/CodeSource.java
===
RCS file: /cvs/kaffe/kaffe/libraries/javalib/java/security/CodeSource.java,v
retrieving revision 1.4
diff -u -r1.4 CodeSource.java
--- libraries/javalib/java/security/CodeSource.java	18 May 2003 16:44:56 -	1.4
+++ libraries/javalib/java/security/CodeSource.java	24 Jan 2004 07:50:52 -
@@ -5,7 +5,7 @@
  * Copyright (c) 1999
  *	Archie L. Cobbs.  All rights reserved.
  * Copyright (c) 1999
- *	Transvirtual Technologies, Inc.  All rights reserved.
+ *	Transvirtual Technologies, Inc.	 All rights reserved.
  *
  * See the file "license.terms" for information on usage and redistribution
  * of this file.
@@ -24,12 +24,16 @@
 
 public class CodeSource implements Serializable {
 
-private URL location;
-private java.security.cert.Certificate [] certificates;
+private final URL location;
+private final java.security.cert.Certificate [] certificates;
 
-public CodeSource(URL location, java.security.cert.Certificate[] certificates) {
+public CodeSource(final URL location, final java.security.cert.Certificate[] certificates) {
 	this.location = location;
-	this.certificates = certificates;
+	if (certificates != null) {
+	this.certificates = (java.security.cert.Certificate[]) certificates.clone();
+	} else {
+	this.certificates = null;
+	}
 }
 
 public boolean equals(Object obj) {
@@ -42,12 +46,30 @@
 
 	CodeSource that = (CodeSource) obj;
 
-	return getLocation().equals(that.getLocation())
-	&& getCertSet().equals(that.getCertSet());
+	if (location == null) {
+	if (that.location != null) {
+		return false;
+	}
+	} else if (!location.equals(that.location)) {
+	return false;
+	}
+	if (certificates == null) {
+	if (that.certificates != null) {
+		return false;
+	}
+	} else {
+	if (!getCertSet().equals(that.getCertSet())) {
+		return false;
+	}
+	}
+	return true;
 }
 
 public final java.security.cert.Certificate[] getCertificates() {
-	return certificates;
+	if (certificates == null) {
+	return null;
+	}
+	return (java.security.cert.Certificate[]) certificates.clone();
 }
 
 private Set getCertSet() {
@@ -59,8 +81,16 @@
 }
 
 public int hashCode() {
-	return getLocation().hashCode()
-	^ getCertSet().hashCode();
+	int sum = 0;
+	if (location != null) {
+	sum += location.hashCode();
+	}
+	if (certificates != null) {
+	for (int i = 0; i < certificates.length; i++) {
+		sum += certificates[i].hashCode();
+	}
+	}
+	return sum;
 }
 
 public boolean implies(CodeSource other) {
@@ -99,7 +129,7 @@
 	}
 
 	/* Check 3.4 */
-	if  (getLocation().getHost() != null) {
+	if	(getLocation().getHost() != null && ! getLocation().getHost().equals("")) {
 		if (! new SocketPermission(getLocation().getHost(), "")
 		.implies(new SocketPermission(other.getLocation().getHost(), ""))) {
 		return false;
@@ -151,7 +181,7 @@
 public String toString() {
 	return getClass().getName()
 	+ "[location=" + getLocation()
-	+ ",certificates=" + getCertSet()
+	+ ",certificates=" + (certificates != null ? getCertSet().toString() : "none")
 	+ ']';
 }
 }