This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When working with JSPs, I sometimes get the following error message or similar error message when editing and especially when executing a jsp. This also happened when I was using Sun ONE Studio, although it has happened less often in NetBeans so far. (I tried to use NetBeans because I was getting the error message so often in Sun ONE Studio.) This happens with any of my jsps, not just specific ones. It is not reproducible on demand but rather just happens periodically on one PC. Have never experienced the problem on another PC but have reinstalled both NetBeans and Sun ONE Studio to no avail. Both PCs have the same OS build. I can click through the error messages and edit or execute the files but it has become quite an annoying problem. Annotation: Exception occurred in Request Processor java.lang.InternalError: jzentry == 0, jzfile = 390708000, total = 55, name = C:\TogetherSoft\Together6.0.1 \myprojects\Reagents\Reagent_Management\src\jsp\WEB- INF\lib\reagentsPC.jar, i = 21, message = invalid LOC header (bad signature) at java.util.zip.ZipFile$2.nextElement (ZipFile.java:309) at java.util.jar.JarFile$1.nextElement (JarFile.java:201) at org.apache.jasper.compiler.TldLocationsCache.tldConfigJar (TldLocationsCache.java:237) at org.apache.jasper.compiler.TldLocationsCache.processJars (TldLocationsCache.java:210) at org.apache.jasper.compiler.TldLocationsCache.<init> (TldLocationsCache.java:139) at org.netbeans.modules.web.jspparser.WMDataCache.getTldLocati onsCache(WMDataCache.java:96) at org.netbeans.modules.web.jspparser.OptionsImpl.<init> (OptionsImpl.java:55) at org.netbeans.modules.web.jspparser.OptionsImpl.<init> (OptionsImpl.java:48) at org.netbeans.modules.web.jspparser.JspParserImpl.parsePage (JspParserImpl.java:103) at org.netbeans.modules.web.core.jsploader.TagLibParseSupport$ ParsingRunnable.run(TagLibParseSupport.java:121) at org.openide.util.Task.run(Task.java:136) [catch] at org.openide.util.RequestProcessor$Processor.run (RequestProcessor.java:599)
reassigne to web for investigation ...
Is it possible that 'C:\TogetherSoft\Together6.0.1 \myprojects\Reagents\Reagent_Management\src\jsp\WEB- INF\lib\reagentsPC.jar' file is correputed. Regardless if it is or is not we need better error recovery issuch case.
Can you please check whether the jar file is corrupted (using WinZip or similar), and whether the application can be correctly executed on standalone Tomcat ? Thanks, Petr.
jar file is not corrupted when opening using Winzip. I also deleted the jar and recreated it with a new name and received the error message on the new jar. Application also ran successfully on standalone Tomcat. Richard
It's not the first bug report about this problem. Petr, Radim, see Issue 31573 and related issue 31938, we need to isolate the problem. Richard, do you use CVS for storing JAR file?
Can you please also attach your IDE log file ? Which version of the JDK are you using ? There are some JDK bugs which look related, namely 4725265 and 4731870. Thanks.
Created attachment 9472 [details] ide.log showing Invalid LOC bad signature error
Adding all related comments from Richard to issue 31573 as it has the same symptoms. Richard, thanks for your input so far. Please continue to watch the issue 31573 (I've added you on CC list). You can also vote for this bug to get the bug promoted. *** This issue has been marked as a duplicate of 31573 ***