You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2017/05/08 11:46:04 UTC
[jira] [Resolved] (SLING-6839) Exception inside a task factory
brings down installer task
[ https://issues.apache.org/jira/browse/SLING-6839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-6839.
-------------------------------------
Resolution: Fixed
Rev 1794341 : catching the exception and then ignoring the resource. I've also added a log statement if the installer dies
> Exception inside a task factory brings down installer task
> ----------------------------------------------------------
>
> Key: SLING-6839
> URL: https://issues.apache.org/jira/browse/SLING-6839
> Project: Sling
> Issue Type: Improvement
> Components: Installer
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: Installer Core 3.8.10
>
>
> If a task factory throws an uncaught exception (like an NPE) this brings down the whole installer tasks and the installer stops working:
> java.lang.NullPointerException: null
> at org.apache.sling.installer.factories.configuration.impl.AbstractConfigTask.<init>(AbstractConfigTask.java:58)
> at org.apache.sling.installer.factories.configuration.impl.ConfigInstallTask.<init>(ConfigInstallTask.java:37)
> at org.apache.sling.installer.factories.configuration.impl.ConfigTaskCreator.createTask(ConfigTaskCreator.java:89)
> at org.apache.sling.installer.core.impl.OsgiInstallerImpl.getTask(OsgiInstallerImpl.java:674)
> at org.apache.sling.installer.core.impl.OsgiInstallerImpl.computeTasks(OsgiInstallerImpl.java:654)
> at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:283)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)