Issue1465

classification
Title: manage.py fails on startapp command
Type: crash Severity: normal
Components: Versions: 2.5.1
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, jfenwick
Priority: Keywords:

Created on 2009-09-12.17:03:35 by jfenwick, last changed 2009-09-13.07:26:51 by cgroves.

Messages
msg5139 (view) Author: Jacob Fenwick (jfenwick) Date: 2009-09-12.17:03:34
Using: jython 2.5.1 rc1 on Windows XP with Django 1.0.3.

If you run the startapp command from manage.py you get the following error:

C:\p\pollsite>jython manage.py startapp polls
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File
"C:\p\jython2.5.1rc1\Lib\site-packages\django-1.0.3-py2.5.egg\django\core
\management\__init__.py", line 359, in execute_manager
    setup_environ(settings_mod)
  File
"C:\p\jython2.5.1rc1\Lib\site-packages\django-1.0.3-py2.5.egg\django\core
\management\__init__.py", line 342, in setup_environ
    project_module = __import__(project_name, {}, {}, [''])
java.lang.ArrayIndexOutOfBoundsException: 2560
        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:155)
        at org.python.core.imp.createFromPyClass(imp.java:121)
        at org.python.core.imp.loadFromSource(imp.java:505)
        at org.python.core.imp.find_module(imp.java:411)
        at org.python.core.imp.import_next(imp.java:635)
        at org.python.core.imp.import_name(imp.java:746)
        at org.python.core.imp.importName(imp.java:806)
        at org.python.core.ImportFunction.__call__(__builtin__.java:1232)
        at org.python.core.PyObject.__call__(PyObject.java:451)
        at org.python.core.PyObject.__call__(PyObject.java:457)
        at
django.core.management$py.setup_environ$16(C:\p\jython2.5.1rc1\Lib\si
te-packages\django-1.0.3-py2.5.egg\django\core\management\__init__.py:345)
        at
django.core.management$py.call_function(C:\p\jython2.5.1rc1\Lib\site-
packages\django-1.0.3-py2.5.egg\django\core\management\__init__.py)
        at org.python.core.PyTableCode.call(PyTableCode.java:165)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:297)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:124)
        at org.python.core.PyFunction.__call__(PyFunction.java:317)
        at
django.core.management$py.execute_manager$18(C:\p\jython2.5.1rc1\Lib\
site-packages\django-1.0.3-py2.5.egg\django\core\management\__init__.py:361)
        at
django.core.management$py.call_function(C:\p\jython2.5.1rc1\Lib\site-
packages\django-1.0.3-py2.5.egg\django\core\management\__init__.py)
        at org.python.core.PyTableCode.call(PyTableCode.java:165)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:297)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:124)
        at org.python.core.PyFunction.__call__(PyFunction.java:317)
        at org.python.pycode._pyx2.f$0(manage.py:11)
        at org.python.pycode._pyx2.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:1204)
        at
org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:200
)
        at org.python.util.jython.run(jython.java:246)
        at org.python.util.jython.main(jython.java:129)

java.lang.ArrayIndexOutOfBoundsException:
java.lang.ArrayIndexOutOfBoundsException: 2560
msg5140 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-09-12.17:43:55
This is a known bug that needs to be fixed on the Django side.  It is
fixed in their 1.1 development, but looks like they are not planning to
fix it in 1.0.  See: http://code.djangoproject.com/ticket/11621 for details.
msg5141 (view) Author: Jacob Fenwick (jfenwick) Date: 2009-09-12.18:19:59
Should <a href="http://code.djangoproject.com/changeset/11483">Changeset
11483</a> fix this problem? I applied the changeset but the problem
persists.
msg5142 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-09-12.18:48:39
Did you delete all of the .class files in projects/apps?  If that
doesn't fix your problem, then it may be a new problem
msg5143 (view) Author: Jacob Fenwick (jfenwick) Date: 2009-09-12.19:55:20
I deleted all the .class files in pollsite and that fixed the problem.

Thanks.
History
Date User Action Args
2009-09-13 07:26:51cgrovessetstatus: open -> closed
resolution: invalid
2009-09-12 19:55:21jfenwicksetmessages: + msg5143
2009-09-12 18:48:39fwierzbickisetmessages: + msg5142
2009-09-12 18:19:59jfenwicksetmessages: + msg5141
2009-09-12 17:43:55fwierzbickisetnosy: + fwierzbicki
messages: + msg5140
2009-09-12 17:03:35jfenwickcreate