java.util.zip.ZipException: error in opening zip file

this just started:

Type Exception Report

Message java.util.zip.ZipException: error in opening zip file

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

javax.servlet.ServletException: java.util.zip.ZipException: error in opening zip file
lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:379)
lucee.loader.engine.CFMLEngineFactory.initEngineIfNecessary(CFMLEngineFactory.java:262)
lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:168)
lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:202)
lucee.loader.servlet.CFMLServlet.init(CFMLServlet.java:42)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
mod_cfml.core.invoke(core.java:152)
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Unknown Source)
Root Cause

java.util.zip.ZipException: error in opening zip file
java.util.zip.ZipFile.open(Native Method)
java.util.zip.ZipFile.(Unknown Source)
java.util.zip.ZipFile.(Unknown Source)
java.util.jar.JarFile.(Unknown Source)
java.util.jar.JarFile.(Unknown Source)
lucee.loader.osgi.BundleLoader.loadBundles(BundleLoader.java:64)
lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:363)
lucee.loader.engine.CFMLEngineFactory.initEngineIfNecessary(CFMLEngineFactory.java:262)
lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:168)
lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:202)
lucee.loader.servlet.CFMLServlet.init(CFMLServlet.java:42)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
mod_cfml.core.invoke(core.java:152)
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Unknown Source)
Note The full stack trace of the root cause is available in the server logs.

Don’t forget to tell us about your stack!

OS: Windows Server 2012 Standard 6.2.9200 Build 9200
Java Version:
Tomcat Version: 8
Lucee Version: 5.3.6.61 (updated in attempt to resolve)

try checking your \tomcat\lucee-server\deploy and bundle directories for 0 length files?

empty

try changing the log level for the deploy.log under the server admin to trace, that will enable detailed logging about this problem

how do you do that with admin inaccessible?

well, you didn’t mention that…

you can manually edit \tomcat\lucee-server\context\lucee-server.xml,

search for deploy and change the level from error to trace and restart lucee

ok, which log and what should I look for?

28-Jul-2020 06:05:28.328 INFO [Thread-306] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8888”]
28-Jul-2020 06:05:28.328 INFO [Thread-306] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“ajp-nio-8009”]
28-Jul-2020 06:05:28.344 INFO [Thread-306] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
28-Jul-2020 06:05:28.516 INFO [Thread-306] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“http-nio-8888”]
28-Jul-2020 06:05:28.625 INFO [Thread-306] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“ajp-nio-8009”]
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.35
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: May 11 2016 21:57:08 UTC
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.35.0
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows Server 2012
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 6.2
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\Java\jre1.8.0_31
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_31-b13
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\lucee\tomcat
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\lucee\tomcat
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\lucee\tomcat
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\lucee\tomcat
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=C:\lucee\tomcat\endorsed
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\lucee\tomcat\temp
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\lucee\tomcat\conf\logging.properties
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: exit
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms256m
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx512m
28-Jul-2020 06:05:31.984 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\lucee\tomcat\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files\PHP\v7.1;C:\Program Files\PHP\v7.0;C:\Program Files (x86)\PHP\v7.0;C:\Program Files\PHP\v7.0;C:\Program Files (x86)\PHP\v5.6;C:\windows\system32\inetsrv;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\PHP\v5.5;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\MySQL\MySQL Utilities;C:\Program Files (x86)\MySQL\MySQL Utilities\Doctrine extensions for PHP;;;;;.
28-Jul-2020 06:05:32.531 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8888”]
28-Jul-2020 06:05:32.672 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
28-Jul-2020 06:05:32.672 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“ajp-nio-8009”]
28-Jul-2020 06:05:32.672 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
28-Jul-2020 06:05:32.672 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1916 ms
28-Jul-2020 06:05:32.705 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
28-Jul-2020 06:05:32.705 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.35
28-Jul-2020 06:05:32.719 INFO [127.0.0.1-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\lucee\tomcat\webapps\ROOT
28-Jul-2020 06:05:33.527 INFO [127.0.0.1-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
28-Jul-2020 06:05:33.764 INFO [127.0.0.1-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [176] milliseconds.
28-Jul-2020 06:05:43.708 INFO [127.0.0.1-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\lucee\tomcat\webapps\ROOT has finished in 10,989 ms

\tomcat\lucee-server\context\logs\deploy.log

here’s what its showing now:

Error connecting to Apache Tomcat instance.Please check that a Tomcat server is running at given location and port.
Details:
No connection could be made because the target machine actively refused it 127.0.0.1:8009

You can change this message by changing TomcatConnectErrorURL setting in setting file.

no deploy log created though

in which file was that from?

the browser

is tomcat running?

yup

I ran into this same issue today.

In my case, there was a 0-byte file in the /tomcat/lucee-server/patches/ folder. Apparently something went wrong with the update to 5.3.6.61 and the 5.3.6.61.lco file was a zero byte file.

To resolve the issue, I just needed to delete the file and try the install again.

this was meant to have been fixed, can you file a new bug and link it
back to https://luceeserver.atlassian.net/browse/LDEV-2179 with a stacktrace?

I don’t have a stack trace anymore, but I filed a bug:

https://luceeserver.atlassian.net/browse/LDEV-3014