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.

Setting up new AEM Forms cloud instance and getting error on Windows 11 pro

Avatar

Employee

Hi All,

 

Please let me know, if anyone has setup AEM Forms cloud instance in local on Windows 11 pro.

 

I am trying to do the same setup but after adding aem forms cloud add-on all the forms bundles go in installed state and never becomes active, I have tried with latest SDK and forms as well but no luck.

 

It will be great help if you can suggest any resolution.

 

Error which I can see in the logs is mentioned below:

01.12.2023 20:00:37.261 *INFO* [OsgiInstallerImpl] org.apache.sling.installer.core.impl.tasks.BundleInstallTask Exception during install of bundle TaskResource(url=model-com.adobe.aemfd_aem-forms-cloud-ready-pkg_slingosgifeature_aem-forms-sdk-cloud-ready_2023.10.25.00:/aem-dermis-core-4.0.560.jar, entity=bundle:com.adobe.aem.dermis.aem-dermis-core-4.0.560, state=INSTALL, attributes=[org.apache.sling.installer.api.tasks.ResourceTransformer=:51:71:73:29:, Bundle-SymbolicName=com.adobe.aem.dermis.aem-dermis-core, Bundle-Version=4.0.560], digest=1701440727376) : Unable to cache bundle: model-com.adobe.aemfd_aem-forms-cloud-ready-pkg_slingosgifeature_aem-forms-sdk-cloud-ready_2023.10.25.00:/aem-dermis-core-4.0.560.jar. Retrying later.
org.osgi.framework.BundleException: Unable to cache bundle: model-com.adobe.aemfd_aem-forms-cloud-ready-pkg_slingosgifeature_aem-forms-sdk-cloud-ready_2023.10.25.00:/aem-dermis-core-4.0.560.jar
at org.apache.felix.framework.Felix.installBundle(Felix.java:3258)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:147)
at org.apache.sling.installer.core.impl.tasks.BundleInstallTask.execute(BundleInstallTask.java:47) [org.apache.sling.installer.core:3.12.0]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:918) [org.apache.sling.installer.core:3.12.0]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:755) [org.apache.sling.installer.core:3.12.0]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:304) [org.apache.sling.installer.core:3.12.0]
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.util.zip.ZipException: Invalid CEN header (invalid extra data field size for tag: 0xbfef at 385)
at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1764)
at java.base/java.util.zip.ZipFile$Source.checkExtraFields(ZipFile.java:1662)
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1590)
at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1324)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1287)
at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:741)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:850)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:256)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:185)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:199)
at org.apache.felix.framework.util.SecureAction.openZipFile(SecureAction.java:802)
at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.<init>(WeakZipFileFactory.java:169)
at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.<init>(WeakZipFileFactory.java:151)
at org.apache.felix.framework.util.WeakZipFileFactory.create(WeakZipFileFactory.java:78)
at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:83)
at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:804)
at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:491)
at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:155)
at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:457)
at org.apache.felix.framework.Felix.installBundle(Felix.java:3254)
... 6 common frames omitted
01.12.2023 20:00:37.263 *INFO* [sling-oak-observation-9] com.adobe.granite.ui.clientlibs.impl.LibraryCacheImpl Rebuilt 2075 ancestor paths
01.12.2023 20:00:40.010 *INFO* [CommitStats] CommitStats 22 commits by 2 users [90% admin, 9% sling-jcr-install] from location osgi-thread:osgi-installer [CommitStats overhead was 1ms = 45.0us / commit]
01.12.2023 20:00:40.122 *INFO* [JcrInstaller.1] org.apache.sling.installer.provider.jcr.impl.JcrInstaller Registering resource with OSGi installer: [InstallableResource, priority=200, id=/apps/system/config/org.apache.sling.graphql.core.GraphQLServlet~headless-ibiza-plane-a.cfg.json, InstallableResource, priority=200, id=/apps/system/config/org.apache.sling.graphql.schema.aggregator.SchemaAggregatorServlet~headless-ibiza-plane-a.cfg.json]
01.12.2023 20:00:40.209 *INFO* [OsgiInstallerImpl] org.apache.sling.audit.osgi.installer Installed configuration com.adobe.aemfd.output.batch.impl.osgiconfig.OutputBatchOSGiConfig from resource TaskResource(url=jcrinstall:/libs/fd/outputbatch/config.author/com.adobe.aemfd.output.batch.impl.osgiconfig.OutputBatchOSGiConfig.cfg.json, entity=config:com.adobe.aemfd.output.batch.impl.osgiconfig.OutputBatchOSGiConfig, state=INSTALL, attributes=[org.apache.sling.installer.api.tasks.ResourceTransformer=:51:, service.pid=com.adobe.aemfd.output.batch.impl.osgiconfig.OutputBatchOSGiConfig], digest=aeaf5da42ce2557e6efa5c939debb7d5)
01.12.2023 20:00:40.263 *INFO* [OsgiInstallerImpl] org.apache.sling.installer.core.impl.tasks.BundleInstallTask Exception during install of bundle TaskResource(url=model-com.adobe.aemfd_aem-forms-cloud-ready-pkg_slingosgifeature_aem-forms-sdk-cloud-ready_2023.10.25.00:/aem-dermis-core-4.0.560.jar, entity=bundle:com.adobe.aem.dermis.aem-dermis-core-4.0.560, state=INSTALL, attributes=[org.apache.sling.installer.api.tasks.ResourceTransformer=:51:71:73:29:, Bundle-SymbolicName=com.adobe.aem.dermis.aem-dermis-core, Bundle-Version=4.0.560], digest=1701440727376) : Unable to cache bundle: model-com.adobe.aemfd_aem-forms-cloud-ready-pkg_slingosgifeature_aem-forms-sdk-cloud-ready_2023.10.25.00:/aem-dermis-core-4.0.560.jar. Retrying later.
org.osgi.framework.BundleException: Unable to cache bundle: model-com.adobe.aemfd_aem-forms-cloud-ready-pkg_slingosgifeature_aem-forms-sdk-cloud-ready_2023.10.25.00:/aem-dermis-core-4.0.560.jar
at org.apache.felix.framework.Felix.installBundle(Felix.java:3258)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:147)
at org.apache.sling.installer.core.impl.tasks.BundleInstallTask.execute(BundleInstallTask.java:47) [org.apache.sling.installer.core:3.12.0]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:918) [org.apache.sling.installer.core:3.12.0]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:755) [org.apache.sling.installer.core:3.12.0]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:304) [org.apache.sling.installer.core:3.12.0]
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.util.zip.ZipException: Invalid CEN header (invalid extra data field size for tag: 0xbfef at 385)
at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1764)
at java.base/java.util.zip.ZipFile$Source.checkExtraFields(ZipFile.java:1662)
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1590)
at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1324)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1287)
at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:741)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:850)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:256)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:185)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:199)
at org.apache.felix.framework.util.SecureAction.openZipFile(SecureAction.java:802)
at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.<init>(WeakZipFileFactory.java:169)
at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.<init>(WeakZipFileFactory.java:151)
at org.apache.felix.framework.util.WeakZipFileFactory.create(WeakZipFileFactory.java:78)
at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:83)
at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:804)
at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:491)
at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:155)
at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:457)
at org.apache.felix.framework.Felix.installBundle(Felix.java:3254)
... 6 common frames omitted
01.12.2023 20:00:43.100 *INFO* [OsgiInstallerImpl] org.apache.sling.installer.core.impl.tasks.BundleInstallTask Exception during install of bundle TaskResource(url=model-com.adobe.aemfd_aem-forms-cloud-ready-pkg_slingosgifeature_aem-forms-sdk-cloud-ready_2023.10.25.00:/aem-dermis-core-4.0.560.jar, entity=bundle:com.adobe.aem.dermis.aem-dermis-core-4.0.560, state=INSTALL, attributes=[org.apache.sling.installer.api.tasks.ResourceTransformer=:51:71:73:29:, Bundle-SymbolicName=com.adobe.aem.dermis.aem-dermis-core, Bundle-Version=4.0.560], digest=1701440727376) : Unable to cache bundle: model-com.adobe.aemfd_aem-forms-cloud-ready-pkg_slingosgifeature_aem-forms-sdk-cloud-ready_2023.10.25.00:/aem-dermis-core-4.0.560.jar. Retrying later.
org.osgi.framework.BundleException: Unable to cache bundle: model-com.adobe.aemfd_aem-forms-cloud-ready-pkg_slingosgifeature_aem-forms-sdk-cloud-ready_2023.10.25.00:/aem-dermis-core-4.0.560.jar
at org.apache.felix.framework.Felix.installBundle(Felix.java:3258)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:147)
at org.apache.sling.installer.core.impl.tasks.BundleInstallTask.execute(BundleInstallTask.java:47) [org.apache.sling.installer.core:3.12.0]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:918) [org.apache.sling.installer.core:3.12.0]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:755) [org.apache.sling.installer.core:3.12.0]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:304) [org.apache.sling.installer.core:3.12.0]
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.util.zip.ZipException: Invalid CEN header (invalid extra data field size for tag: 0xbfef at 385)
at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1764)
at java.base/java.util.zip.ZipFile$Source.checkExtraFields(ZipFile.java:1662)
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1590)
at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1324)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1287)
at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:741)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:850)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:256)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:185)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:199)
at org.apache.felix.framework.util.SecureAction.openZipFile(SecureAction.java:802)
at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.<init>(WeakZipFileFactory.java:169)
at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.<init>(WeakZipFileFactory.java:151)
at org.apache.felix.framework.util.WeakZipFileFactory.create(WeakZipFileFactory.java:78)
at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:83)
at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:804)
at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:491)
at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:155)
at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:457)
at org.apache.felix.framework.Felix.installBundle(Felix.java:3254)
... 6 common frames omitted

 

regards,

Vaibhav

7 Replies

Avatar

Employee Advisor

@VaibhavPr 

Could be an issue with the package/bundle[0], did you try to download the package again?

Also, what is the JDK version you've installed on your set-up, reference issue with JDK[1]

[0] - Caused by: java.util.zip.ZipException: Invalid CEN header

[1] - https://bell-sw.com/blog/invalid-cen-header-fixed-in-the-latest-jdk-11-and-17-updates/ 

Avatar

Employee

Hi @Pulkit_Jain_ ,

 

I was checking why bundles in fresh AEM instance was not getting active, and found dermis was not getting resolved in some of the bundles and as bundles are dependent on each other they are not going in active state:

com.adobe.aem.dermis.core.usc,version=[4.0,5) -- Cannot be resolved
com.adobe.aem.dermis.core.service,version=[4.0,5) -- Cannot be resolved

 

I have tried multiple times to download and setup fresh AEM forms cloud local instance but getting the same issue again. 

 

I am using below jdk:

java version "11.0.21" 2023-10-17 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.21+9-LTS-193)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.21+9-LTS-193, mixed mode)

Avatar

Level 1

We have the same issue, wondering is that resolved?

Avatar

Level 1

We also just ran into this last night and were able to find the solution. This appears to be an issue with Java versions 11.0.20 and higher where the zip64 extra field validation is causing that "aem-dermis-core" bundle from extracting/installing properly. You can either downgrade to Java 11.0.19 or add -Djdk.util.zip.disableZip64ExtraFieldValidation=true to your JVM params in your AEM start script.

 

Details can be found here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-local-server-error-whi... (thanks to @dmitry-cherkas!)

Avatar

Employee

Thank you @kevinh87 , I'll try to implement the same and will see if that resolves the issue for me.