From: Jan W. <j.w...@sc...> - 2002-01-25 10:32:09
|
On Thu, Jan 24, 2002 at 05:39:47PM +0100, Jan Wender wrote: > Hi all, >=20 > I've got a problem with a jython applet which shall be loaded via > HTTPS. HTTP without the S works, no problem at all. I now have a small jython file which shows the problem: import sys import java import javax =20 import pawt =20 class Xtest(javax.swing.JApplet): def init(s): s.getContentPane().add(javax.swing.JLabel("Applet")) #bag =3D pawt.GridBag(s.getContentPane()) #bag.addRow(javax.swing.JLabel("Applet")) #bag.add(javax.swing.JTextArea("%s" % (sys.registry,))) made a jar-file of it: jythonc -d -a -j Xtest.jar Xtest.py If the pawt package is imported the error occurs. If the statement is com= mented out, the applet works... Is it perhaps related to the comment in org/python/core/imp.java, line 31= : // Simplistic implementation // Some InputStream's might require multiple read's to get it all... private static byte[] readBytes(InputStream fp) { ? Cheerio, --=20 J.W...@sc... - Fon +4970719457-257 Fax-211 science+computing ag - Hagellocher Weg 71-75 - 72070 T=FCbingen Der Stecker war locker und das Token ist herausgefallen. Es muss irgendwo auf dem Boden liegen. Wenn Sie es gefunden haben, melden Sie sich bitte w= ieder. (Di= lbert) |