#jython IRC Log (v0.9)

Index

IRC Log for 2012-12-27

Timestamps are in GMT/BST.

[0:46] * Juneau001 (~Juneau@50-45-113-15.dklb.il.frontiernet.net) Quit (Quit: Juneau001)
[0:52] * Juneau001 (~Juneau@50-45-113-15.dklb.il.frontiernet.net) has joined #jython
[2:33] * vayer (~vayer@pool-96-228-44-13.rcmdva.fios.verizon.net) Quit (Quit: Leaving)
[3:33] * Juneau001 (~Juneau@50-45-113-15.dklb.il.frontiernet.net) Quit (Read error: Connection reset by peer)
[8:45] * wmeissner (~wmeissner@121.91.4.123) has joined #jython
[9:07] * wmeissner (~wmeissner@121.91.4.123) Quit (Read error: Connection reset by peer)
[9:07] * wmeissner (~wmeissner@121.91.4.123) has joined #jython
[15:05] * bartelmess (~bartelmes@184.151.190.131) has joined #jython
[15:06] * bartelmess (~bartelmes@184.151.190.131) Quit (Client Quit)
[15:40] * Juneau001 (~Juneau@50-45-113-15.dklb.il.frontiernet.net) has joined #jython
[15:49] * bartelmess (~bartelmes@204.16.200.34) has joined #jython
[17:19] * Juneau001 (~Juneau@50-45-113-15.dklb.il.frontiernet.net) Quit (Quit: Juneau001)
[17:45] * bartelmess (~bartelmes@204.16.200.34) Quit (Quit: Leaving...)
[17:56] * bartelmess (~bartelmes@204.16.200.34) has joined #jython
[17:59] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Max SendQ exceeded)
[18:00] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[18:02] * qwebirc38545 (55f3cda0@gateway/web/freenode/ip.85.243.205.160) has joined #jython
[18:07] * qwebirc38545 (55f3cda0@gateway/web/freenode/ip.85.243.205.160) Quit ()
[18:17] * bartelmess (~bartelmes@204.16.200.34) Quit (Quit: Leaving...)
[18:50] <killfoo> hi! is there a way to pass java properties to java libs (jars) in jython?
[18:56] <agronholm> killfoo: meaning?
[19:00] <killfoo> agronholm I use a java lib from jasperreport (jaspersoft). this lib requires the configuration of a xpath factory
[19:00] <agronholm> go on
[19:01] <killfoo> if you run the lib native in java, it reads a config file called jaspersoft.properties. this file contains the xpath factory to use.
[19:01] <killfoo> but if i run it with jython, it always says that the xpath factory is not configured
[19:02] <agronholm> where is this file then?
[19:03] <killfoo> i placed it kinda everywhere for testing reasons. it never worked. normally I place it inside the jar file that contains a class that calls the other lib that requires the configuration
[19:03] <killfoo> I posted a questoin at jaspersoft regarding this problem: http://community.jaspersoft.com/questions/802232/running-jasperreport-demosamplesxmldatasource-jython
[19:04] <agronholm> running it from jython shouldn't be any different from running it without jython
[19:04] <agronholm> it's still a java vm
[19:04] <agronholm> personally I would try to solve this with a debugger
[19:04] <killfoo> yes I know. that is why I dont know how to solve the problem.
[19:05] <agronholm> see where it's looking for the file and why it's not finding it
[19:05] <killfoo> i;ve also executed the script by jython -Dkey=value
[19:05] <killfoo> didnt work either
[19:05] <agronholm> I don't see many options here
[19:06] <agronholm> a debugger would certainly get you answers
[19:06] <killfoo> agronholm well it is a java properties file. I assume it is not read by the corresponding library file directly.
[19:06] <agronholm> no, but that does not matter
[19:06] <agronholm> a debugger will still tell you what's going on
[19:07] <killfoo> hm.
[19:07] <killfoo> ok trying this with eclipse
[19:07] * bartelmess (~bartelmes@204.16.200.34) has joined #jython
[19:08] <killfoo> agronholm or do you suggest another way for debugging jython?
[19:08] <agronholm> no
[19:08] <agronholm> just remember, the eclipse debugger does not work on python code
[19:09] <killfoo> how do you mean that? when using pydev i can debug (stop/go/step/watch vars etc) the python code..
[19:10] <agronholm> yes, but you cannot switch back and forth
[19:10] <agronholm> you can only use the java debugger or the pydev debugger at once
[19:10] <killfoo> ah yes
[19:11] * tbartelmess (~bartelmes@204.16.200.34) has joined #jython
[19:13] * wmeissner_ (~wmeissner@121.91.4.123) has joined #jython
[19:13] * wmeissner (~wmeissner@121.91.4.123) Quit (Read error: Connection reset by peer)
[19:13] * wmeissner_ is now known as wmeissner
[19:15] * bartelmess (~bartelmes@204.16.200.34) Quit (Ping timeout: 252 seconds)
[19:40] <killfoo> agronholm when using jython -Dkey=value myscript.py to run it, it launches the java process. so far this is ok. but I see that my parameter is not passed to java.
[19:41] <killfoo> do you know a way to achieve this?
[19:41] <killfoo> agronholm oops, wrong. it passed the parameter correctly :/
[19:41] <killfoo> still doesnt work
[19:45] <agronholm> did you try the debugger already?
[19:47] <killfoo> agronholm well I used strace. im not aware of any method to set up a debugger env quickly...
[19:48] <agronholm> strace won't do you much good
[19:48] <agronholm> what debugger env setting up do you need?
[19:48] <killfoo> not more as I found out know I guess
[19:49] <agronholm> just launch your project with "debug..." and set up a breakpoint in the appropriate location
[19:49] <killfoo> well an easy one to install and go. but normally i can work without debuggers. so im not aware ot one
[19:49] <killfoo> agronholm you suggest using eclipse with the jython plugin?
[19:49] <agronholm> what jython plugin?
[19:49] <killfoo> http://www.redrobinsoftware.net/jydt/
[19:49] <agronholm> I've never heard of this
[19:50] <agronholm> seems like it's ancient
[19:50] <agronholm> it only supports up to jython 2.1
[19:50] <killfoo> hm
[19:50] <killfoo> so what do you suggest?
[19:51] <agronholm> set up jython to launch as a java app
[19:51] <agronholm> with your script as the parameter of course
[19:51] <agronholm> then you can use the debug... option
[19:52] <killfoo> ah i see
[19:52] <killfoo> ok ill try
[19:58] * wmeissner (~wmeissner@121.91.4.123) Quit (Quit: wmeissner)
[20:19] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[20:43] * clajo04_ (~clajo04_@pool-74-108-95-112.nycmny.fios.verizon.net) has left #jython
[21:00] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[21:19] * tbartelmess (~bartelmes@204.16.200.34) Quit (Quit: Leaving...)
[21:26] * bartelmess (~bartelmes@204.16.200.34) has joined #jython
[21:40] * bartelmess (~bartelmes@204.16.200.34) Quit (Quit: Leaving...)
[21:42] * bartelmess (~bartelmes@204.16.200.34) has joined #jython
[21:42] <killfoo> agronholm still online?
[21:44] <agronholm> yes
[21:47] <killfoo> agronholm do you know if this is the proper way to set Properties? net.sf.jasperreports.engine.util.JRProperties.setProperty("net.sf.jasperreports.xpath.executer.factory", "net.sf.jasperreports.engine.util.xml.XalanXPathExecuterFactory");
[21:47] <killfoo> it should, according to the docs
[21:47] <agronholm> is that a static method?
[21:48] <killfoo> moment
[21:48] <killfoo> yes, static void (http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/util/JRProperties.html)
[21:49] <agronholm> then I suppose it's the right way
[21:49] <agronholm> I've never needed to do that myself
[21:49] <agronholm> I use jasperreports through py4j
[21:50] <killfoo> i receive the error that no xpath factory is configured then i want to fill the data into the report. so i set the code line before this code. but it has no affect
[21:50] <killfoo> what is the difference between py4j and the execnet gateway?
[21:51] <agronholm> py4j does not require jython
[21:51] <killfoo> nice
[21:51] <agronholm> cpython <-> java vm
[21:51] <agronholm> directly
[21:51] <killfoo> wow, didnt know this. then i wonder, why jython was created..
[21:52] <agronholm> there are things you cannot really do without tight integration
[21:52] <killfoo> so the integration with jython is still better than with py4j?
[21:52] <agronholm> depends on what you do
[21:52] <killfoo> kk
[21:52] <agronholm> or rather, what your app does
[21:53] <killfoo> well all i want is to fill and create a report using the xmldatasource sample from jasperreports
[22:13] <killfoo> agronholm so you use py4j, java 1.6 and jasperreports ? this way you are able to generate pdfs or other files?
[22:32] <agronholm> yes
[22:33] <agronholm> you should know, however, that if you try to transfer the generated files over to python, you need a newer py4j than the official release
[22:35] <killfoo> agronholm thanks a lot. but luckily i dont need that. i just want to store it in a local folder
[22:35] <agronholm> the you should save then with jasper's export manager
[22:35] <agronholm> them
[22:36] <killfoo> thx ill try
[22:46] * bartelmess (~bartelmes@204.16.200.34) Quit (Quit: Leaving...)
[22:47] * bartelmess (~bartelmes@204.16.200.34) has joined #jython
[23:05] * tbartelmess (~bartelmes@204.16.200.34) has joined #jython
[23:05] * bartelmess (~bartelmes@204.16.200.34) Quit (Ping timeout: 255 seconds)
[23:29] * wmeissner (~wmeissner@121.91.4.123) has joined #jython
[23:47] * tbartelmess (~bartelmes@204.16.200.34) Quit (Ping timeout: 260 seconds)
[23:48] * bartelmess (~bartelmes@204.16.200.34) has joined #jython
[23:54] * tbartelmess (~bartelmes@204.16.200.34) has joined #jython
[23:55] * bartelmess (~bartelmes@204.16.200.34) Quit (Ping timeout: 245 seconds)
[23:57] * bartelmess (~bartelmes@204.16.200.34) has joined #jython
[23:58] * bartelmess (~bartelmes@204.16.200.34) Quit (Remote host closed the connection)
[23:58] * bartelmess (~bartelmes@204.16.200.34) has joined #jython
[23:59] * tbartelmess (~bartelmes@204.16.200.34) Quit (Read error: Connection reset by peer)
[23:59] * tbartelmess (~bartelmes@204.16.200.34) has joined #jython

Index

These logs were automatically created by JythonLogBot_ on irc.freenode.net using a slightly modified version of the Java IRC LogBot (github).