Error with runserver using jython

70 views
Skip to first unread message

Brandon Taylor

unread,
Jul 31, 2009, 9:46:07 AM7/31/09
to Django users
Hi everyone,

I created a new project through jython/django-admin.py and now I'm
receiving this error when attempting to start the development server
using jython...

iMac:musaic bt$ jython manage.py runserver
Traceback (most recent call last):
File "manage.py", line 4, in <module>
import settings # Assumed to be in the same directory.
File "manage.py", line 4, in <module>
import settings # Assumed to be in the same directory.
java.lang.ArrayIndexOutOfBoundsException: 12840
at org.python.objectweb.asm.ClassReader.readClass(Unknown Source)
at org.python.objectweb.asm.ClassReader.accept(Unknown Source)
at org.python.objectweb.asm.ClassReader.accept(Unknown Source)
at org.python.core.AnnotationReader.<init>(AnnotationReader.java:44)
at org.python.core.imp.readCode(imp.java:154)
at org.python.core.imp.createFromPyClass(imp.java:120)
at org.python.core.imp.loadFromSource(imp.java:504)
at org.python.core.imp.find_module(imp.java:410)
at org.python.core.imp.import_next(imp.java:620)
at org.python.core.imp.import_name(imp.java:731)
at org.python.core.imp.importName(imp.java:791)
at org.python.core.ImportFunction.__call__(__builtin__.java:1236)
at org.python.core.PyObject.__call__(PyObject.java:367)
at org.python.core.__builtin__.__import__(__builtin__.java:1207)
at org.python.core.__builtin__.__import__(__builtin__.java:1190)
at org.python.core.imp.importOne(imp.java:802)
at org.python.pycode._pyx0.f$0(manage.py:11)
at org.python.pycode._pyx0.call_function(manage.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1197)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:
166)
at org.python.util.jython.run(jython.java:229)
at org.python.util.jython.main(jython.java:117)

java.lang.ArrayIndexOutOfBoundsException:
java.lang.ArrayIndexOutOfBoundsException: 12840

My project structure is simply:

~/jython_django_projects/
__init__.py
manage.py
settings.py
urls.py

Thoughts?
Brandon

fwierzbicki

unread,
Jul 31, 2009, 12:21:07 PM7/31/09
to Django users


On Jul 31, 9:46 am, Brandon Taylor <btaylordes...@gmail.com> wrote:
> Hi everyone,
>
> I created a new project through jython/django-admin.py and now I'm
> receiving this error when attempting to start the development server
> using jython...
This is a known bug on Jython, but we haven't gotten to the bottom of
it yet. See http://bugs.jython.org/issue1262 to see how we are
progressing...

-Frank

Brandon

unread,
Jul 31, 2009, 12:53:09 PM7/31/09
to Django users
If I trash the .class files created by startproject, I can
successfully run the built-in server after the classes are re-
compiled.
> it yet.  Seehttp://bugs.jython.org/issue1262to see how we are
> progressing...
>
> -Frank
Reply all
Reply to author
Forward
0 new messages