Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM Local server error while starting

Avatar

Level 2

log details:
08.08.2023 09:42:41.209 ERROR [main] Cannot launch: Cannot install jar:file:/home/shivaranjan/Desktop/aem%20app/aem_author_p-4502.jar/crx-quickstart/app/cq-quickstart-clou... for use
08.08.2023 09:42:41.209 ERROR [main] java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
08.08.2023 09:42:41.209 ERROR [main] at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1736)
08.08.2023 09:42:41.209 ERROR [main] at java.base/java.util.zip.ZipFile$Source.checkExtraFields(ZipFile.java:1254)
08.08.2023 09:42:41.209 ERROR [main] at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1701)
08.08.2023 09:42:41.209 ERROR [main] at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1430)
08.08.2023 09:42:41.209 ERROR [main] at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1393)
08.08.2023 09:42:41.209 ERROR [main] at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:742)
08.08.2023 09:42:41.209 ERROR [main] at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:859)
08.08.2023 09:42:41.209 ERROR [main] at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:257)
08.08.2023 09:42:41.209 ERROR [main] at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:186)
08.08.2023 09:42:41.209 ERROR [main] at java.base/java.util.jar.JarFile.<init>(JarFile.java:348)
08.08.2023 09:42:41.209 ERROR [main] at java.base/java.util.jar.JarFile.<init>(JarFile.java:319)
08.08.2023 09:42:41.209 ERROR [main] at java.base/java.util.jar.JarFile.<init>(JarFile.java:285)
08.08.2023 09:42:41.209 ERROR [main] at org.apache.sling.commons.osgi.bundleversion.FileBundleVersionInfo.<init>(FileBundleVersionInfo.java:40)
08.08.2023 09:42:41.209 ERROR [main] at org.apache.sling.launchpad.base.shared.Loader.installLauncherJar(Loader.java:172)
08.08.2023 09:42:41.209 ERROR [main] at org.apache.sling.launchpad.app.Main.doStart(Main.java:382)
08.08.2023 09:42:41.209 ERROR [main] at org.apache.sling.launchpad.app.Main.doStart(Main.java:347)
08.08.2023 09:42:41.209 ERROR [main] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08.08.2023 09:42:41.209 ERROR [main] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
08.08.2023 09:42:41.209 ERROR [main] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08.08.2023 09:42:41.209 ERROR [main] at java.base/java.lang.reflect.Method.invoke(Method.java:566)
08.08.2023 09:42:41.209 ERROR [main] at com.adobe.granite.quickstart.base.impl.exec.Bootstrap.run(Bootstrap.java:107)
08.08.2023 09:42:41.209 ERROR [main] at com.adobe.granite.quickstart.base.impl.Quickstart.run(Quickstart.java:272)
08.08.2023 09:42:41.209 ERROR [main] at com.adobe.granite.quickstart.base.impl.Main.<init>(Main.java:918)
08.08.2023 09:42:41.209 ERROR [main] at com.adobe.granite.quickstart.base.impl.Main.main(Main.java:980)
MAIN process: shutdown hook
MAIN process: exiting

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi @aanchal-sikka ,

It is working after updating Aem Sdk to Latest version 

 

View solution in original post

9 Replies

Avatar

Community Advisor

@shivaranjan  Seems you are using wrong version of java. 

 

Can you specify more details of your configurations

Java version :

AEM version :

Avatar

Level 2

Java version :

openjdk 11.0.20 2023-07-18
OpenJDK Runtime Environment (build 11.0.20+8-post-Ubuntu-1ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.20+8-post-Ubuntu-1ubuntu120.04, mixed mode, sharing)

AEM version : 6.5

aem-sdk-2023.6.12441.20230623T133322Z-230400.zip

 

Avatar

Community Advisor

@shivaranjan 

 

It seems to be corrupted. Can you please download the sdk again and try?

 


Aanchal Sikka

Avatar

Correct answer by
Level 2

Hi @aanchal-sikka ,

It is working after updating Aem Sdk to Latest version 

 

Avatar

Employee

Replace your java as well sometimes open jdk version used are corrupted

Avatar

Level 1

This error is due to the latest change in JDK 11.0.20(Release Note

  • Improved ZIP64 Extra Field Validation(JDK-8302483 (not public)) java.util.zip.ZipFile has been updated to provide additional validation of ZIP64 extra fields when opening a ZIP file. This validation may be disabled by setting the system property jdk.util.zip.disableZip64ExtraFieldValidation to true

Workaround: Set -Djdk.util.zip.disableZip64ExtraFieldValidation=true in your `crx-quickstart/bin/start` script

 

Source: https://help.liferay.com/hc/en-us/articles/17904500197389-java-util-zip-ZipException-Invalid-CEN-hea...

Avatar

Level 1

Thanks I stepped back to 11.0.19 and things worked correctly!