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: Joshua F. <jo...@jo...> - 2002-03-04 19:05:36
|
I'm interested in learning more about how jythonc works. I see that it produces an intermediate file which is then compiled to bytecode with javac. A few questions come to mind: Did the creators consider using Java as an intermediate, rather than generating bytecode directly (OK, Java source code is easier to produce, but isn't it possible to compile non-Java directly to bytecode?) Why is the absolute path of the *.py file embedded into the generated *.java file, and thence in the bytecode? What use could that be, considering that we can certainly move class files around? More generally: Is there any documentation available about how jythonc works? |
From: Ype K. <yk...@xs...> - 2002-03-04 18:22:47
|
Marie Fran=E7oise, >Lorsque je lance mon code en JAVA j'utilise l'option -Xmx : >java -Xmx200m moncode. >Si j'=E9cris mon main en Jython et que je lance la commande >jython < moncode.py, >j'obtiens le message : >Out of Memory. You might want to try the -mx option to increase heap >size. >Comment passer ce param=E8tre =E0 Jython? Normalement le message 'Out of Memory' indique un erreur dans la programme, peut =EAtre r=E9cursion infinitive ou trop de (grands) objects alloc=E9s. En outre, poser la question en anglais te donneras plus de r=E9ponse. Bonne chance, Ype -- |
From: hamish <ha...@ic...> - 2002-03-04 13:52:06
|
Pardonnez moi. <<En Win32.... <<In Win32... hamish wrote: > Dans la fiche <<jython.bat>> ce qui lance la JVM, il y a la texte <<java > "-Dpython.home=C:\jython20" -c ...>>. > Il est possible de mettre l'option -Xmx là. > > Marie Francoise Robeau wrote: > > > Lorsque je lance mon code en JAVA j'utilise l'option -Xmx : > > java -Xmx200m moncode. > > Si j'écris mon main en Jython et que je lance la commande > > jython < moncode.py, > > j'obtiens le message : > > Out of Memory. You might want to try the -mx option to increase heap > > size. > > Comment passer ce paramètre à Jython? > > > > _______________________________________________ > > Jython-users mailing list > > Jyt...@li... > > https://lists.sourceforge.net/lists/listinfo/jython-users > > . > > Quick translation : > When I run my code in Java, I use the -Xmx option: > java -Xmx200m mycode > If I write my main in Jython and when I run the command > jython < moncode.py > I get the messate > Out of Memory .... > How do I pass this parameter to Jython? > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: hamish <ha...@ic...> - 2002-03-04 13:41:16
|
Dans la fiche <<jython.bat>> ce qui lance la JVM, il y a la texte <<java "-Dpython.home=C:\jython20" -c ...>>. Il est possible de mettre l'option -Xmx là. Marie Francoise Robeau wrote: > Lorsque je lance mon code en JAVA j'utilise l'option -Xmx : > java -Xmx200m moncode. > Si j'écris mon main en Jython et que je lance la commande > jython < moncode.py, > j'obtiens le message : > Out of Memory. You might want to try the -mx option to increase heap > size. > Comment passer ce paramètre à Jython? > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > . Quick translation : When I run my code in Java, I use the -Xmx option: java -Xmx200m mycode If I write my main in Jython and when I run the command jython < moncode.py I get the messate Out of Memory .... How do I pass this parameter to Jython? |
From: Karim Y. <ee...@ei...> - 2002-03-04 13:18:58
|
Hi Francois, sorry if I cannot answer your query, but at least I'll give a chance to others to do so ;-) Marie Francoise said: When I compile my code in JAVA, I use the option -Xmx, ie: java -Xmx200m moncode, If I write the 'main' in Jython then I use the command jython < moncode.py, I get the following error message: Out of Memory. You might want to try the -mx option to increase heap size. How do you then pass this parameter in Jython? END------------- Any volunteers? Just as a general rule, people are more likely to reply to you when it's in English Cheers, Karim Yaici -----Original Message----- From: jyt...@li... [mailto:jyt...@li...]On Behalf Of Marie Francoise Robeau Sent: 04 March 2002 12:57 To: jyt...@li... Subject: [Jython-users] Besoins de memoire a l'exécution Lorsque je lance mon code en JAVA j'utilise l'option -Xmx : java -Xmx200m moncode. Si j'icris mon main en Jython et que je lance la commande jython < moncode.py, j'obtiens le message : Out of Memory. You might want to try the -mx option to increase heap size. Comment passer ce paramhtre ` Jython? _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Marie F. R. <mr...@ce...> - 2002-03-04 12:55:45
|
Lorsque je lance mon code en JAVA j'utilise l'option -Xmx : java -Xmx200m moncode. Si j'écris mon main en Jython et que je lance la commande jython < moncode.py, j'obtiens le message : Out of Memory. You might want to try the -mx option to increase heap size. Comment passer ce paramètre à Jython? |
From: °¼Ò¿µ<_bl...@ho...> - 2002-03-02 17:55:26
|
<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN""> <html> <head> <meta http-equiv=Content-Type content=""text/html; charset=ks_c_5601-1987""> <title>뉴스매니아: 친구에게 글 보내기</title> </head> <body bgcolor=white text=black link=blue vlink=purple alink=red> <table width=500 border=0><tr width=500><td width=500> <font type=굴림 size=2>안녕하세요? 뉴스매니아입니다.<br> <a href=http://www.newsmania.co.kr>http://www.newsmania.co.kr</a><br><br> 아래는 <a href=http://www.newsmania.co.kr/my/my_profile.asp?idIn='bluemoon'><font color=#0000CC>강소영</font></a>님께서 보내신 글입니다.<br> -------------------------------------------------------------<br> <font color=#CC0000>내용이 괜찮은데 한번 읽어보세요!</font><br><br><br> <a href=http://www.newsmania.co.kr/humor/humor_article.asp?catType=humor&resNum=60&topNum=60&viewBy=0>http://www.newsmania.co.kr/humor/humor_article.asp?catType=humor&resNum=60&topNum=60&viewBy=0</a><br><br><br> -------------------------------------------------------------<br> 이 E-메일은 뉴스매니아의 독자가 보냈습니다.<br> <a href=http://www.newsmania.co.kr><img src=http://www.newsmania.co.kr/icons/spm_logo.gif align=absmiddle border=0></a> - One Stop News Portal<br><br> 정치에서 Sex까지 12분야별 톱 뉴스를 보실 수 있습니다.<br> 무료 뉴스레터 서비스를 신청하시려면 <a href=http://www.newsmania.co.kr/register/login_register.asp>여기를 클릭</a>하세요!<br><br> 기타 궁금한 점은 <a href=mailto:cus...@ne...?subject=뉴스매니아:Customer>cus...@ne...</a>로 연락주세요.<br> </td></tr></table></font></BODY></HTML> |
From: Ype K. <yk...@xs...> - 2002-03-01 20:31:05
|
Fred, >I have a .jar build with jdk 1.3 > >I'm running jython21 installed under jdk1.4. > >when I try to import my jar, I can see the jar and a dir of the imported >package shows all the classes. > >But I cannot instantiate or otherwise reference the package. You cannot instantiate a package, jython has already done that for you. When this works: import your dir(your.package) you should be able to do this: yourFooObj = your.package.someClassFooAsShowedByDir() Hope this helps, Ype -- |
From: Kevin B. <kb...@ca...> - 2002-03-01 15:46:54
|
Stephen Naicken wrote: > > I'm not sure as to how to go about threading a jython program. I am > trying to use from java.lang import Thread, extending the Thread class > and overriding thr run method. However, when I do this in jython, I get > an error telling me the __call__ attribute has not been set. As a design principle, it is often better to implement Runnable rather than extending Thread (you have Runnable jobs to do, rather than anything that would change the semantics of a Thread). > If anyone can provide a small example of how to create a threaded app in > jython I would be very grateful. Four small examples (Jython tends to violate Python's "one obvious way to do it" principle), ordered as Python over Java, then preferred over less preferred: def greet( name ): print "greetings", name count = 0 # newer Python way import threading count += 1 t = threading.Thread( target=greet, name="MyThread %d" % count, args=( "threading.Thread", ) ) t.start() # older Python way # has no thread naming feature import thread thread.start_new_thread( greet, ( "thread.start_new_thread", ) ) # preferred Java way from java.lang import Thread, Runnable class GreetJob( Runnable ): def __init__( self, name ): self.name = name def run( self ): greet( self.name ) count += 1 t = Thread( GreetJob( "Runnable" ), "MyThread %d" % count ) t.start() # other Java way from java.lang import Thread class GreetThread( Thread ): def __init__( self, name, count ): Thread.__init__( self, "MyThread %d" % count ) self._name = name # Thread has a 'name' attribute def run( self ): greet( self._name ) count += 1 t = GreetThread( "Thread subclass", count ) t.start() *whew* BTW, the thread naming stuff is good practice but not required. kb |
From: Stephen N. <ste...@co...> - 2002-03-01 11:11:24
|
I'm not sure as to how to go about threading a jython program. I am trying to use from java.lang import Thread, extending the Thread class and overriding thr run method. However, when I do this in jython, I get an error telling me the __call__ attribute has not been set. If anyone can provide a small example of how to create a threaded app in jython I would be very grateful. Thanks Stephen |
From: brian z. <bz...@zi...> - 2002-03-01 04:55:50
|
Mike, The behaviour you are seeing from JBoss and zxJDBC is expected and correct. I'll try to explain why and hopefully provide a couple solutions/suggestions to help you out. First, zxJDBC doesn't really have anything to with EJBs. While both EJBs and zxJDBC can access JNDI they have no relation to each other. zxJDBC understands how to connect to database from a JNDI lookup that results in a DataSource or other JDBC object (ConnectionPooledDataSource, Driver, ...) but can't do anything with EJBs. It is often the case that JNDI is used without ever deploying an EJB, such as when using JMS. The next thing is to look at what is stored in JNDI and who can access it. JBoss binds the DataSource in the 'java:' namespace, which as this thread (http://www.mail-archive.com/jbo...@li.../msg12942.h tml) explains, is available only inside the vm. So the reason your access to 'java:/jdbc/WP30' fails is because you are running in another VM (I'm making an assumption here given by the command prompts in your email). The reason your EJB can access this JNDI bound object is because it's part of the container and therefore can see it. The JBoss JNDI server is simply denying zxJDBC access to anything bound under java: as this is intended behaviour. To prove this try the following code snippet: import java from javax.naming import * env = java.util.Hashtable() env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContex tFactory") env.put(Context.PROVIDER_URL, "localhost") env.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces") ctx = InitialContext(env) enum = ctx.list("/") while enum.hasMoreElements(): print " -- " + enum.nextElement().getName() When I run this against my JBoss 2.4.4 instance I see: -- XAConnectionFactory -- jmx:mountain:rmi -- TopicConnectionFactory -- UserTransactionSessionFactory -- RMIXAConnectionFactory -- QueueConnectionFactory -- topic -- queue -- ConnectionFactory -- RMIConnectionFactory -- UserTransaction -- jmx -- servercollector -- UILXAConnectionFactory -- UILConnectionFactory Notice the 'java:' namespace is not visible. You'll be unable to access the connection externally even though your EJB (running internally) sees it just fine. If you're looking to just store a DataSource in JNDI you could try something like this (it's how I test zxJDBC and on occasion I run zxJDBC this way): import java, org from javax.naming import * from com.ziclix.python.sql import zxJDBC as zx env = java.util.Hashtable() env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContex tFactory") env.put(Context.PROVIDER_URL, "localhost") env.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces") ctx = InitialContext(env) ds = org.gjt.mm.mysql.MysqlDataSource() ds.setServerName("192.168.1.102") ds.setDatabaseName("ziclix") ds.setUser("jython") ds.setPassword("jython") ds.setPort(3306) conn = ds.getConnection() conn.close() print print "opened connection from ds: %s" % (str(ds)) try: ctx.bind("mysql", ds) except NameAlreadyBoundException: pass db = zx.lookup("mysql", INITIAL_CONTEXT_FACTORY="org.jnp.interfaces.NamingContextFactory", PROVIDER_URL="localhost", URL_PKG_PREFIXES="org.jboss.naming:org.jnp.interfaces" ) print print db db.close() ctx.unbind("mysql") ctx.close() This script creates a DataSource (could be a ConnectionPooledDataSource as well (also note that each vendor's DataSource is slightly different in terms of set/get API)) and binds the instance. zxJDBC's lookup() is then able to find the DataSource and create a connection. If you re-run the first code snippet without unbinding mysql you should see it in the list. Additionally, if you embed Jython in the EJB container and use the embedded interpreter to accces zxJDBC and JNDI resources your original attempt should work just fine. This approach is also possible for using zxJDBC in conjunction with PyServlet. I hope this helps. If you have any more questions please let me know. thanks, brian > -----Original Message----- > From: jyt...@li... > [mailto:jyt...@li...] On Behalf > Of Mike Hostetler > Sent: Thursday, February 28, 2002 9:54 AM > To: jyt...@li... > Subject: [Jython-users] Trouble with getting to EJB > Importance: High > > > Hello, > > I'm trying to use Jython to get to some EJB objects via JBoss > 2.2 and having very little luck. I can get to the database > from another application (that also uses the EJB, but is > Java) so I know that it is being deployed properly. > > According to the JBoss startup, my database is being deploy thus: > [jdbc/WP30] Starting > [jdbc/WP30] XA Connection pool jdbc/WP30 > bound to java:/jdbc/WP30 > [jdbc/WP30] Started > > But when I try to get at it via zxODBC, it doesn't work: > >>> from com.ziclix.python.sql import zxJDBC > >>> jndi = "jdbc/WP30" > >>> db = zxJDBC.lookup(jndi) > Traceback (innermost last): > File "<console>", line 1, in ? > DatabaseError: jdbc not bound > > And there is a jndi.properties file in that directory, and > Jython is reading it. I know this because if I muck with it, > it give me an error: > > original jndi.properties: > > java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory > java.naming.provider.url=localhost > > java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces > > messed-up jndi.properties: > > java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory > java.naming.provider.url=fred://localhost > > java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces > > Run with bad jndi.properties: > >>> from com.ziclix.python.sql import zxJDBC > >>> jndi = "jdbc/WP30" > >>> db = zxJDBC.lookup(jndi) > Traceback (innermost last): > File "<console>", line 1, in ? > DatabaseError: fred > > Now, I am totally lost. What could the problem be? Is there > any suggestions? > > -- mikeh > > -- > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Samuele P. <pe...@in...> - 2002-03-01 03:57:06
|
From: Bill Janssen <ja...@pa...> > Thanks for the workaround. Should I report the bug, or is it already in the bugs DB? > No it is not there, but I have already analyzed it and I will take care. Thanks, Samuele Pedroni. |
From: Bill J. <ja...@pa...> - 2002-03-01 03:49:07
|
Thanks for the workaround. Should I report the bug, or is it already in the bugs DB? Bill |
From: Doug L. <lan...@go...> - 2002-02-28 20:54:51
|
>... wondering why it seems that every variable used has to >have self prefixed to it. Global and local variables do not require the "self." prefix; it is only members -- aka instance variables -- and methods that require this. >I'd just like to know why this is needed or if im doing something wrong. Or both! (Your error is not capitalizing the "I" and omitting the apostrophe. Mine is in pointing that out. You're welcome...) See http://www.python.org/doc/Humor.html#zen ... the second item says Explicit is better than implicit. That's the guiding principle for why this part of the language was designed this way. channeling-the-Tim-bot-channeling-Guido-ly, -- Doug |
From: Stephen N. <ste...@co...> - 2002-02-28 20:35:09
|
Slightly off topic from jython, but does the berekely db java interface support version 1.85 if conifgured with the 1.85 compatablity? On Thu, 21 Feb 2002, Jeff Emanuel wrote: > > > You can find a Java interface to Berkeley DB which you can access > directly from jython. Feed this to google "berkeley db java" > > > Stephen Naicken wrote: > > > I have an application in python that requires the use of the bsddb > > module to extract information from the mozilla 0.92 cache database, > > cache.db. I would like to port this application to jython, but the > > bsddb module is not available. What alternatives do i have? > > > > Thanks > > > > Stephen > > > > > > _______________________________________________ > > Jython-users mailing list > > Jyt...@li... > > https://lists.sourceforge.net/lists/listinfo/jython-users > > > > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Mats W. <ma...@la...> - 2002-02-28 20:03:23
|
>What I'd suggest is some sort of collection of "porting stories" >(Python to Jython) and/or issues to expect when doing this kind >of thing. I'm not sure the FAQ is the best place for that, but >maybe I'm wrong. I think a "porting FAQ", whether integrated with the main FAQ or not, is always a good idea. It provides a way to capture particular issues that maybe don't belong in the main docs, but still can save folks some time if documented somewhhere. |
From: Sells, F. <fr...@ad...> - 2002-02-28 20:00:43
|
I have a .jar build with jdk 1.3 I'm running jython21 installed under jdk1.4. when I try to import my jar, I can see the jar and a dir of the imported package shows all the classes. But I cannot instantiate or otherwise reference the package. This problem is familiar, but I've searched for it without luck. Could I get a little help please |
From: Mike H. <th...@bi...> - 2002-02-28 15:53:31
|
Hello, I'm trying to use Jython to get to some EJB objects via JBoss 2.2 and having very little luck. I can get to the database from another application (that also uses the EJB, but is Java) so I know that it is being deployed properly. According to the JBoss startup, my database is being deploy thus: [jdbc/WP30] Starting [jdbc/WP30] XA Connection pool jdbc/WP30 bound to java:/jdbc/WP30 [jdbc/WP30] Started But when I try to get at it via zxODBC, it doesn't work: >>> from com.ziclix.python.sql import zxJDBC >>> jndi = "jdbc/WP30" >>> db = zxJDBC.lookup(jndi) Traceback (innermost last): File "<console>", line 1, in ? DatabaseError: jdbc not bound And there is a jndi.properties file in that directory, and Jython is reading it. I know this because if I muck with it, it give me an error: original jndi.properties: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=localhost java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces messed-up jndi.properties: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=fred://localhost java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces Run with bad jndi.properties: >>> from com.ziclix.python.sql import zxJDBC >>> jndi = "jdbc/WP30" >>> db = zxJDBC.lookup(jndi) Traceback (innermost last): File "<console>", line 1, in ? DatabaseError: fred Now, I am totally lost. What could the problem be? Is there any suggestions? -- mikeh -- |
From: <do...@fi...> - 2002-02-28 14:01:11
|
Folks, Please try to avoid using 3 consecutive X's in any code samples as some email monitoring software views this as adult content and flags the email for system administrator review. The code below in which I replaced two X's with periods was the culprit on our system. Properties are diffrent. X.. > sys.argv[0] > loading of python classes. Thanks. Doug |
From: Jeff M. <je...@mk...> - 2002-02-28 12:21:15
|
If you look at the documentation http://java.sun.com/j2se/1.3/docs/api/java/io/Serializable.html it details this. Basically java uses two private methods. private void writeObject(java.io.ObjectOutputStream out) throws IOException and private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException; to handle serialization. You can implement you own versions of these methods on an object so that the jvm uses these to serialize/deserialize the object. This mean that when you do o = new ObjectOutputStream(new FileOutputStream(filename)); o.writeObject(myClass); java uses your o.writeObject to write the object to disk. You can then use any format you wish to describe the object. If you represent you object as a byte array you should be able to read this array into pyhon and populate a python object using this data. On Wed, 2002-02-27 at 21:47, Nicolas Bill Russell wrote: > > Really? Could you please explain in detail. :) > o = new ObjectOutputStream(new FileOutputStream(filename)); > o.writeObject(myClass); (?) > Isn't the syntax of Python classes different from Java? > Thanks, > Bill Nicolas > Jeff Martin <je...@mk...> wrote: You could try implementing the readObject and writeObject methods on > your java object. This would allow you to control the format into which > they are serialized so you can interpret in in python. > > > On Tue, 2002-02-26 at 21:31, Nicolas Bill Russell wrote: > > > > The reason why I want to use Jython is that I need to access serialized Java objects. > > I've designed a system that uses objects as the main storage media rather than databases. I used Java for the frontend of my system (Swing GUIs and object serialization) and is planning to use Python (Jython) for client-side processing of Java objects. > > Is there any other (simpler) way to access Java objects using Python? > > Thanks, > > Bill Russell Gagalac-Nicolas > > > > > > > > --------------------------------- > > Do You Yahoo!? > > Get personalised at My Yahoo!. > -- > > > > --------------------------------- > Do You Yahoo!? > Get personalised at My Yahoo!. -- |
From: Gustav B. <Gus...@eo...> - 2002-02-28 10:52:06
|
Hi! I'm still not getting this to work. Now I get another error-message: Traceback (innermost last): File "<console>", line 1, in ? File = "v:\eonworx_testbed\gubos\src\python\python-geAamB", line 14, in = runHello java.lang.IllegalAccessException at java.lang.reflect.Constructor.newInstance(Native Method) at = org.python.core.PyReflectedConstructor.__call__(PyReflectedConstructor.ja= va) at org.python.core.PyJavaInstance.__init__(PyJavaInstance.java) at org.python.core.PyJavaClass.__call__(PyJavaClass.java) at org.python.core.PyObject.__call__(PyObject.java) at = org.python.pycode._pyx2.runHello$2(v:\eonworx_testbed\gubos\src\python\py= thon-geAamB:14) at = org.python.pycode._pyx2.call_function(v:\eonworx_testbed\gubos\src\python= \python-geAamB) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyFunction.__call__(PyFunction.java) at org.python.pycode._pyx3.f$0(<console>:1) at org.python.pycode._pyx3.call_function(<console>) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyCode.call(PyCode.java) at org.python.core.Py.runCode(Py.java) at org.python.core.Py.exec(Py.java) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java) at = org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.jav= a) at = org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.j= ava) at = org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.j= ava) at org.python.util.InteractiveConsole.push(InteractiveConsole.java) at = org.python.util.InteractiveConsole.interact(InteractiveConsole.java) at org.python.util.jython.main(jython.java) java.lang.IllegalAccessException: java.lang.IllegalAccessException What could be causing this? My classpath does not contain the Hello class (I checked with : >>> for path in System.getProperty("java.class.path").split(";"): ... print path) I've been getting this error when I try to use sys.add_extdir too. I = never seem to get this dynamic loading of Java-classes to work. I must = be doing something very wrong. /Gustav -----Original Message----- From: Samuele Pedroni [mailto:pe...@in...] Sent: Wednesday, February 27, 2002 6:15 PM To: Gustav Bostrom; Jython (E-mail) Subject: Re: [Jython-users] Example of Java class reloading Example of Java class reloadingHi From: Gustav Bostrom >Hi! >I'm struggling to get the Java-class reloading to work. >I'm not very succesful. >Does anyone have a good example to share? >I tried this, but it didn't work: >import jreload >classpath=3D["V:\\eonworx\\output\\contrib\\studio\\classes"] >classesLoadSet=3Djreload.makeLoadSet("classes",classpath) >print classesLoadSet >from classes import Hello >jreload.reload(classesLoadSet) you don't need this jreload.reload call >def rl(): > jreload.reload(classesLoadSet) >def runHello(): > Hello().sayHello() > > When I run rl() the Hello-class is still not reloaded and runHello() = still produces the old result. Assuming that you have changed the class before calling rl() <wink>, the = code seems correct. The Jython Demo/jreload directory contains the artifacts to run the = interactive session example in Doc/jreload.html documentation. Up to bugs, the only important thing to remember is that the LoadSet = path should be disjunct from classpath and sys.path otherwise reloading will not = work (Java limitation). regards, Samuele Pedroni. |
From: ¿ì~~¿Í??!! <tou...@dr...> - 2002-02-28 07:07:33
|
<html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=_autodetect_kr"> <title>무료영화 || 무료콘서트 관람 *** 중앙테마이벤트 ***</title> </head> <body background="http://myhome.netsgo.com/missyou/yunhee/bg01.gif"> <div align="center"><div align="center"><center> <table border="0" width="800" bgcolor="#ffffff" height="1426" cellspacing="0"> <tr> <td width="222" height="24"><a href="http://www.joongangevent.com" target="new"><img src="http://www.joongangevent.com/img/logo.gif" border ="0" alt="중앙이벤트 홈페이지 가기" width="222" height="60"></a></td> <td width="580" height="24" colspan="2" bgcolor="#d3eff5" style="LINE-HEIGHT: 16px"><font size="2" color="#ff8040">※ 본 메일은 정보통신망에 관한 법률 제 50조에 의거하여 [광고]메일임을 밝힙니다.</font><br> <font size="2">본 메일은 발신 전용이므로 회신을 하실 수 없으며, 회신을 원하시면 제일 밑에 있는 답장하기 버튼을 클릭해 주세요~~~~</font></td> </tr> <tr> <td width="222" height="1"></td> <td width="397" height="1"></td> <td width="183" height="1"></td> </tr> <tr> <td width="800" height="1104" colspan="3" style="LINE-HEIGHT: 20px" valign="top"> <div align="center"><center><table border="0" width="98%" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><strong><font color="red" size="4"><marquee border="0">★여러분! 지금~~~행복 하세요?!!★</marquee></font></strong><p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">네!...저는 중앙테마 뉴스위크지 <font color="#000066">홍보<font color="#0066ff">담당 김윤희</font></font>~~~라고 하는데요~~, 제가 여러분께~~~<br> 잠시나마~~~행복♡을 드릴려구~~~~~이렇게 허락없이 메일을 보내게 되었습니다. 용서해 주실꺼죠??...(꾸벅:감사~합니다)</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">이번에 다름이 아니라~~~저희 회사 <font color="#993300">뉴스위크 창간 11주년</font>을 맞이해서~~~</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">매~~~~~~달, <b><font color="#ff0000">영화 초대권 or 라이브 콘써트 초대권을 2장씩</font></b>(그니깐, 1인2매죠...)<br> 번갈아 가면서~~~~~~~~~~~~~~~~~~100% 무료 초대권(그니깐, 공짜 티켓...)을 매달, 매달~~ 받으실수 있구요~~~~~**(이것만 받아도 벌써, 행복 하시죠??....)</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">거기다~~~특별 사은품으로~~~~~이멜을 받으시고 신청하시는 모든분께~~~~<br> 영국산<b><font color="#ff0000"> 폴라로이드 즉석 카메라</font></b>(일회용 절대루~~~아녀요~**), 또는-<br> <b><font color="#ff0000">로만손 오리지널~~손목시계</font></b>를 혼자도 아닌, 2분이 같이~~이쁘게 차고 다니시라고~~<br> 남녀~~~커플시계(현 롯데 백화점에서 팔고 있어요~~**)를 그냥~~~~드리구 있답니다~~**</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">여기까지만, 읽으셔도 정말루~~~행복하시다구요??</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">자, 자!! 벌써, 행복 하시지엔 아직~~~이르시구요....</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">또~~~~다른 혜택이 있답니다!!</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">시중에서 판매부수 1~2위를 다투는 시사주간지~~<br> 뉴스위크 한국판을(권당:3.000)매주마다 ~~~~~~~2년동안 100권씩 쭉~~~~~~~~~~~~~~~~<br> 드리고 있답니다.....(일단,주간지만 보셔도 손해는 아니신거 아시죠??..)</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">이렇게 많은 혜택을 드리고도...남는게 있냐구요??..</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">네....말씀 잘~~~하셨습니다....<br> 저희는 지금 행사 기간이라서, 여러분께~~~잠시나마 행복과 기쁨을 전하고저-<br> 가장 최소 비용인....(누구나ㅡ부담없이 이용할수 있도록...)</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000"><font color="#ff0000"><b>한달에!! 10.500원</b></font> 뿐입니다!! (하루가,아니구...정확히 한달~가격이죠*^^*)<br> 넘~~~~~~~~~~~~~~~~~~저렴 하시죠??...(하루,식사~~정도~밖에 않되요~~~**)</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">대신, 평생은~~~~~못해 드리구요~~딱~~2년간만 이래요....<br> 넘, 짧다구요??....그래두, 어쩔수 없답니다~~~**<br> 회원기간이 길면~~~~저희가 남는게~~~~정말루~~~없거든요~~**</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">진짜루~~~제가 생각해두~~~넘 저렴해서 저두~~직원임에두 불구하구, 이 행사에 직접 신청했구여-<br> 매달,영화나 공연들을 보면서 무지~~~젊구, 행복하게(*^^*) 살고 있답니다~~**</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">암튼, 자세한 내용과 저희 행사에 저랑 함꼐~~~~참석 하시고 싶으신 분들은-<br> 여기를(<a href="http://www.joongangevent.com" target="_blank">www.joongangevent.com</a>)클릭해 주시구요-(만약, 클릭이 않되시는 분들은 복사 하세요~~)</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">단!! 지금, 이메일을 받으신 분께만 해당이 되시는거 아시죠??..</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">그럼, 어서~~들어 오시구요, 행복을 지금 이순간 선택 하세요~~@^^@<br> 바로, 여기~~~입니다~~~**</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000"><a href="http://www.joongangevent.com" target="_blank">http://www.joongangevent.com</a></font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000"><a href="http://www.happyjoongang.com" target="_blank">http://www.happyjoongang.com</a><br> <br> <b><font color="#ff0000">뉴스위크지 중앙테마 이벤트 </font></b>홍보<font color="#ff0099"><b>담당 김윤희</b></font>드림(<font color="#0000cc"><b>02-773-5030</b></font>)<br></font></p></td> </tr> </table> </center></div></td> </tr> <tr> <td width="534" height="50" style="LINE-HEIGHT: 20px" valign="center" colspan="2" bgcolor="#e3e3e3"><font size="2"> * 이멜을 받길 원하지 않으신 분들은 수신거부를 눌러 주세요....</font> <font size="2"><br> * 허락없이 메일 보낸 점 진심으로 사과 드립니다.</font> </td> <td width="266" height="50" style="LINE-HEIGHT: 20px" valign="center" bgcolor="#e3e3e3"><p align="center"><A href="mailto:tr...@dr...?subject=수신거부 신청&body=수신을거부합니다" border="0"><img src="http://myhome.netsgo.com/missyou/yunhee/deny1.gif" border="0" width="70" height="20"></a> <A href="mailto:top...@in..." border="0"><img src="http://myhome.netsgo.com/missyou/yunhee/deny2.gif" border="0" width="90" height="20"></a></p></td> </tr> <tr> <td width="800" height="50" colspan="3" style="LINE-HEIGHT: 20px" bgcolor="#d3eff5"><p align="center"><strong>오늘도 즐겁고 행복한 하루 되세요~~~~</strong></p></td> </tr> </table> </center></div> <dl> <dd align="center"> </dd> </dl> </div> http://www.business114.co.kr<IMG SRC="http://mail.joongang21.co.kr:80/cgi-auth/mailrcpt.cgi?userid=top7307&maildomainname=joongang21.co.kr&msgid=200...@jo..."> </body> </html> |
From: Oti <oh...@ya...> - 2002-02-28 06:08:29
|
[ Hugh Rodgers ] > I have been trying to use the javaos.execute() method for > some time now, unsuccessfully. I basically wanted to do the > following: > > import os > os.execute( "f:\tests\HelloWorld" ) > > where HelloWorld is my compiled and working Java > application. Hello Hugh, please try: import os os.system( "f:\tests\HelloWorld" ) I believe the execute() method is internal to javaos.py Best wishes, Oti. __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com |
From: Samuele P. <pe...@in...> - 2002-02-28 05:47:49
|
You have encountered a bug, a workaround is to define a startup.py: import TopLevel.mainmodule and then jythonc --core --deep --jar whatever.jar startup.py but depending our needs this can be useful or not. Let us know. regards, Samuele Pedroni. ----- Original Message ----- From: Bill Janssen <bi...@ja...> To: <jyt...@li...> Sent: Thursday, February 28, 2002 4:17 AM Subject: [Jython-users] freezing an application with pythonc? Do Python packages work? > I've got a fairly large Python application working with Jython, and > I'd like to generate a jar file so that the application could be run > with a command-line like > > java -classpath myjarfile.jar TopLevel.mainmodule > > This looks pretty easy to do with jythonc, and I've gotten it to work > on some simple examples. However my large app does things like > > import TopLevel > > from inside TopLevel.mainmodule. And that doesn't work; I get an > import error. I see that the documentation page for jythonc has some > unfinished sections at the bottom, where it says: > > > Freezing modules > > jythonc can also be used to freeze a python application. The frozen > application can then be distributed and deployed as any other java > application. > > Some diffrences between an interpreted application and a frozen > application exists: > > Properties are diffrent. XXX > sys.argv[0] > loading of python classes. > > > Anyone know the specifics of those differences? I suspect my troubles > are coming from "loading of python classes". In particular, I notice > that if TopLevel contains an __init__.py file, the import fails, but > if there's no such module, the import succeeds. > > Bill > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Bill J. <bi...@ja...> - 2002-02-28 03:18:12
|
I've got a fairly large Python application working with Jython, and I'd like to generate a jar file so that the application could be run with a command-line like java -classpath myjarfile.jar TopLevel.mainmodule This looks pretty easy to do with jythonc, and I've gotten it to work on some simple examples. However my large app does things like import TopLevel from inside TopLevel.mainmodule. And that doesn't work; I get an import error. I see that the documentation page for jythonc has some unfinished sections at the bottom, where it says: Freezing modules jythonc can also be used to freeze a python application. The frozen application can then be distributed and deployed as any other java application. Some diffrences between an interpreted application and a frozen application exists: Properties are diffrent. XXX sys.argv[0] loading of python classes. Anyone know the specifics of those differences? I suspect my troubles are coming from "loading of python classes". In particular, I notice that if TopLevel contains an __init__.py file, the import fails, but if there's no such module, the import succeeds. Bill |