Summary: | ClassFormatException when adding library | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Frederic <feniks> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED NOT_ECLIPSE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | eclipse, Olivier_Thomann |
Version: | 3.3.1 | ||
Target Milestone: | 3.4 M7 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Frederic
2008-03-18 14:50:30 EDT
I've checked this on the on of the latest Ganymede builds. I do not get an error, but a warning: eclipse.buildId=I20071213-1700 java.version=1.6.0_01 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en Command-line arguments: -os win32 -ws win32 -arch x86 -clean Warning Tue Mar 18 19:55:19 CET 2008 The Java indexing could not index C:/javadev/tools/bea/10.0MP1/wlserver_10.0/server/lib/webserviceclient+ssl.jar|weblogic/utils/io/ChunkManager.class. This .class file doesn't follow the class file format specification. Please report this issue against the .class file vendor So I think the problem has been solved in the meanwhile, assuming the class is really not conform the class file format specification. I'll file this issue to BEA. I need access to the two .class files: C:/javadev/tools/bea/10.0MP1/wlserver_10.0/server/lib/webserviceclient+ssl.jar|javax/mail/internet/MimeUtility$1$NullInputStream.class. and C:/javadev/tools/bea/10.0MP1/wlserver_10.0/server/lib/webserviceclient+ssl.jar|weblogic/utils/io/ChunkManager.class for further investigation. Dropping severity as I don't believe this is a problem with Eclipse as long as I cannot check the two .class files. All previous errors of this kind ended up being corrupted .class files. (In reply to comment #1) > So I think the problem has been solved in the meanwhile, assuming the class is > really not conform the class No, the problem has not been solved. We simply report it differently as we encountered this case too many times. I need access to the two .class files otherwise this bug will be closed as INVALID. Without the .class files, I cannot do any further investigation. Looking at webserviceclient+ssl.jar from the specified version of BEA WebLogic Server, I see that those two files are zero length. I am not sure how a zero-length class file officially should be treated, but ClassFormatException doesn't seem inappropriate. This sounds like a BEA problem, not an Eclipse problem. (In reply to comment #5) I confirm, both class files have zero length. So this seems indeed a BEA issue. OK for me to close this bug. Closing as NOT_ECLIPSE. There is something wrong with the two .class files. Walter, I think it is perfectly legitimate to report a ClassFormatException in this case as we try to read a .class file and we don't recognize its structure. Verified for 3.4M7 using I20080429-0100 |