Hi Massimo,
I ran web2py 16.7.2 on jython2.5.1/Sun java 1.6.0_11/Win XP without a
problem after changing nodelay to False. Now suddenly I get this
recursion error. I haven't changed anything but then again one never
knows what changes the admins push to one's machine in a corporate
environment. Any idea why it should suddenly stop working? Are there
any files generated perhaps, that could cause the problem and that I
could delete? This comes at a bad time of course as I need to demo our
web2py app on Friday and we use some Java for SOAP/WSDL stuff as
SOAPpy is not up for it. Stress :-)
Thanks,
HC
> > > > > This isJython2.5.1 fresh install, 1.71.2 fresh install with only the
> > > > > changes I've mentioned in this post. There are no bugs for this in
> > > > >Jythonas the answer has always been "just increase therecursion
> > > > >depth". I've tried setting therecursiondepthto something
> > > > > ridiculously high and that made no difference.
>
> > > > > Can anyone else confirm/deny this? I'm testing on Windows, can we get
> > > > > a Linux user to test this?
>
> > > > > -tim
>
> > > > > On Nov 9, 10:00 am, mdipierro <
mdipie...@cs.depaul.edu> wrote:
>
> > > > > > I cannot reproduce this with jython2.5rc3 on mac.
>
> > > > > > On Nov 9, 9:52 am, Timbo <
tfarr...@swgen.com> wrote:
>
> > > > > > > No need, it blows up for me on the admin interface. I have no special
> > > > > > > customizations. I'm trying this on Sun JRE6/Jython2.5.1 on WinXP.
>
> > > > > > > On Nov 9, 8:34 am, mdipierro <
mdipie...@cs.depaul.edu> wrote:
>
> > > > > > > > Can you send me the view that creates the regex problem inJython. I
> > > > > > > > have seen it before and I thought it was fixed.
>
> > > > > > > > On Nov 9, 7:53 am, Timbo <
tfarr...@swgen.com> wrote:
>
> > > > > > > > >Jythondoes support TCP_NODELAY, but it does so in the Java
> > > > > > > > > fashion...that is to say only on a client socket. The short story is
> > > > > > > > > this: most platforms allow you to set socket options to server
> > > > > > > > > (accepting) sockets and the accepted (client) sockets that come from
> > > > > > > > > them inherit the options from the server socket. This varies based on
> > > > > > > > > platform. Some platforms inherit all options, some just TCP_NODELAY.
> > > > > > > > > Java is a little different in that it inherits none and consequently
> > > > > > > > > it does not allow setting TCP_NODELAY to a server socket.
>
> > > > > > > > > The good news is that it does support it on the client socket it just
> > > > > > > > > that you have to socket.setsockopt() on the client connection after
> > > > > > > > > you accept it. This behavior is currently up for debate right now
> > > > > > > > > withJython. Seehttp://
bugs.jython.org/issue1309
>
> > > > > > > > > Now the blocker that I ran into withJython+ web2py is the template
> > > > > > > > > module. web2py templates rely heavily on regexps. This is great
> > > > > > > > > because it makes them fast...butJythondoes something different with
> > > > > > > > > cPython such that everytime I try to render a template, I get a
> > > > > > > > > "Recursionlimitexceedederror". Maybe Regexps are not the same in
> > > > > > > > > Java as in Python (Perl). This is one I haven't been able to track
> > > > > > > > > down.
>
> > > > > > > > > Java (and henceJython) is great from a concurrency perspective since
> > > > > > > > > it is fully multi-threaded whereas cPython has the GIL to deal with.
> > > > > > > > > It would be awesome if we could find a happy marriage between web2py
> > > > > > > > > templates andJython.
>
> > > > > > > > > -tim
>
> > > > > > > > > On Nov 9, 3:04 am, Vasile Ermicioi <
elff...@gmail.com> wrote:
>
> > > > > > > > > > I have to convince someone that python is better than Java (and even can
> > > > > > > > > > work with Java) -
> > > > > > > > > >Jython+Web2py is my best argument :)
>
> > > > > > > > > > On Mon, Nov 9, 2009 at 8:38 AM, mdipierro <
mdipie...@cs.depaul.edu> wrote:
>
> > > > > > > > > > > I changed it in trunk so that it is automatic and now (again) web2py
> > > > > > > > > > > works withJythonout of the box. I have email the author of
> > > > > > > > > > > wsgiserver hoping this is fixed in the official distribution.
>
> > > > > > > > > > > On Nov 8, 1:56 pm, mdipierro <
mdipie...@cs.depaul.edu> wrote:
> > > > > > > > > > > >jythondoes not seem to support socket option no_delay. In gluon/
> > > > > > > > > > > > wsgiserver.py replace
>
> > > > > > > > > > > > nodelay = True
>
> > > > > > > > > > > > with
>
> > > > > > > > > > > > nodelay = False
>
> > > > > > > > > > > > Massimo
>
> > > > > > > > > > > > On Nov 8, 1:48 pm, Nik <
nitral...@googlemail.com> wrote:
>
> > > > > > > > > > > > > Hi folks,
>
> > > > > > > > > > > > > For testing web2py withjythonI have started it
> > > > > > > > > > > > > by executing "jythonweb2py.py" and got the following
> > > > > > > > > > > > > error message:
>
> > > > > > > > > > > > > ==================================================================
> > > > > > > > > > > > > saturn:web2py_1.71.2 nik$jythonweb2py.py
> > > > > > > > > > > > > WARNING:root:no file locking
> > > > > > > > > > > > > WARNING:root:unable to import dbhash
> > > > > > > > > > > > > WARNING:root:GUI not available because Tk library is not installed
> > > > > > > > > > > > > default applications appear to be installed already
> > > > > > > > > > > > > web2py Enterprise Web Framework
> > > > > > > > > > > > > Created by Massimo Di Pierro, Copyright 2007-2009
> > > > > > > > > > > > > Version 1.71.2 (2009-11-04 15:48:54)
> > > > > > > > > > > > > Database drivers available:
> > > > > > > > > > > > > Starting cron...
> > > > > > > > > > > > > choose a password:********
> > > > > > > > > > > > > please visit:
> > > > > > > > > > > > >
http://127.0.0.1:8000
> > > > > > > > > > > > > use "kill -SIGTERM 949" to shutdown the web2py server
> > > > > > > > > > > > > Traceback (most recent call last):
> > > > > > > > > > > > > File "web2py.py", line 20, in <module>
> > > > > > > > > > > > > gluon.widget.start(cron=True)
> > > > > > > > > > > > > File
>
> ...
>
> Erfahren Sie mehr »