From: SourceForge.net <no...@so...> - 2007-04-24 14:30:15
|
Bugs item #1642285, was opened at 2007-01-23 04:04 Message generated for change (Comment added) made by fwierzbicki You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1642285&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: targeted for 2.2beta2 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Leo Sakaguchi (leo_sakaguchi) Assigned to: Frank Wierzbicki (fwierzbicki) Summary: Some jar files fail to generate cache Initial Comment: Not all, but some jar files fail to generate cache. For example, following jar is a jar file of WebLogic 9.2: C:\jython-2.2a1>set CLASSPATH=C:\bea\weblogic92\server\lib\webserviceclient.jar C:\jython-2.2a1>jython.bat *sys-package-mgr*: processing new jar, 'C:\bea\weblogic92\server\lib\webserviceclient.jar' *sys-package-mgr*: skipping bad jar, 'C:\bea\weblogic92\server\lib\webserviceclient.jar' Jython 2.2a1 on java1.5.0_06 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> _ Haven't debugged throughly, but it seems that EOFException is happening at the beginning of org.python.core.PackageManager#checkAccess() at line 166 (int magic = istream.readInt()). So a quick fix is that let checkAccess() return -1 when the EOFException happened. After the quick fix, I don't see the "skipping bad jar" error message anymore. I'm not sure webserviceclient.jar is redistributable. In case you want to reproduce, please download WebLogic Platform 9.2 from BEA (http://commerce.bea.com/products/weblogicplatform/weblogic_prod_fam.jsp). ---------------------------------------------------------------------- >Comment By: Frank Wierzbicki (fwierzbicki) Date: 2007-04-24 10:30 Message: Logged In: YES user_id=193969 Originator: NO The problem occurs because webserviceclient.jar contains at least one .class file (weblogic/utils/io/ChunkManager.class) that is completely empty. I think skipping such aberrant classes makes perfect sense, and I believe returning -1 from checkAccess will have that result, but will need to investigate a little further before I commit a fix. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1642285&group_id=12867 |