You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Egli (JIRA)" <ji...@apache.org> on 2015/11/12 12:37:10 UTC
[jira] [Updated] (SLING-2968) DiscoveryServiceImpl can make HTTP
calls before Sling is properly started up
[ https://issues.apache.org/jira/browse/SLING-2968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Egli updated SLING-2968:
-------------------------------
Fix Version/s: Discovery Impl 1.0.0
> DiscoveryServiceImpl can make HTTP calls before Sling is properly started up
> ----------------------------------------------------------------------------
>
> Key: SLING-2968
> URL: https://issues.apache.org/jira/browse/SLING-2968
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Reporter: Robert Munteanu
> Assignee: Stefan Egli
> Priority: Minor
> Fix For: Discovery Impl 1.0.0
>
>
> If the DiscoveryServiceImpl starts up before the application is completely initalized, the first requests fail:
> {code}03.07.2013 14:24:43.821 *ERROR* [127.0.0.1 [1372850683817] PUT /libs/sling/topology/connector.40a70c95-c7de-4aea-bfdb-419f6329102b.json HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl ServletResolver service missing, cannot service requests , sending status 503
> 03.07.2013 14:24:43.908 *ERROR* [127.0.0.1 [1372850683908] PUT /libs/sling/topology/connector.40a70c95-c7de-4aea-bfdb-419f6329102b.json HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl ServletResolver service missing, cannot service requests , sending status 503
> 03.07.2013 14:24:43.996 *ERROR* [127.0.0.1 [1372850683996] PUT /libs/sling/topology/connector.40a70c95-c7de-4aea-bfdb-419f6329102b.json HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl ServletResolver service missing, cannot service requests , sending status 503
> 03.07.2013 14:24:44.258 *ERROR* [127.0.0.1 [1372850684258] PUT /libs/sling/topology/connector.40a70c95-c7de-4aea-bfdb-419f6329102b.json HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl ServletResolver service missing, cannot service requests , sending status 503{code}
> The solution would be to call the initialization code from inside a {{StartupListener}}, rather than on component activation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)