Leo Soto M. | 13 Aug 15:59

Re: Problems with jython trunk and django 1.0 alpha 2

On Wed, Aug 13, 2008 at 1:59 AM, Rafael Ferreira <raf <at> ophion.org> wrote:
> On Mon, Aug 11, 2008 at 10:16 PM, Leo Soto M. <leo.soto <at> gmail.com> wrote:
> > On Tue, Aug 12, 2008 at 1:03 AM, Rafael Ferreira <raf <at> ophion.org> wrote:

[...]

> > > but when I go to run the build in developer server I get the
> > > following:
> > >
> > > rafael-mb:dj rafael$ 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.
> > > java.lang.ArrayIndexOutOfBoundsException: 51201
> > > 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.APIReader.<init>(APIReader.java:33)
> >
> > I think that this may be caused by some old *$py.class files. Can you
> > try to clean up all the generated $py.class files and run the server
> > again?
>
> so rm *class did the trick. The interesting thing tho is that if I run
>  "jython manage.py startapp blah" everything work just fine but I'm forced to
>  delete all the .class files again before being able to fire up runserver".
> Go figure..

That's weird, I can't reproduce this on my system. Not that I know how
to solve it, but I would try to do "svn up; ant clean; ant" to make
(Continue reading)


Gmane