You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
(8) |
Dec
(51) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(105) |
Feb
(93) |
Mar
(194) |
Apr
(145) |
May
(100) |
Jun
(111) |
Jul
(117) |
Aug
(126) |
Sep
(233) |
Oct
(138) |
Nov
(164) |
Dec
(109) |
2002 |
Jan
(216) |
Feb
(175) |
Mar
(216) |
Apr
(194) |
May
(157) |
Jun
(140) |
Jul
(158) |
Aug
(73) |
Sep
(105) |
Oct
(164) |
Nov
(104) |
Dec
(95) |
2003 |
Jan
(72) |
Feb
(69) |
Mar
(81) |
Apr
(151) |
May
(101) |
Jun
(139) |
Jul
(99) |
Aug
(118) |
Sep
(115) |
Oct
(151) |
Nov
(161) |
Dec
(102) |
2004 |
Jan
(120) |
Feb
(175) |
Mar
(106) |
Apr
(111) |
May
(54) |
Jun
(78) |
Jul
(76) |
Aug
(105) |
Sep
(94) |
Oct
(143) |
Nov
(75) |
Dec
(85) |
2005 |
Jan
(99) |
Feb
(77) |
Mar
(164) |
Apr
(97) |
May
(79) |
Jun
(57) |
Jul
(65) |
Aug
(102) |
Sep
(95) |
Oct
(129) |
Nov
(123) |
Dec
(52) |
2006 |
Jan
(48) |
Feb
(99) |
Mar
(90) |
Apr
(51) |
May
(81) |
Jun
(136) |
Jul
(56) |
Aug
(109) |
Sep
(50) |
Oct
(44) |
Nov
(74) |
Dec
(75) |
2007 |
Jan
(92) |
Feb
(137) |
Mar
(93) |
Apr
(79) |
May
(52) |
Jun
(74) |
Jul
(143) |
Aug
(175) |
Sep
(154) |
Oct
(137) |
Nov
(88) |
Dec
(90) |
2008 |
Jan
(58) |
Feb
(113) |
Mar
(167) |
Apr
(88) |
May
(105) |
Jun
(37) |
Jul
(87) |
Aug
(72) |
Sep
(56) |
Oct
(41) |
Nov
(102) |
Dec
(70) |
2009 |
Jan
(115) |
Feb
(113) |
Mar
(126) |
Apr
(58) |
May
(125) |
Jun
(45) |
Jul
(90) |
Aug
(125) |
Sep
(84) |
Oct
(61) |
Nov
(111) |
Dec
(61) |
2010 |
Jan
(85) |
Feb
(86) |
Mar
(130) |
Apr
(58) |
May
(57) |
Jun
(32) |
Jul
(25) |
Aug
(50) |
Sep
(41) |
Oct
(65) |
Nov
(63) |
Dec
(24) |
2011 |
Jan
(43) |
Feb
(31) |
Mar
(28) |
Apr
(68) |
May
(53) |
Jun
(42) |
Jul
(58) |
Aug
(26) |
Sep
(51) |
Oct
(76) |
Nov
(60) |
Dec
(9) |
2012 |
Jan
(16) |
Feb
(32) |
Mar
(32) |
Apr
(39) |
May
(16) |
Jun
(19) |
Jul
(3) |
Aug
(11) |
Sep
(35) |
Oct
(47) |
Nov
(28) |
Dec
(18) |
2013 |
Jan
(18) |
Feb
(36) |
Mar
(10) |
Apr
(7) |
May
(7) |
Jun
(27) |
Jul
(17) |
Aug
(35) |
Sep
(19) |
Oct
(31) |
Nov
(8) |
Dec
(22) |
2014 |
Jan
(5) |
Feb
(11) |
Mar
(18) |
Apr
(23) |
May
(26) |
Jun
(14) |
Jul
(18) |
Aug
(26) |
Sep
(20) |
Oct
(48) |
Nov
(13) |
Dec
(9) |
2015 |
Jan
(9) |
Feb
(15) |
Mar
(25) |
Apr
(10) |
May
(26) |
Jun
(6) |
Jul
(13) |
Aug
(5) |
Sep
(14) |
Oct
(36) |
Nov
(24) |
Dec
(18) |
2016 |
Jan
(24) |
Feb
(11) |
Mar
(1) |
Apr
(6) |
May
(7) |
Jun
(3) |
Jul
(9) |
Aug
(15) |
Sep
(22) |
Oct
(5) |
Nov
(5) |
Dec
(2) |
2017 |
Jan
(20) |
Feb
(4) |
Mar
(4) |
Apr
(1) |
May
(5) |
Jun
(7) |
Jul
(14) |
Aug
(9) |
Sep
(18) |
Oct
(2) |
Nov
(3) |
Dec
(3) |
2018 |
Jan
(7) |
Feb
(6) |
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
(18) |
Sep
(8) |
Oct
(9) |
Nov
(4) |
Dec
(6) |
2019 |
Jan
(5) |
Feb
|
Mar
(2) |
Apr
(4) |
May
(6) |
Jun
(8) |
Jul
(11) |
Aug
(10) |
Sep
(6) |
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
(8) |
Feb
(3) |
Mar
(1) |
Apr
(4) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
(5) |
Nov
(2) |
Dec
(1) |
2021 |
Jan
|
Feb
|
Mar
(5) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(7) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(5) |
Jul
(15) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
(5) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Mike B. <axi...@ya...> - 2001-06-06 17:25:17
|
For the past few months, I have been using Python and some JPython/Jython to do processing of large flat files with a bit of database access. So far things have worked out great. I am now trying to add a Java based rules engine into the mix. I am also new to coding Java outside of an IDE, controlling packages and such in an NT environment. Since the rules engine wants to control processing, I am trying to make Jython classes, compiled as Java, available to handle i/o and instance creation. I would really like to be able to use Jython and Java classes interchangeably, depending on where I am in development/prototyping. My assumptions/observations at this time, which may or may not be correct are: Java code, which will be accessed from Jython MUST be compiled as part of a package. Jython code, compiled with jythonc into Java is accessible from Java but not from another Jython script. While an instance of a class can be created, the methods are not accessible. AttributeError: abstract method getHello not implemented Any corrections or rules-of-thumb would be appreciated. Also if there is any reference material available that describes a simple technique for creating and using Java packages by hand, that would help. It seems more tedious than it needs to be. Thanks, Mike |
From: D-Man <ds...@ri...> - 2001-06-06 17:08:41
|
On Wed, Jun 06, 2001 at 05:54:33PM +0100, Kieran Breen wrote: | Thanks Tessa. | | I perhaps gave a bad example of the problem I was having. | | What about this: | | >> from javax.swing import * | >> def foo(e): | >> print "foo" | >>> f = JFrame(windowListener=foo) | Traceback (innermost last): | File "<console>", line 1, in ? | TypeError: can't convert <function foo at 6767586> to | java.awt.event.WindowListener import java import javax class foo( java.awt.event.WindowListener ) : def whatever_the_method_name_is( self , event ) : print "foo" f = javax.swing.JFrame( windowListener=foo() ) Isn't Java fun <wink>? The problem is that on the Java side there must be an instance that contains a bound method with a given name for the callback mechanism to work. Even before getting there, the type of the arguments are checked so the instance must implement the "WindowListener" interface. This is one of the reasons that, IMNSHO, Python far exceeds Java in quality and usability. The "downside" of Python is that you can't instantiate an anonymous inner class -- in fact the class can't even be anonymous. On the upside you don't need to have a class instance in the first place! Simply pass a function to the widget and it can simply call the function. No mess with interfaces, adapters, and single-inheritance. -D |
From: Kieran B. <ki...@br...> - 2001-06-06 16:55:08
|
Thanks Tessa. I perhaps gave a bad example of the problem I was having. What about this: >> from javax.swing import * >> def foo(e): >> print "foo" >>> f = JFrame(windowListener=foo) Traceback (innermost last): File "<console>", line 1, in ? TypeError: can't convert <function foo at 6767586> to java.awt.event.WindowListener Tessa Lau wrote: >See the documentation on Java Bean properties in the Jython docs: > http://www.jython.org/docs/properties.html > >The Pythonesque way to do it is by putting your event handling code >into a method, and setting the event property on the widget itself: > > def handleChange(event): > # whatever > > tf = TextField(textValueChanged=handleChange) > >--Tessa > > |
From: D-Man <ds...@ri...> - 2001-06-06 16:37:06
|
On Wed, Jun 06, 2001 at 12:54:42PM +0930, Craig Turner wrote: | > Jython is really just a Java program and runs in a JVM, so it faces | > the same restrictions/requirements that other Java programs face. | | I'd thought maybe it did something special, because I had read that | multiple inheritance had been possible in an earlier release of jpython. Multiple inheritance is possible : /Python/ classes can inherit from multiple classes /Java/ classes still _can't_ because, well, they are Java. Jython is "just" a Java program, but it is a program that allows the creation of programs in a different language with a different set of rules. As far as what sort of operations are allowed, only the stuff the JVM allows is allowed. Just as with C you are not allowed to derefence a null pointer or divide by 0, neither does CPython allow you to do that. The capability of any given program is limited to the capabilities of the underlying system, whether it is a software system (JVM, OS, etc) or a hardware system (the CPU/FPU can't divide by 0 anyways). -D |
From: Tessa L. <tl...@cs...> - 2001-06-06 16:36:31
|
See the documentation on Java Bean properties in the Jython docs: http://www.jython.org/docs/properties.html The Pythonesque way to do it is by putting your event handling code into a method, and setting the event property on the widget itself: def handleChange(event): # whatever tf = TextField(textValueChanged=handleChange) --Tessa |
From: Kieran B. <ki...@br...> - 2001-06-06 16:26:59
|
In Java you have annonymous inner classes, such as: tf = new TextField (); tf.addTextListener ( new TextListener () { // This interface has only one method. public void textValueChanged (TextEvent t) { // do whatever } } ); What would be the best/simplest way to code this in jython? |
From: Samuele P. <pe...@in...> - 2001-06-06 15:06:17
|
Hi. [Waclawczyk Janusch] > Hello, > > I try to ask again (hopefully more precisely): > > INTRODUCTION. > I'm often using jython to test my java software (my jython scripts call java methods, I' using a mix of Junit- and PyUnit-Framework). > Some weeks ago Samuele Pedroni wrote me, that there is even automatic type coercion from jython 2-dimensional lists to java 2-dimensional arrays when calling a java method from jython(see http://aspn.activestate.com/ASPN/Mail/msg/Jython-users:493058). > It means if you define in a Java class Test1 a method like the the following: > static public void workOn2DimArr(String[][] arr) { > // some code > } > then you can call it in the jython script with the 2-dimensional list as argument for this method: > >>> import Test1 > >>> Test1.workOn2DimArr([["jan", "hello"],["jan", "look"]]) > >>> > It works also with the integers! > I think it's an example for an excellent level of jython-java integration. > I use this feature very extensively. > (By the way: I would extend the information at http://jython.sourceforge.net/docs/usejava.html with the hint, that there is automatic type coercion support also for multidimensional arrays) > > QUESTION. > I think, the same level of AUTOMATIC type coercion should be possible to jy-dictionaries/Hashtables(or related Classes) (see my first mail) and jy-Lists/Vectors. > If it is possible for List/Arrays, why not for dictionaries/Hashtables ? > > Regards, Janusz The list -> array thing is there for convenience and because array are the java way to spell varargs (that also implies readonly usage of the array) but it doesn't come without danger, I rember a mail of someone trying to pass a python list to a java stream read method: passing the list worked but the result was not the expected one <wink>, list -> array creates a new array with a copy of the contents of the list and modifications get lost. m.invoke(o,[2,3,"a"]) # is very nice l=[0]*200 s.read(l) # fatal Further with this kind of conversion we know to what the list elements should be converted (the array el type), this is good for sanity-checking, that would not be possible for mappings. I really don't know if a similar copy semantic makes sense for mappings (probably not), it is difficult to define/implement an alternative semantic (the topic was already discussed once ) (a python object inherits from PyObject so cannot inherit form Hashtable, etc, yes there are some better possibility with java2 collections interfaces, but ... see the jython-dev archive). AN ALTERNATIVE: if you know that you should pass a python dict to a function that takes an Hashtable (and similar) you could use such a java object also on the python side, jython already allows to use it somehow like a dict... Jython 2.0 on java1.3.0 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> from java.util import Hashtable >>> h=Hashtable() >>> h['x']=3 >>> h['z']=5 >>> for k in h.keys(): # keys here is the java method (e.g. h do not offer an has_key): ... print h[k] ... 3 5 >>> jython allows to use [] and/or for foo in ... (when/if the construct is naturally meaningful with): java.util.Vector java.util.Enumeration java.util.Dictionary under java2: java.util.List java.util.Iterator java.util.Map java.util.Collections by insertion/extraction python types are naturally mapped: int <-> java.lang.Integer str <-> java.lang.String etc regards, Samuele Pedroni. |
From: Waclawczyk J. <Jan...@ic...> - 2001-06-06 13:22:46
|
Hello, I try to ask again (hopefully more precisely): INTRODUCTION. I'm often using jython to test my java software (my jython scripts call java methods, I' using a mix of Junit- and PyUnit-Framework). Some weeks ago Samuele Pedroni wrote me, that there is even automatic type coercion from jython 2-dimensional lists to java 2-dimensional arrays when calling a java method from jython(see http://aspn.activestate.com/ASPN/Mail/msg/Jython-users:493058). It means if you define in a Java class Test1 a method like the the following: static public void workOn2DimArr(String[][] arr) { // some code } then you can call it in the jython script with the 2-dimensional list as argument for this method: >>> import Test1 >>> Test1.workOn2DimArr([["jan", "hello"],["jan", "look"]]) >>> It works also with the integers! I think it's an example for an excellent level of jython-java integration. I use this feature very extensively. (By the way: I would extend the information at http://jython.sourceforge.net/docs/usejava.html with the hint, that there is automatic type coercion support also for multidimensional arrays) QUESTION. I think, the same level of AUTOMATIC type coercion should be possible to jy-dictionaries/Hashtables(or related Classes) (see my first mail) and jy-Lists/Vectors. If it is possible for List/Arrays, why not for dictionaries/Hashtables ? Regards, Janusz original Messages: Date: Tue, 5 Jun 2001 13:39:04 -0400 From: D-Man <ds...@ri...> To: "'jyt...@li...'" <jyt...@li...> Subject: Re: [Jython-users] Automatic type coercion for python dictionaries? On Tue, Jun 05, 2001 at 03:29:08PM +0200, Waclawczyk Janusch wrote: | Hello, | | I try to call in my jython script a java method, which expects | Hashtable as argument. But it fails: | | Jython 2.0 on java1.1.8 (JIT: ) | >>> import Test1 # it is my java test class | >>> Test1.testPyToJavaHash({"key":"value"}) | TypeError: testPyToJavaHash(): 1st arg can't be coerced to java.util.Hashtable | | Why is it not possible? (due to primitive types ? ) | It would be a nice feature ! (e.g. int -> Integer, ...) There is a lot of automatic type coercion done by Jython. See the section "Calling Java Methods and Functions" at http://jython.sourceforge.net/docs/usejava.html. I don't think jython does any Java<->Java coercion but it does Python<->Java coercion. I haven't tried passing Python dictionaries or lists to a Java method that wants an instance of a Java class yet. -D |
From: HEINECKE J. FTRD/DMI/L. <joh...@rd...> - 2001-06-06 10:38:39
|
Hello, Thanks for the aid! In fact I could find the source of the problem: The code I have sent to the list is only a tiny portion of the whole thing. In the application I use `import urllib' If I delete it, it works fine. But I need urllib in the python bit. So even if I do not use any thing from the module urllib the sole import makes the jythonc-ized version crash (java 1.3/jython 2.0). I try to isolate it even more... Thanks for the time being, if I can find it I will post it Johannes > -----Original Message----- > From: bc...@wo... [mailto:bc...@wo...] > Sent: Tuesday, June 05, 2001 10:26 PM > To: 'jython' > Cc: HEINECKE Johannes FTRD/DMI/LAN > Subject: Re: [Jython-users] jython class init error > > > [Johannes Heinecke] > > >I try to use a python-class (jythonc-ized) > >in java. It worked fine until I added three arguments to the class. > >Obviously I forget some initialization, but I cannot find the error: > > Your example works for me. > > [d:\temp]java FTRDHLP > ===l.bin---g.bin===o.bin--- > > What kind of crash do you get? > > regards, > finn > |
From: Craig T. <cr...@ah...> - 2001-06-06 03:09:09
|
> Jython is really just a Java program and runs in a JVM, so it faces > the same restrictions/requirements that other Java programs face. I'd thought maybe it did something special, because I had read that multiple inheritance had been possible in an earlier release of jpython. But obviosuly not :) > You might want to try XML-RPC or maybe JMS instead. (See > www.xmlrpc.com) OK. Thanks for that! - C |
From: D-Man <ds...@ri...> - 2001-06-06 03:01:15
|
On Wed, Jun 06, 2001 at 12:22:02PM +0930, Craig Turner wrote: | I'd like to make a network connection between a jython applet and a jython | server. What's the best way to pass serialised data in jython? Are there | classes standard in python that I can use? I don't know. | Alternatively, could I use RMI? Does jython escape any of the java | security sandboxes? At the moment, a client has to have certain | permission 'policies' set up before it can connect to a RMI server (that's | my impression anyway, and nobody responded to my query to the RMI user | list). Jython is really just a Java program and runs in a JVM, so it faces the same restrictions/requirements that other Java programs face. You might want to try XML-RPC or maybe JMS instead. (See www.xmlrpc.com) -D |
From: Craig T. <cr...@ah...> - 2001-06-06 02:36:31
|
I'd like to make a network connection between a jython applet and a jython server. What's the best way to pass serialised data in jython? Are there classes standard in python that I can use? Alternatively, could I use RMI? Does jython escape any of the java security sandboxes? At the moment, a client has to have certain permission 'policies' set up before it can connect to a RMI server (that's my impression anyway, and nobody responded to my query to the RMI user list). -- Craig Turner - cr...@ah... Ahdore Emerging Media - www.ahdore.com Bom Bom Bom-Bom Bom! - Puddle Lane |
From: <bc...@wo...> - 2001-06-05 20:25:18
|
[Johannes Heinecke] >I try to use a python-class (jythonc-ized) >in java. It worked fine until I added three arguments to the class. >Obviously I forget some initialization, but I cannot find the error: Your example works for me. [d:\temp]java FTRDHLP ===l.bin---g.bin===o.bin--- What kind of crash do you get? regards, finn |
From: D-Man <ds...@ri...> - 2001-06-05 17:39:08
|
On Tue, Jun 05, 2001 at 03:29:08PM +0200, Waclawczyk Janusch wrote: | Hello, | | I try to call in my jython script a java method, which expects | Hashtable as argument. But it fails: | | Jython 2.0 on java1.1.8 (JIT: ) | >>> import Test1 # it is my java test class | >>> Test1.testPyToJavaHash({"key":"value"}) | TypeError: testPyToJavaHash(): 1st arg can't be coerced to java.util.Hashtable | | Why is it not possible? (due to primitive types ? ) | It would be a nice feature ! (e.g. int -> Integer, ...) There is a lot of automatic type coercion done by Jython. See the section "Calling Java Methods and Functions" at http://jython.sourceforge.net/docs/usejava.html. I don't think jython does any Java<->Java coercion but it does Python<->Java coercion. I haven't tried passing Python dictionaries or lists to a Java method that wants an instance of a Java class yet. -D |
From: HEINECKE J. FTRD/DMI/L. <joh...@rd...> - 2001-06-05 15:44:44
|
Hi, I try to use a python-class (jythonc-ized) in java. It worked fine until I added three arguments to the class. Obviously I forget some initialization, but I cannot find the error: Python (translated with jythonc): import java import HTool class jHLP(java.lang.Object): def __init__(self, lex, gramm, ont): # this crashes "@sig public jHLP(java.lang.String lex, java.lang.String gramm, java.lang.String ont)" print "===%s---%s===%s---" % (lex, gramm, ont) self.pa = HTool.HTool(lex, gramm, ont) #def __init(self): # this worked #self.pa = HTool.HTool("l.bin", "g.bin", "o.bin") def doit(self, inputstring): "@sig public java.lang.String doit(java.lang.String inputstring)" OFs = self.pa.runappli(inputstring) return string.join(OFs, "#") Java: import java.io.*; import java.net.*; import jHLP; public class FTRDHLP { String lex = "l.bin"; String gramm = "g.bin"; String onto = "o.bin"; jHLP hpa = new jHLP(lex, gramm, onto); // this crashes //jHLP hpa = new jHLP(); // this worked ... } The question is, who can I give some arguments to a Class init? Thank you very much for any hints! Johannes -- Johannes Heinecke Email: joh...@fr... |
From: Waclawczyk J. <Jan...@ic...> - 2001-06-05 13:29:21
|
Hello, I try to call in my jython script a java method, which expects Hashtable as argument. But it fails: Jython 2.0 on java1.1.8 (JIT: ) >>> import Test1 # it is my java test class >>> Test1.testPyToJavaHash({"key":"value"}) TypeError: testPyToJavaHash(): 1st arg can't be coerced to java.util.Hashtable Why is it not possible? (due to primitive types ? ) It would be a nice feature ! (e.g. int -> Integer, ...) Regards, Janusz Waclawczyk |
From: Kieran B. <ki...@br...> - 2001-06-05 03:29:07
|
People, Do you have interesting jython code you can share? Why not post it to: http://aspn.activestate.com/ASPN/Cookbook/Python/category?kwd=Jython Regards. |
From: Garcia, M. <mg...@Bu...> - 2001-06-01 14:56:07
|
This is a very common problem when working with arrays. You have probably accessed an index that is out of the range of the array you are processing. Try backing off of your length check. It would be helpful to see code that is generating this. mick -----Original Message----- From: HEINECKE Johannes FTRD/DMI/LAN To: 'jython' Sent: 6/1/01 5:17 AM Subject: [Jython-users] jython error: java.lang.ArrayIndexOutOfBoundsException: -53781288 Hello, I'm a newbie to jython but not to python. I have a rather complex application in python, which I would like to run under jython. The organisation is already `java-compatible' (ie one file per class of the same name, no global variables etc) but every time I launche jython programme.py it crashes with a java error message like File "programme.py", line 0, in GlobInit java.lang.ArrayIndexOutOfBoundsException: -53781288 at org.python.core.PyTableCode.call(Compiled Code) at org.python.core.PyTableCode.call(Compiled Code) at org.python.core.PyTableCode.call(Compiled Code) at org.python.core.PyFunction.__call__(Compiled Code) ... java.lang.ArrayIndexOutOfBoundsException: java.lang.ArrayIndexOutOfBoundsException: -53781288 under python the programme runs fine. The puzzling thing is, that the the list of error message is never identical. I tried jython 2.0 and jython 2.1a under java 1.2 and java 1.3 respectively under Solaris 8 and Linux (redhat 7.0) Is there anybody out there who has had a similar probleme and found a solution? Thanks for any hint! Johannes -- Johannes Heinecke Email: joh...@fr... _______________________________________________ Jython-users mailing list Jyt...@li... http://lists.sourceforge.net/lists/listinfo/jython-users |
From: Ben H. <ben...@fi...> - 2001-06-01 12:52:59
|
To solve your problem I think you need more info. When you run Jython, ie run Java, use the -Xint flag to disable run time compilation. This should show line numbers in PyTableCode so you can locate the fault. The Jython source code can be found under org/python/* in your Jython distribution so you can check out PyTableCode.java. Regards Ben HEINECKE Johannes FTRD/DMI/LAN wrote: >Hello, > >I'm a newbie to jython but not to python. I have a rather >complex application in python, which I would like to run under >jython. The organisation is already `java-compatible' >(ie one file per class of the same name, no global variables etc) > >but every time I launche > jython programme.py >it crashes with a java error message like > >File "programme.py", line 0, in GlobInit >java.lang.ArrayIndexOutOfBoundsException: -53781288 > at org.python.core.PyTableCode.call(Compiled Code) > at org.python.core.PyTableCode.call(Compiled Code) > at org.python.core.PyTableCode.call(Compiled Code) > at org.python.core.PyFunction.__call__(Compiled Code) > ... >java.lang.ArrayIndexOutOfBoundsException: >java.lang.ArrayIndexOutOfBoundsException: -53781288 > >under python the programme runs fine. >The puzzling thing is, that the the list of error message is never >identical. >I tried jython 2.0 and jython 2.1a under java 1.2 and java 1.3 respectively >under Solaris 8 and Linux (redhat 7.0) > >Is there anybody out there who has had a similar probleme and found >a solution? > >Thanks for any hint! >Johannes > |
From: HEINECKE J. FTRD/DMI/L. <joh...@rd...> - 2001-06-01 09:18:21
|
Hello, I'm a newbie to jython but not to python. I have a rather complex application in python, which I would like to run under jython. The organisation is already `java-compatible' (ie one file per class of the same name, no global variables etc) but every time I launche jython programme.py it crashes with a java error message like File "programme.py", line 0, in GlobInit java.lang.ArrayIndexOutOfBoundsException: -53781288 at org.python.core.PyTableCode.call(Compiled Code) at org.python.core.PyTableCode.call(Compiled Code) at org.python.core.PyTableCode.call(Compiled Code) at org.python.core.PyFunction.__call__(Compiled Code) ... java.lang.ArrayIndexOutOfBoundsException: java.lang.ArrayIndexOutOfBoundsException: -53781288 under python the programme runs fine. The puzzling thing is, that the the list of error message is never identical. I tried jython 2.0 and jython 2.1a under java 1.2 and java 1.3 respectively under Solaris 8 and Linux (redhat 7.0) Is there anybody out there who has had a similar probleme and found a solution? Thanks for any hint! Johannes -- Johannes Heinecke Email: joh...@fr... |
From: Rich S. <rse...@ya...> - 2001-05-31 21:53:36
|
Hi, We're seeing some behavior with the copy module in Jython. In the following test program, __del__ is only called for for the original objects, never for the copied ones. Is this normal? The same program (without java calls, of course) for CPython shows __del__ being called for both the original and copied objects. Regards, Rich Seddon from java.lang import System import copy class Foo: def __del__(self): print "In __del__ for", self if __name__ == '__main__': for i in range(0, 5): f= Foo() print 'Foo object:', f f2 = copy.copy(f) print 'Copied Foo object:', f2 f = None f2 = None print 'Running garbage collector' System.gc() __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ |
From: Adam B. <sir...@ya...> - 2001-05-30 21:33:12
|
You may wish to take a look at the following article, which I just stumbled upon: http://www-106.ibm.com/developerworks/unicode/library/l-pide/ Adam --- Pete Isburgh <pv...@ya...> wrote: > > Just learning jython, and very impressed. What is a > good IDE for jython? Is there any product or > open source effort that is specially designed for > jython? > Thanks for any inputs! __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ |
From: Pete I. <pv...@ya...> - 2001-05-30 18:00:15
|
Just learning jython, and very impressed. What is a good IDE for jython? Is there any product or open source effort that is specially designed for jython? Thanks for any inputs! __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ |
From: <bc...@wo...> - 2001-05-29 20:06:09
|
[Brian Zhou] >Would suggest hosting a wiki site on jython.org. We already have a moinmoin running on jython.org: http://www.jython.org/cgi-bin/moin.cgi I couldn't quite figure out how to built a site with a usefull structure, so it was never announced. regards, finn |
From: <bc...@wo...> - 2001-05-29 19:17:37
|
[Chris Meyers] >Is there a way to do base64 encoding in jython? We have an app where >python is base64 encoding data on the server side. On the client side >we are using jython, and we can't find a way to unencode it. Anyone >out there know of a way to do this? The binascii module contains two function that deals with base64. Jython 2.0 on java1.3.0 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import binascii >>> dir(binascii) ['Error', 'Incomplete', '__doc__', 'a2b_base64', 'a2b_hex', 'a2b_hex$doc', 'a2b_ hqx', 'a2b_uu', 'b2a_base64', 'b2a_hex', 'b2a_hqx', 'b2a_uu', 'crc32', 'crc_hqx' , 'hexlify', 'rlecode_hqx', 'rledecode_hqx', 'unhexlify'] >>> print binascii.b2a_base64("hello world") aGVsbG8gd29ybGQ= >>> print binascii.a2b_base64(binascii.b2a_base64("hello world")) hello world >>> regards, finn |