Summary: | refreshing a library results in jzentry==0 failure message | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Kevin Klinemeier <zipwow> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | RESOLVED WORKSFORME | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | ||||||
Version: | 2.1 | ||||||
Target Milestone: | 3.0 M2 | ||||||
Hardware: | PC | ||||||
OS: | Windows 2000 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Kevin Klinemeier
2003-04-22 18:46:41 EDT
Created attachment 4674 [details]
Stack trace from ant task failure
This is the output from the ant task, when run after the refresh attempt.
Are you sure you JAR isn't corrupted ? I'm pretty sure its not corrupt, I can open it with WinZip and restarting Eclipse allows me to build just fine. And, this whole thing is completely reproduceable, I can make it happen at will. I haven't yet tried it with jars I'm not making myself, being short on alternate versions for the ones in my current project. Can you also reproduce it using another JRE to run Eclipse on ? I remember some JRE bug in the same area. Could you please give exact steps to reproduce from an empty workspace? Thanks. Could you please try it with logging access to zip file in the java model? Open the .options file of the org.eclipse.jdt.core plugin and change the last line to: # Reports access to zip and jar files through the Java model org.eclipse.jdt.core/debug/zipaccess=true Then restart Eclipse with -debug -consolelog on the command line before the -vmargs option if you have one. Then send us the .log file contents. Thanks. Please provide the requested information. Request: Can you also reproduce it using another JRE to run Eclipse on ? I remember some JRE bug in the same area. How do I change the jre Eclipse runs on? Request: Could you please give exact steps to reproduce from an empty workspace? Thanks. The primary thing you'll need is an ant script that generates jarfiles. I only have the one, I've attached it. It uses Castor to make some source files, then uses the compiled version of those files to create the jar in question. Set up your project to include the jar in its required libraries. Use your ant script to re-generate the jar in some temporary folder. Copy the jar over the one eclipse expects. Instruct Eclipse to refresh the now-replaced jar. Receive the message. Request: Open the .options file of the org.eclipse.jdt.core plugin and change the last line to: Er, which? Where is this file located? I'm not familiar with the file structure. Go to your eclipse installation dir and go to the folder plugins/org.eclipse.jdt.core. In this folder you will find a .option file that you need to modify as specified in comment 6. Don't forget to start eclipse in debug mode and open a console to be sure you get the error message. Thanks. Once we understand why you get this error, we might be able to fix it. I've picked up a new version since logging this bug, and now I can't duplicate it. Whether I fixed some configuration quirkiness, or some other fix fixed this, I don't know. Don't hesitate to reopen it if you see it again. Thanks for your feedback. Changed milestone |