[ https://issues.apache.org/jira/browse/SLING-6491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15842912#comment-15842912 ]
Konrad Windszus commented on SLING-6491: ---------------------------------------- This is related to SLING-5457 and IMHO we should rework the whole retry/exception handling of the installer. I made a proposal for that in https://issues.apache.org/jira/browse/SLING-5457?focusedCommentId=15594506&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15594506. > Make RestartActiveBundlesTask#execute more resilient. > ------------------------------------------------------ > > Key: SLING-6491 > URL: https://issues.apache.org/jira/browse/SLING-6491 > Project: Sling > Issue Type: Bug > Components: Installer > Reporter: Antonio Sanso > > RestartActiveBundlesTask#execute could be more resilient. > See this stacktrace for an example: > {code} > [OsgiInstallerImpl] org.apache.sling.installer.core.impl.OsgiInstallerImpl > Uncaught exception during task execution! java.lang.IllegalStateException: > Cannot start an uninstalled bundle. at > org.apache.felix.framework.Felix.startBundle(Felix.java:1953) at > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) at > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) at > org.apache.sling.installer.core.impl.tasks.RestartActiveBundlesTask.execute(RestartActiveBundlesTask.java:75) > at > org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:855) > at > org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:692) > at > {code} > patch to follow -- This message was sent by Atlassian JIRA (v6.3.4#6332)