Message3280

Author pzack
Recipients pzack
Date 2008-06-13.19:21:04
SpamBayes Score 0.0027847183
Marked as misclassified No
Message-id <1213384865.28.0.638619995846.issue1055@psf.upfronthosting.co.za>
In-reply-to
Content
I'm running Windows XP
Jython version 2.2.2 
When I use Java 6.0 update 5 everything is fine
When I use Java 6.0 update 6, I get this error:

error importing site
Traceback (innermost last):
  File "C:\home\dev\lib\Lib\site.py", line 73, in ?
  File "C:\home\dev\lib\Lib\site.py", line 63, in makepath
  File "C:\home\dev\lib\Lib\javapath.py", line 110, in join
  File "C:\home\dev\lib\Lib\javapath.py", line 27, in _tostr
TypeError: join() argument must be a str or unicode object, not
'NoneType' object




This appears to be a failure of Jar files to keep track of their own
__file__ names (They are set to null).  

I was able to find a fix by modifying PyJavaPackage.java

Here is the original Java code (Note the comment in the code! Did this
change in update 6?):

            // this code is ok here, because this is not needed for
            // a top level package
            if (jarfile == null || !jarfile.equals(p.__file__))
        	p.__file__ = null;


Here is my work around:
            // this code is ok here, because this is not needed for
            // a top level package
            if (jarfile == null || !jarfile.equals(p.__file__))
        	p.__file__ = jarfile;

Has anyone else used update 6?  Is there an easy work around?
History
Date User Action Args
2008-06-13 19:21:05pzacksetspambayes_score: 0.00278472 -> 0.0027847183
recipients: + pzack
2008-06-13 19:21:05pzacksetspambayes_score: 0.00278472 -> 0.00278472
messageid: <1213384865.28.0.638619995846.issue1055@psf.upfronthosting.co.za>
2008-06-13 19:21:05pzacklinkissue1055 messages
2008-06-13 19:21:04pzackcreate