Console error when Lucee can't read OSGI bundle info doesn't tell you what jar failed

Description

If an IOException is encountered while reading bundle info for any of Lucee's jar files, you get an exception like this in the console:

java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(Unknown Source) at java.util.zip.ZipFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source) at lucee.loader.osgi.BundleLoader.loadBundleInfo(BundleLoader.java:192) at lucee.loader.osgi.BundleLoader.loadAvailableBundles(BundleLoader.java:182) at lucee.loader.osgi.BundleLoader.loadBundles(BundleLoader.java:118) at lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:363) at lucee.loader.engine.CFMLEngineFactory.initEngineIfNecessary(CFMLEngineFactory.java:262) at lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:168) at lucee.runtime.script.BaseScriptEngineFactory.<init>(BaseScriptEngineFactory.java:59) ...

But the error doesn't tell you what file was being read, making it nearly impossible to debug. I'm sending a pull request that will output the exact file that caused the error to help troubleshoot.

Environment

None

Activity

Show:

Michael Offner 15 October 2020 at 15:45

i took in the PR, but i will keep the ticket open, we should not simply output to the console

https://github.com/lucee/Lucee/commit/a5c59113d01480590f6df02880af2a4f335b117d

Brad Wood 9 October 2020 at 16:29

Sure, but the problem is I don't even know what jar is having the issue! So we need to start with better debugging so I can tell what jar it is. I think the issue ultimately is antivirus on my users' machines that block jar files. But I need the improved debugging to know where to start looking the next time it happens.

Michael Offner 9 October 2020 at 13:40

maybe we should consider trying to resolve the problem in that case and not ignore it.

Details

Assignee

Reporter

Priority

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 8 October 2020 at 03:55
Updated 15 October 2020 at 15:45

Flag notifications