Issue1717327

classification
Title: "no code object" error message when running from latest src
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, davidhandy
Priority: normal Keywords:

Created on 2007-05-11.16:42:21 by davidhandy, last changed 2007-05-14.15:50:33 by davidhandy.

Messages
msg1585 (view) Author: David R. Handy (davidhandy) Date: 2007-05-11.16:42:21
I have been successfully running Jython 2.2b1 compiled from source obtained via subversion.

After the announcement of the 2.2b2 release, I tried getting the latest code via subversion this morning (Fri 11 May 2007) and compiling and running it.

I got this message in the console:

*sys-package-mgr*: processing modified jar, 'C:\home\davhan\src\jython_svn\jython\dist\jython.jar'
Exception in thread "main" Traceback (innermost last):
  (no code object) at line 0

I tried hacking org/python/util/jython.java a little bit to see what was crashing. This call is the culprit:

        // Setup the basic python system state from these options
        PySystemState.initialize(PySystemState.getBaseProperties(),
                                 opts.properties, opts.argv);

It crashes right there. I haven't yet traced it any further.

I tried downloading the official 2.2b2 installer and installing it -- that version ran Ok for me.
msg1586 (view) Author: Charlie Groves (cgroves) Date: 2007-05-11.17:15:46
That's quite odd since there haven't been any commits made since I tagged 2.2b2.  The trunk should be identical to the code in the installer.  

Please add -Dpython.options.showJavaExceptions=true in your invocation(or just set showJavaExceptions to true in org.python.core.Options.java) and that "no code object" exception should give us an actual Java stack trace.  Post that here and I'll try to track down what's going on.
msg1587 (view) Author: David R. Handy (davidhandy) Date: 2007-05-14.15:50:33
False alarm. The problem was apparently cause by stuff (old class files?) left around from a previous build. When I did "ant clean" and then re-built Jython, everything worked Ok.
History
Date User Action Args
2007-05-11 16:42:21davidhandycreate