Community
Participate
Working Groups
I re-created a jar file (using an ant script). Then I copied that jar over the one I wanted to replace. Then I refreshed the jar file from the resource view. At that point, I get a dialog box titled "Refresh Problems" with the message jzentry == 0 Attempting to refresh again results in the same message. Restarting Eclipse fixes the problem. Additionally, trying to regenerate the jar (running the ant script again) *after* refreshing also results in the same message with the attached stack trace. Multiple regenerations *without* refreshing does not result in an error. Note: The jar generated by the ant script is not attempting to overwrite the file that is refreshed, nor is it overwriting a jar on any buildpath. Also, I did not experience this problem with RC2.
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