<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1124 OSGI-related errors cause application server deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1124 OSGI-related errors cause application server deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail</link><pubDate>Wed, 10 Feb 2021 21:44:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Nicholas Van Dyke</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nicholas Van Dyke on 2/10/2021 9:44:07 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The application server fails to start up&amp;nbsp;due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR com.appiancorp.plugins.osgi.AppianOsgiPlugin - Detected an error (BundleException) enabling the plugin &amp;#39;appian.integration.sharepoint&amp;#39; : Unresolved constraint in bundle appian.integration.sharepoint [23]: Unable to resolve 23.0: missing requirement [23.0] osgi.wiring.package; (&amp;amp;(osgi.wiring.package=com.appiancorp.exceptions)(version&amp;gt;=18.2.20.0)(version&amp;lt;=18.2.20.0)). This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn&amp;#39;t meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see http://confluence.atlassian.com/x/1xy6D [0m[0m16:14:24,565 INFO [stdout] (ServerService Thread Pool -- 66) 2018-07-30 16:14:24,564 [ServerService Thread Pool -- 66] WARN com.appiancorp.plugins.osgi.AppianOsgiPlugin - Unable to enable plugin &amp;#39;appian.integration.sharepoint&amp;#39; [0m[0m16:14:24,565 INFO [stdout] (ServerService Thread Pool -- 66) com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: appian.integration.sharepoint&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete files failures count: 16 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete directories failures count: 32 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file: C:&amp;lt;APPIAN_HOME&amp;gt;\ear\suite.ear\web.war\WEB-INF\plugin-caches\osgi-cache\felix\felix-cache\bundle1\version0.0\bundle.jar: [exists][file][readable][writable][executable]:Could not delete file; this is the root failure in the deletion &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file due to: [Could not delete file; this is the root failure in the deletion]&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop&amp;nbsp;the application server.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 18.3 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/deployment/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss or Tomcat as an application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: &lt;span&gt;January 2021&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause application server deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/18</link><pubDate>Tue, 20 Nov 2018 10:51:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 18 posted to Appian Knowledge Base by Jordan Horwat on 11/20/2018 10:51:07 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The application server fails to start up&amp;nbsp;due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR com.appiancorp.plugins.osgi.AppianOsgiPlugin - Detected an error (BundleException) enabling the plugin &amp;#39;appian.integration.sharepoint&amp;#39; : Unresolved constraint in bundle appian.integration.sharepoint [23]: Unable to resolve 23.0: missing requirement [23.0] osgi.wiring.package; (&amp;amp;(osgi.wiring.package=com.appiancorp.exceptions)(version&amp;gt;=18.2.20.0)(version&amp;lt;=18.2.20.0)). This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn&amp;#39;t meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see http://confluence.atlassian.com/x/1xy6D [0m[0m16:14:24,565 INFO [stdout] (ServerService Thread Pool -- 66) 2018-07-30 16:14:24,564 [ServerService Thread Pool -- 66] WARN com.appiancorp.plugins.osgi.AppianOsgiPlugin - Unable to enable plugin &amp;#39;appian.integration.sharepoint&amp;#39; [0m[0m16:14:24,565 INFO [stdout] (ServerService Thread Pool -- 66) com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: appian.integration.sharepoint&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete files failures count: 16 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete directories failures count: 32 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file: C:&amp;lt;APPIAN_HOME&amp;gt;\ear\suite.ear\web.war\WEB-INF\plugin-caches\osgi-cache\felix\felix-cache\bundle1\version0.0\bundle.jar: [exists][file][readable][writable][executable]:Could not delete file; this is the root failure in the deletion &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file due to: [Could not delete file; this is the root failure in the deletion]&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop&amp;nbsp;the application server.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 18.3 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/deployment/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss or Tomcat as an application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2018&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/17</link><pubDate>Thu, 16 Aug 2018 03:33:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 17 posted to Appian Knowledge Base by Parmida Borhani on 8/16/2018 3:33:28 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR com.appiancorp.plugins.osgi.AppianOsgiPlugin - Detected an error (BundleException) enabling the plugin &amp;#39;appian.integration.sharepoint&amp;#39; : Unresolved constraint in bundle appian.integration.sharepoint [23]: Unable to resolve 23.0: missing requirement [23.0] osgi.wiring.package; (&amp;amp;(osgi.wiring.package=com.appiancorp.exceptions)(version&amp;gt;=18.2.20.0)(version&amp;lt;=18.2.20.0)). This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn&amp;#39;t meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see http://confluence.atlassian.com/x/1xy6D [0m[0m16:14:24,565 INFO [stdout] (ServerService Thread Pool -- 66) 2018-07-30 16:14:24,564 [ServerService Thread Pool -- 66] WARN com.appiancorp.plugins.osgi.AppianOsgiPlugin - Unable to enable plugin &amp;#39;appian.integration.sharepoint&amp;#39; [0m[0m16:14:24,565 INFO [stdout] (ServerService Thread Pool -- 66) com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: appian.integration.sharepoint&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete files failures count: 16 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete directories failures count: 32 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file: C:&amp;lt;APPIAN_HOME&amp;gt;\ear\suite.ear\web.war\WEB-INF\plugin-caches\osgi-cache\felix\felix-cache\bundle1\version0.0\bundle.jar: [exists][file][readable][writable][executable]:Could not delete file; this is the root failure in the deletion &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file due to: [Could not delete file; this is the root failure in the deletion]&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/16</link><pubDate>Thu, 16 Aug 2018 03:33:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 16 posted to Appian Knowledge Base by Parmida Borhani on 8/16/2018 3:33:02 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR com.appiancorp.plugins.osgi.AppianOsgiPlugin - Detected an error (BundleException) enabling the plugin &amp;#39;appian.integration.sharepoint&amp;#39; : Unresolved constraint in bundle appian.integration.sharepoint [23]: Unable to resolve 23.0: missing requirement [23.0] osgi.wiring.package; (&amp;amp;(osgi.wiring.package=com.appiancorp.exceptions)(version&amp;gt;=18.2.20.0)(version&amp;lt;=18.2.20.0)). This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn&amp;#39;t meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see http://confluence.atlassian.com/x/1xy6D [0m[0m16:14:24,565 INFO [stdout] (ServerService Thread Pool -- 66) 2018-07-30 16:14:24,564 [ServerService Thread Pool -- 66] WARN com.appiancorp.plugins.osgi.AppianOsgiPlugin - Unable to enable plugin &amp;#39;appian.integration.sharepoint&amp;#39; [0m[0m16:14:24,565 INFO [stdout] (ServerService Thread Pool -- 66) com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: appian.integration.sharepoint&lt;/pre&gt;
&lt;pre&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete files failures count: 16 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete directories failures count: 32 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file: C:&amp;lt;APPIAN_HOME&amp;gt;\ear\suite.ear\web.war\WEB-INF\plugin-caches\osgi-cache\felix\felix-cache\bundle1\version0.0\bundle.jar: [exists][file][readable][writable][executable]:Could not delete file; this is the root failure in the deletion &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file due to: [Could not delete file; this is the root failure in the deletion]&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/15</link><pubDate>Thu, 16 Aug 2018 03:32:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 15 posted to Appian Knowledge Base by Parmida Borhani on 8/16/2018 3:32:44 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ERROR com.appiancorp.plugins.osgi.AppianOsgiPlugin - Detected an error (BundleException) enabling the plugin &amp;#39;appian.integration.sharepoint&amp;#39; : Unresolved constraint in bundle appian.integration.sharepoint [23]: Unable to resolve 23.0: missing requirement [23.0] osgi.wiring.package; (&amp;amp;(osgi.wiring.package=com.appiancorp.exceptions)(version&amp;gt;=18.2.20.0)(version&amp;lt;=18.2.20.0)). This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn&amp;#39;t meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see http://confluence.atlassian.com/x/1xy6D [0m[0m16:14:24,565 INFO [stdout] (ServerService Thread Pool -- 66) 2018-07-30 16:14:24,564 [ServerService Thread Pool -- 66] WARN com.appiancorp.plugins.osgi.AppianOsgiPlugin - Unable to enable plugin &amp;#39;appian.integration.sharepoint&amp;#39; [0m[0m16:14:24,565 INFO [stdout] (ServerService Thread Pool -- 66) com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: appian.integration.sharepoint&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete files failures count: 16 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete directories failures count: 32 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file: C:&amp;lt;APPIAN_HOME&amp;gt;\ear\suite.ear\web.war\WEB-INF\plugin-caches\osgi-cache\felix\felix-cache\bundle1\version0.0\bundle.jar: [exists][file][readable][writable][executable]:Could not delete file; this is the root failure in the deletion &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file due to: [Could not delete file; this is the root failure in the deletion]&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/14</link><pubDate>Tue, 07 Aug 2018 01:46:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 14 posted to Appian Knowledge Base by Parmida Borhani on 8/7/2018 1:46:03 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete files failures count: 16 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete directories failures count: 32 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file: C:&amp;lt;APPIAN_HOME&amp;gt;\ear\suite.ear\web.war\WEB-INF\plugin-caches\osgi-cache\felix\felix-cache\bundle1\version0.0\bundle.jar: [exists][file][readable][writable][executable]:Could not delete file; this is the root failure in the deletion &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file due to: [Could not delete file; this is the root failure in the deletion]&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/13</link><pubDate>Tue, 07 Aug 2018 01:43:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 13 posted to Appian Knowledge Base by Parmida Borhani on 8/7/2018 1:43:37 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete files failures count: 16 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete directories failures count: 32 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file: C:&amp;lt;APPIAN_HOME&amp;gt;\ear\suite.ear\web.war\WEB-INF\plugin-caches\osgi-cache\felix\felix-cache\bundle1\version0.0\bundle.jar: [exists][file][readable][writable][executable]:Could not delete file; this is the root failure in the deletion &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file due to: [Could not delete file; this is the root failure in the deletion]&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: April 2017&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/12</link><pubDate>Tue, 07 Aug 2018 01:43:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 12 posted to Appian Knowledge Base by Parmida Borhani on 8/7/2018 1:43:09 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete files failures count: 16 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete directories failures count: 32 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file: C:&amp;lt;APPIAN_HOME&amp;gt;\ear\suite.ear\web.war\WEB-INF\plugin-caches\osgi-cache\felix\felix-cache\bundle1\version0.0\bundle.jar: [exists][file][readable][writable][executable]:Could not delete file; this is the root failure in the deletion &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file due to: [Could not delete file; this is the root failure in the deletion]&lt;/pre&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: April 2017&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/11</link><pubDate>Tue, 07 Aug 2018 01:40:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 11 posted to Appian Knowledge Base by Parmida Borhani on 8/7/2018 1:40:42 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: April 2017&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/10</link><pubDate>Tue, 07 Aug 2018 01:37:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 10 posted to Appian Knowledge Base by Parmida Borhani on 8/7/2018 1:37:01 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;pre class="row content_container"&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete files failures count: 16 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete directories failures count: 32 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file: C:&amp;lt;APPIAN_HOME&amp;gt;\ear\suite.ear\web.war\WEB-INF\plugin-caches\osgi-cache\felix\felix-cache\bundle1\version0.0\bundle.jar: [exists][file][readable][writable][executable]:Could not delete file; this is the root failure in the deletion &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file due to: [Could not delete file; this is the root failure in the deletion]&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;p&gt;Last Reviewed: April 2017&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/9</link><pubDate>Tue, 07 Aug 2018 01:35:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 9 posted to Appian Knowledge Base by Parmida Borhani on 8/7/2018 1:35:05 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;pre class="row content_container"&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete files failures count: 16 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete directories failures count: 32 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file: C:&amp;lt;APPIAN_HOME&amp;gt;\ear\suite.ear\web.war\WEB-INF\plugin-caches\osgi-cache\felix\felix-cache\bundle1\version0.0\bundle.jar: [exists][file][readable][writable][executable]:Could not delete file; this is the root failure in the deletion &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file due to: [Could not delete file; this is the root failure in the deletion]&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;p&gt;Last Reviewed: April 2017&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/8</link><pubDate>Tue, 07 Aug 2018 01:32:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 8 posted to Appian Knowledge Base by Parmida Borhani on 8/7/2018 1:32:32 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;pre class="row content_container"&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete files failures count: 16 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete directories failures count: 32 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file: C:&amp;lt;APPIAN_HOME&amp;gt;\ear\suite.ear\web.war\WEB-INF\plugin-caches\osgi-cache\felix\felix-cache\bundle1\version0.0\bundle.jar: [exists][file][readable][writable][executable]:Could not delete file; this is the root failure in the deletion &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file due to: [Could not delete file; this is the root failure in the deletion]&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;p&gt;Last Reviewed: April 2017&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/7</link><pubDate>Tue, 07 Aug 2018 01:32:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Parmida Borhani on 8/7/2018 1:32:14 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;pre class="row content_container"&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete files failures count: 16 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete directories failures count: 32 &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file: C:&amp;lt;APPIAN_HOME&amp;gt;\ear\suite.ear\web.war\WEB-INF\plugin-caches\osgi-cache\felix\felix-cache\bundle1\version0.0\bundle.jar: [exists][file][readable][writable][executable]:Could not delete file; this is the root failure in the deletion &lt;br /&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file due to: [Could not delete file; this is the root failure in the deletion]&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;p&gt;Last Reviewed: April 2017&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/6</link><pubDate>Tue, 07 Aug 2018 01:30:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Parmida Borhani on 8/7/2018 1:30:32 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;code&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete files failures count: 16 &lt;/code&gt;&lt;br /&gt;&lt;code&gt;ERROR com.appiancorp.plugins.osgi.FileDelete - Delete directories failures count: 32 &lt;/code&gt;&lt;br /&gt;&lt;code&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file: C:\appian\appian182\ear\suite.ear\web.war\WEB-INF\plugin-caches\osgi-cache\felix\felix-cache\bundle1\version0.0\bundle.jar: [exists][file][readable][writable][executable]:Could not delete file; this is the root failure in the deletion &lt;/code&gt;&lt;br /&gt;&lt;code&gt;ERROR com.appiancorp.plugins.osgi.FileInteractionMessage - Could not delete file due to: [Could not delete file; this is the root failure in the deletion]&lt;/code&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: April 2017&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/5</link><pubDate>Mon, 30 Jul 2018 04:10:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Parmida Borhani on 7/30/2018 4:10:33 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: April 2017&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, infrastructure, jboss&lt;/div&gt;
</description></item><item><title>KB-1124 OSGI-related errors cause JBoss deployment to fail</title><link>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail/revision/4</link><pubDate>Wed, 12 Apr 2017 17:05:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:605cb839-6355-484f-bcbc-6d4b07dc64ff</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/346/kb-1124-osgi-related-errors-cause-application-server-deployment-to-fail#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Nick Vigilante on 4/12/2017 5:05:52 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;JBoss fails to start up due to one of the following errors:&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 59) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: java.lang.NullPointerException
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getPluginKey(OsgiHeaderUtil.java:374) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:574) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:450) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) [atlassian-plugins-osgi-2.12.3-appian-1.0.jar:]
        at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:695) [atlassian-plugins-core-2.12.3.jar:]
        at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:167) [atlassian-plugins-core-2.12.3.jar:]
        at com.appiancorp.plugins.AppianPluginManager.init(AppianPluginManager.java:77) [appian-plugins.jar:]
        at com.appiancorp.plugins.AppianPlugins.start(AppianPlugins.java:189) [appian-plugins.jar:]
        at com.appiancorp.plugins.ContainerManager.(ContainerManager.java:554) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:62) [appian-plugins.jar:]
        at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:78) [appian-plugins.jar:]
        at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:33) [appian-common.jar:]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.3.1.Final-redhat-1.jar:7.3.1.Final-redhat-1]
        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.2.Final-redhat-2.jar:7.3.2.Final-redhat-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 69) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.plugins.PluginLoader: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:37) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.&amp;lt;init&amp;gt;(DefaultOsgiPersistentCache.java:47) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder$InternalPluginsConfiguration.&amp;lt;init&amp;gt;(PluginsConfigurationBuilder.java:279) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.atlassian.plugin.main.PluginsConfigurationBuilder.build(PluginsConfigurationBuilder.java:242) [atlassian-plugins-main-2.12.3.jar:]&lt;br /&gt; at com.appiancorp.plugins.ContainerManager.&amp;lt;init&amp;gt;(ContainerManager.java:476) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.initialize(PluginLoader.java:65) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.plugins.PluginLoader.contextInitialized0(PluginLoader.java:81) [appian-plugins.jar:]&lt;br /&gt; at com.appiancorp.common.AppianServletContextListener.contextInitialized(AppianServletContextListener.java:38) [appian-common.jar:]&lt;br /&gt; at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]&lt;br /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]&lt;br /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]&lt;br /&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]&lt;br /&gt; at org.jboss.threads.JBossThread.run(JBossThread.java:122)&lt;br /&gt;Caused by: java.io.IOException: Unable to delete directory C:\appian\710\ear\suite.ear\web.war\WEB-INF\osgi-cache\felix\felix-cache\bundle7.&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:981) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) [commons-io-1.4.jar:1.4]&lt;br /&gt; at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) [commons-io-1.4.jar:1.4]&lt;br /&gt; at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) [atlassian-plugins-osgi-2.12.3-appian-1.1.jar:]&lt;br /&gt; ... 19 more&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The OSGI cache is in an inconsistent state and the application server is unable to remove it on its own.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Stop JBoss.&lt;/li&gt;
&lt;li&gt;Delete the contents of one of the following directories (but not the directory itself), depending on your version of Appian:
&lt;ul&gt;
&lt;li&gt;Appian 16.3 and earlier: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Appian 17.1 and later: &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Start&amp;nbsp;JBoss.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The contents of that directory are recreated during the subsequent application server restart.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: April 2017&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: application server, jboss&lt;/div&gt;
</description></item></channel></rss>