> Hi again everyone. I've sent a previous email which is related to
> this. My question this time is, how do I find exactly what to fix in
> my scripts when I get this error?
> Exception in thread "Thread-4" Traceback (innermost last):
> (no code object) at line 0
> java.io.IOException: java.io.IOException: Write failed
> As you can see, it just says 'line 0' and doesn't tell me which
> line/script caused it. At least, can anyone give me some idea on what
> I should be looking for? This has never happened in Jython2.2b2 (and I
> haven't done any major changes to my scripts since then).
Hmm, that's odd.
The only time I've seen a stack trace give line 0 is when using exec to
execute a string containing jython commands, like this
Jython 2.2rc1 on java1.4.2_13
Type "copyright", "credits" or "license" for more information.
>>> code = compile("raise Exception()", "<>", "exec")
<code object ? 1, file "<>", line 0>
>>> exec code
Traceback (innermost last):
File "<console>", line 1, in ?
File "<>", line 1, in ?
Are you using compile, exec or eval in your code?
If that's not it, I can't think of any other reason why you would not
get a full traceback.