Java error each time box is started.

9 views
Skip to first unread message

Steven Durette

unread,
Oct 7, 2020, 8:43:55 PM10/7/20
to comma...@ortussolutions.com
Hi,

Every time I start commandbox, I get a java error message.  I've completely uninstalled and reinstalled commandbox both with and without java.  I've also uninstalled and reinstalled java on my machine.  Not sure why this is happening.

Here is everything that comes up when I start:

PS D:\Developer\websites\<REDACTED>> box
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)
        at lucee.runtime.script.LuceeScriptEngineFactory.<init>(LuceeScriptEngineFactory.java:27)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        at java.util.ServiceLoader$LazyIterator.nextService(Unknown Source)
        at java.util.ServiceLoader$LazyIterator.next(Unknown Source)
        at java.util.ServiceLoader$1.next(Unknown Source)
        at javax.script.ScriptEngineManager.initEngines(Unknown Source)
        at javax.script.ScriptEngineManager.init(Unknown Source)
        at javax.script.ScriptEngineManager.<init>(Unknown Source)
        at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:303)
        at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:153)
        at cliloader.LoaderCLIMain.main(LoaderCLIMain.java:552)
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)
        at lucee.runtime.script.LuceeScriptEngineFactory.<init>(LuceeScriptEngineFactory.java:27)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        at java.util.ServiceLoader$LazyIterator.nextService(Unknown Source)
        at java.util.ServiceLoader$LazyIterator.next(Unknown Source)
        at java.util.ServiceLoader$1.next(Unknown Source)
        at javax.script.ScriptEngineManager.initEngines(Unknown Source)
        at javax.script.ScriptEngineManager.init(Unknown Source)
        at javax.script.ScriptEngineManager.<init>(Unknown Source)
        at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:303)
        at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:153)
        at cliloader.LoaderCLIMain.main(LoaderCLIMain.java:552)

   ______                                          ______
  / ____/___  ____ ___  ____ ___  ____ _____  ____/ / __ )____  _  __
 / /   / __ \/ __ `__ \/ __ `__ \/ __ `/ __ \/ __  / __  / __ \| |/_/
/ /___/ /_/ / / / / / / / / / / / /_/ / / / / /_/ / /_/ / /_/ />  <
\____/\____/_/ /_/ /_/_/ /_/ /_/\__,_/_/ /_/\__,_/_____/\____/_/|_| (R)  v5.1.1+00191

                            No ASCII Art was harmed in the making of this CLI

Welcome to CommandBox!
CommandBox>

It seems to work after the error, but seeing the error every time is a little unnerving.  Any ideas what could be happening and how I might solve it?

Thanks,
Steve Durette

Brad Wood

unread,
Oct 7, 2020, 11:26:21 PM10/7/20
to CommandBox
My guess is you have an antivirus software that is corrupting or blocking one of the OSGI bundle jars that Lucee is trying to load.  Of course, the error doesn't tell us which one, so it's hard to say.  You could check the Lucee bundles folder in your CommandBox home and see if any of them look invalid or 0k or something.  The bundled folder is located here

C:\Users\you\.CommandBox\engine\cfml\cli\lucee-server\bundles

Not much CommandBox itself can do about this.  The actual error is coming from the JDK which is called by Lucee which is bundled by CommandBox.  

In fact, there's the line of the Lucee source code that's failing:
You can see, it's just:

JarFile jf = new JarFile(jar);  

The jar file is either corrupt or being blocked at the file system.  If you really care to find out the issue, you could compile a custom lucee.jar where you add in some debugging code that logs the path to the jar file in question before it's loaded.  Then at least you'd know which jar is having the issue.  All you'd need would be to System.println( jars[i].toString() )  right here

Let me know if you want me to make a jar for you to try with this debugging code in it.  

Thanks!

~Brad

Developer Advocate
Ortus Solutions, Corp 

ColdBox Platform: http://www.coldbox.org 



--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/CANerqFWnfeKZSKNF4PcRGr-FKPnGzLhjEcSVoPCWUcNfQ9bvkg%40mail.gmail.com.

Brad Wood

unread,
Oct 8, 2020, 12:00:52 AM10/8/20
to CommandBox
I just submitted a ticket and pull request to Lucee to improve the terrible error logging around this error.



Thanks!

~Brad

Developer Advocate
Ortus Solutions, Corp 

ColdBox Platform: http://www.coldbox.org 


Reply all
Reply to author
Forward
0 new messages