[kaffe] load image problem

2005-10-21 Thread Gianluca Moro
hi all,

I'm compiling kaffe 1.1.6 running with AWT on Tiny-X from
XFree86 4.5.0.

It work quite fine, but I cannot load and show images
(I tested gif and png): kaffe gives no warning or error
messages, even if the image file is not present: seems
that the loading function just say OK but do nothing.

thanks
giammy
 

--
Gianluca Moro  http://groups.yahoo.com/group/embeddeditalia/
ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED
[EMAIL PROTECTED]   Visit http://ilpinguino.altervista.org/






___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it

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


Re: [kaffe] Problem with Strings/Xml Parsing while trying to run an embedded Jetty

2005-10-21 Thread Rafael Teixeira
Thanks for the detailed explanation, Ito

:)

On 10/20/05, Ito Kazumitsu <[EMAIL PROTECTED]> wrote:
> Hi,
>
> From: Rafael Teixeira <[EMAIL PROTECTED]>
> Date: Wed, 19 Oct 2005 21:22:13 -0200
>
> > I think you've found the right spot on my second problem. Thank you
> > for your time: I will set org.mortbay.xml.XmlParser.NotValidating to
> > true, as the web application is fixed and embedded in the same big jar
> > as jetty and all the other components.
>
> That will be nice.
>
> I said,
>
> > > I am afraid gnu.xml package is not mature enough as a validating
> > > XML parser.  Much work will be needed to make it stable.
>
> > > Switching the SAX parser to xerces solves the problem. So I think
> > > the problem exists in gnu.xml package.
>
> But a further study indicates that the XML validation of gnu.xml
> is not necessarily wrong.  The problem is that Jetty 5.1 has
> gone beyond the point gnu.xml can reach.
>
> Let's look at org/mortbay/jetty/servlet/webdefault.xml.
>
> Jetty 4.2 had this:
>
> | 
> |  2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> |
> | 
> | 
> | ...
> | 
>
> It was a valid document according to the DTD web-app_2_3.dtd.
>
> But now Jetty 5.1 has this.
>
> | 
> |
> | 
> | 
> | ...
> |  |xmlns="http://java.sun.com/xml/ns/j2ee";
> |xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> |xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
> |version="2.4">
>
> The DTD has gone.  So a normal validating XML parser cannot help but
> treat this as an invalid document. The error of "Element type 'web-app'
> was not declared" occurred not on your web.xml file but on Jetty's
> webdefault.xml file.
>
> Jetty has chsen to use XML Schema instead of DTD, but gnu.xml's
> XML Schema support is still being worked on.
>


--
Rafael "Monoman" Teixeira
---
I'm trying to become a "Rosh Gadol" before my own eyes.
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!

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


[kaffe] Re: kaffe and load image

2005-10-21 Thread Gianluca Moro
> hi all,
>
> I'm compiling kaffe 1.1.6 running with AWT on Tiny-X from
> XFree86 4.5.0.
> 
> It work quite fine, but I cannot load and show images
> (I tested gif and png): kaffe gives no warning or error
> messages, even if the image file is not present: seems
> that the loading function just say OK but do nothing.
> 
> thanks
> giammy
 
The problem was in the configuration of kaffe: I did not
defined HAVE_LIBPNG, so the drawing function just did nothing!

Now I have 2 more problems:

when starting kaffe, it do not find the symbols in libpng:
I setted LD_LIBRARY_PATH, but with no success, while the
following is successful:

LD_PRELOAD=/usr/X11R6/lib/libX11.so:/usr/lib/libpng.so:/usr/lib/libz.so

is there a clean way to make kaffe find what it needs?

the second problem is that images are shown very slowly: 
a window repaint (with a png of just a few k) needs several
second to repaint: this slow down is present only if I 
have some image in the frame.

any idea what could cause this?

thanks
giammy



--
Gianluca Moro  http://groups.yahoo.com/group/embeddeditalia/
ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED
[EMAIL PROTECTED]   Visit http://ilpinguino.altervista.org/






___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it

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


[kaffe] CVS kaffe (kaz): libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c

2005-10-21 Thread Kaffe CVS
PatchSet 6954 
Date: 2005/10/21 16:03:18
Author: kaz
Branch: HEAD
Tag: (none) 
Log:
2005-10-22  Ito Kazumitsu  <[EMAIL PROTECTED]>

* libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c
(Java_gnu_java_nio_charset_iconv_IconvDecoder_decode):
Do not check errno == EINVAL because it is a normal case
(Proposed patch for GCC Bugzilla Bug 24467).

Members: 
ChangeLog:1.4477->1.4478 
libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c:1.6->1.7 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4477 kaffe/ChangeLog:1.4478
--- kaffe/ChangeLog:1.4477  Thu Oct 20 16:55:05 2005
+++ kaffe/ChangeLog Fri Oct 21 16:03:18 2005
@@ -1,3 +1,10 @@
+2005-10-22  Ito Kazumitsu  <[EMAIL PROTECTED]>
+
+   * libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c
+   (Java_gnu_java_nio_charset_iconv_IconvDecoder_decode):
+   Do not check errno == EINVAL because it is a normal case
+   (Proposed patch for GCC Bugzilla Bug 24467).
+
 2005-10-20  Guilhem Lavaux  <[EMAIL PROTECTED]>
 
* test/jni/Makefile.am: Fixed rt.jar path (glibj.zip now).
Index: kaffe/libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c
diff -u kaffe/libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c:1.6 
kaffe/libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c:1.7
--- kaffe/libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c:1.6  
Mon Aug  8 02:52:15 2005
+++ kaffe/libraries/clib/nio/gnu_java_nio_charset_iconv_IconvDecoder.c  Fri Oct 
21 16:03:22 2005
@@ -140,7 +140,7 @@
 
   if (retval == (size_t) (-1))
 {
-  if (errno == EILSEQ || errno == EINVAL)
+  if (errno == EILSEQ)
retval = 1;
   else
retval = 0;

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


Re: [kaffe] CVS kaffe (kaz): libraries/javalib/external/classpath/gnu/java/nio/charset/UTF_16Decoder.java,

2005-10-21 Thread Ito Kazumitsu
Hi,

> I think that when you are not a developper it's better to submit them to 
> the web site. In your case I don't remember whether you have the access 
> rights to the CVS. If it's so then you can send your patches to 
> classpath-patches and after a review check it in into the CVS. If not 
> I'll do it.

I do not have the access rights to CVS. Would you please do it?

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


Re: [kaffe] classpath _merged_

2005-10-21 Thread Ito Kazumitsu
Hi,

From: Guilhem Lavaux <[EMAIL PROTECTED]>
Date: Wed, 19 Oct 2005 22:55:35 +0200

> The classpath tree has been merged. I know that it builds, runs 
> regression tests & install peacefully here but I haven't yet tested 
> "make dist". If there are problems they will be fixed progressively.

Thrillingly enough, on my FreeBSD 5.5-RELEASE,


7 of 148 tests failed
Please report to kaffe@kaffe.org


FAIL: TestSerializable2.java
FAIL: SerialPersistentFields.java
FAIL: TestSerialPersistent.java
FAIL: SerialUID.java
FAIL: Alias.java
FAIL: HashTest.java
FAIL: SecureRandomTest.java

I will look into them one by one.

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