Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
Installer Configuration Factory 1.1.2
-
None
-
None
Description
After a .config file is either deployed via the JcrInstaller or the FileInstaller with a primitive array type (e.g. with a upper case "I" character type code, https://sling.apache.org/documentation/bundles/configuration-installer-factory.html#configuration-files-config) it can no longer be updated. Even if afterwards the config file is modified the according config won't be updated.
The following exception can be found in the log
19.02.2019 12:36:24.698 *DEBUG* [OsgiInstallerImpl] org.apache.sling.installer.factories.configuration.impl.ConfigInstallTask Exception during installation of config TaskResource(url=jcrinstall:/apps/onemarketing/config/caconfig/io.wcm.caconfig.extensions.contextpath.impl.AbsoluteParentContextPathStrategy-onemarketing.config, entity=config:io.wcm.caconfig.extensions.contextpath.impl.AbsoluteParentContextPathStrategy.onemarketing, state=INSTALL, attributes=[org.apache.sling.installer.api.tasks.ResourceTransformer=:32:, service.factoryPid=io.wcm.caconfig.extensions.contextpath.impl.AbsoluteParentContextPathStrategy, service.pid=onemarketing], digest=80a2f771b2a0f7c91bfdc3fe69a9a1d4) : [I cannot be cast to [Ljava.lang.Object;. Retrying later. java.lang.ClassCastException: [I cannot be cast to [Ljava.lang.Object; at org.apache.sling.installer.factories.configuration.impl.ConfigUtil.isSameData(ConfigUtil.java:88) [org.apache.sling.installer.factory.configuration:1.1.2] at org.apache.sling.installer.factories.configuration.impl.ConfigInstallTask.execute(ConfigInstallTask.java:66) [org.apache.sling.installer.factory.configuration:1.1.2] at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:902) [org.apache.sling.installer.core:3.8.12] at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:737) [org.apache.sling.installer.core:3.8.12] at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:287) [org.apache.sling.installer.core:3.8.12] at java.lang.Thread.run(Thread.java:748)
Attachments
Attachments
Issue Links
- duplicates
-
SLING-6247 Potential class cast exception for primitive arrays
- Closed