You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2019/03/06 14:28:00 UTC

[jira] [Resolved] (SLING-8280) OSGi Installer stuck if config file with primitive array was once deployed

     [ https://issues.apache.org/jira/browse/SLING-8280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus resolved SLING-8280.
------------------------------------
    Resolution: Duplicate

> OSGi Installer stuck if config file with primitive array was once deployed
> --------------------------------------------------------------------------
>
>                 Key: SLING-8280
>                 URL: https://issues.apache.org/jira/browse/SLING-8280
>             Project: Sling
>          Issue Type: Bug
>          Components: Installer
>    Affects Versions: Installer Configuration Factory 1.1.2
>            Reporter: Konrad Windszus
>            Priority: Major
>
> 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
> {code}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)