Message4964

Author crankycoder
Recipients crankycoder, jars, leosoto, zyasoft
Date 2009-07-30.18:06:48
SpamBayes Score 6.698288e-07
Marked as misclassified No
Message-id <1248977210.0.0.537179301711.issue1262@psf.upfronthosting.co.za>
In-reply-to
Content
I can reliably reproduce this problem with the following set of tools:

Jython 2.5.0 release, Java 1.6.0_07-b06, django-jython svn rev 107,
Django 1.0.2-svn rev 9503 (from
http://code.djangoproject.com/svn/django/tags/releases/1.0.2/ - not the
1.0.x branch). This is on WinXP sp2.

---

C:\dev\java-world>jython c:\jython2.5\bin\django-admin.py startproject foo

C:\dev\java-world>cd foo

C:\dev\java-world\foo>javap settings$py
java.lang.ClassFormatError: invalid constant type: 13
        at sun.tools.javap.ClassData.readCP(ClassData.java:180)
        at sun.tools.javap.ClassData.read(ClassData.java:81)
        at sun.tools.javap.ClassData.<init>(ClassData.java:52)
        at sun.tools.javap.JavapPrinter.<init>(JavapPrinter.java:30)
        at sun.tools.javap.Main.displayResults(Main.java:201)
        at sun.tools.javap.Main.perform(Main.java:61)
        at sun.tools.javap.Main.entry(Main.java:49)
        at sun.tools.javap.Main.main(Main.java:34)
ERROR:fatal error
Exception in thread "main" java.lang.NullPointerException
        at sun.tools.javap.JavapPrinter.javaclassname(JavapPrinter.java:856)
        at
sun.tools.javap.JavapPrinter.printclassHeader(JavapPrinter.java:62)
        at sun.tools.javap.JavapPrinter.print(JavapPrinter.java:38)
        at sun.tools.javap.Main.displayResults(Main.java:202)
        at sun.tools.javap.Main.perform(Main.java:61)
        at sun.tools.javap.Main.entry(Main.java:49)
        at sun.tools.javap.Main.main(Main.java:34)

C:\dev\java-world\foo>

---

Running the WAR command seems to intermittently generate corrupt
versions of settings$py.class, but I can't reproduce it consistently. 
Generating a new project *always* creates corrupt class files for me.
History
Date User Action Args
2009-07-30 18:06:50crankycodersetmessageid: <1248977210.0.0.537179301711.issue1262@psf.upfronthosting.co.za>
2009-07-30 18:06:50crankycodersetrecipients: + crankycoder, leosoto, zyasoft, jars
2009-07-30 18:06:49crankycoderlinkissue1262 messages
2009-07-30 18:06:48crankycodercreate