Konrad Windszus created SLING-8280:
--------------------------------------

             Summary: OSGi Installer stuck if config file with wrong type 
information given once
                 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.2.0
            Reporter: Konrad Windszus


After a .config file is either deployed via the {{JCRInstaller}} or the 
{{FileInstaller}} with a wrong type information (e.g. with a lower-case 1 
character type code, 
https://sling.apache.org/documentation/bundles/configuration-installer-factory.html#configuration-files-config)
 it is stuck in the state "INSTALL". Even if afterwards the config file is 
fixed to have the correct format, the new config won't be deployed successfully.

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)

Reply via email to