django development server problems on latest jython

Alex Kasko <[email protected]>
Newsgroups gmane.comp.lang.jython.devel
Message-ID <[email protected]>
Hi,

I have problems with django development server on latest jython built 
from tip.

The problems seem to be related to issue 2192 [1] but the symptoms are 
different - server stops receiving connections after a while.

Repro steps:

1) build jython from tip (7a96264b09ab+ tip), install it, setup JYTHON_HOME

2) install setuptools, django-1.7 and django-jython-1.7.0b2

     $ wget 
https://pypi.python.org/packages/source/s/setuptools/setuptools-5.7.tar.gz
     $ tar xzvf setuptools-5.7.tar.gz && cd setuptools-5.7 && jython 
setup.py install
     $ jython $JYTHON_HOME/bin/easy_install django
     $ jython $JYTHON_HOME/bin/easy_install django-jython

3) patch django getcallargs problem [2], [3]

     $ wget 
https://gist.githubusercontent.com/alexkasko/e78e3b9fc70590207c67/raw/57568cb4bd2510da416ef7955663a75356cc26ae/django_basepy_getcallargs.patch
     $ patch 
$JYTHON_HOME/Lib/site-packages/Django-1.7-py2.7.egg/django/template/base.py 
django_basepy_getcallargs.patch

4) create django project and setup it to use django-jython sqlite 
backend [4]

     $ jython $JYTHON_HOME/bin/django-admin.py startproject test1
     $ cd test1 # note, there are two levels of test1 dirs
     $ mv test1/settings.py test1/settings.py.bak
     $ sed -e 's/django.db.backends.sqlite3/doj.db.backends.sqlite/g' 
test1/settings.py.bak > test1/settings.py

5) download sqlite jdbc driver, create tables in db and start 
development server

     $ wget 
https://bitbucket.org/xerial/sqlite-jdbc/downloads/sqlite-jdbc-3.7.15-M1.jar
     $ jython -J-cp sqlite-jdbc-3.7.15-M1.jar manage.py syncdb
     $ jython -J-cp sqlite-jdbc-3.7.15-M1.jar manage.py runserver

On browser access to http://127.0.0.1:8000/admin url server will hang 
after some pages with "RejectedExecutionException: event executor 
terminated" in console, full stacktrace is here [5]

I am running OpenJDK 7 update 60 on debian linux x86_64.

Please let me know if this is duplicate/needs to be filed as a bug/needs 
more information/belongs to user's list etc.

Thanks.


[1] http://bugs.jython.org/issue2192
[2] http://bugs.jython.org/issue2184
[3] 
https://github.com/beachmachine/django/commit/1c6104cb8f395bfa344da035b5b78c30a6037a9d
[4] https://pythonhosted.org/django-jython/database-backends.html#sqlite3
[5] https://gist.github.com/alexkasko/188047be077aecce4faa

-- 
-Alex

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.