Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence service error

China infrastructure April 14, 2019

Cause

com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set
    at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)

caused by: java.lang.IllegalStateException: Spring Application context has not been set
    at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48)

 

Caused by: java.lang.IllegalStateException: Spring Application context has not been set
	at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48)
	at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)
	at com.atlassian.confluence.util.LazyComponentReference$Accessor.get(LazyComponentReference.java:42)
	at com.atlassian.util.concurrent.Lazy$Strong.create(Lazy.java:85)
	at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:325)
	at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)
	... 200 more

1 answer

0 votes
Kiran Panduga {Appfire}
Community Champion
April 14, 2019

Hi @China infrastructure , 

There are many reasons behind this error message. I would suggest to visit the below Atlassian KB article and follow the suggested resolutions

https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html

 

Thanks,

Kiran.

China infrastructure April 14, 2019

 

Can you tell me what this catalina.out log error means when I start the confluence service?

 

15-Apr-2019 14:35:06.996 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server} Setting property 'debug' to '0' did not find a matching property.
15-Apr-2019 14:35:07.235 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'debug' to '0' did not find a matching property.
15-Apr-2019 14:35:07.246 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine} Setting property 'debug' to '0' did not find a matching property.
15-Apr-2019 14:35:07.262 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.
15-Apr-2019 14:35:07.333 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
15-Apr-2019 14:35:07.403 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.

China infrastructure April 16, 2019

Hi Kiran,

Do you have any Suggestions for the above error report? thank you

Kiran Panduga {Appfire}
Community Champion
April 16, 2019

Hi @China infrastructure , 

The warning message shows during the startup of confluence and it appears like some of configuration setting were incorrect . However, that's wrong. 

Confluence shows up this warning message even when the configuration is correct.

This looks to be a bug in all versions of Confluence and there is an open ticket with Atlassian.

Please refer:

https://jira.atlassian.com/browse/CONFSERVER-35172

Thanks,

Kiran.

China infrastructure April 16, 2019

Hi Kiran,

 

Strangely enough, my confluence service could not be started. When I started the service, this error was the only one in the log.

[root@izbp109qr14xqjtz9xs0dxz bin]# sh start-confluence.sh

To run Confluence in the foreground, start the server with start-confluence.sh -fg
executing using dedicated user: confluence
If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide

Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out
---------------------------------------------------------------------------
Using Java: /opt/atlassian/confluence/jre//bin/java
2019-04-16 17:58:36,621 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /opt/atlassian/confluence/conf/server.xml. No further action is required
---------------------------------------------------------------------------
Using CATALINA_BASE: /opt/atlassian/confluence
Using CATALINA_HOME: /opt/atlassian/confluence
Using CATALINA_TMPDIR: /opt/atlassian/confluence/temp
Using JRE_HOME: /opt/atlassian/confluence/jre/
Using CLASSPATH: /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/atlassian/confluence/work/catalina.pid
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.

[root@izbp109qr14xqjtz9xs0dxz bin]# netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 2251/java
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 861/nginx: master p
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2468/sshd
tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 2251/java
tcp6 0 0 :::3306 :::* LISTEN 992/mysqld

no 8090 port job

 

15-Apr-2019 14:35:08.118 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8090"]
15-Apr-2019 14:35:08.151 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
15-Apr-2019 14:35:08.154 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1367 ms
15-Apr-2019 14:35:08.182 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Tomcat-Standalone
15-Apr-2019 14:35:08.182 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.51
16-Apr-2019 17:40:37.044 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server} Setting property 'debug' to '0' did not find a matching property.
16-Apr-2019 17:40:37.229 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'debug' to '0' did not find a matching property.
16-Apr-2019 17:40:37.263 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine} Setting property 'debug' to '0' did not find a matching property.
16-Apr-2019 17:40:37.284 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.
16-Apr-2019 17:40:37.411 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
16-Apr-2019 17:40:37.477 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
16-Apr-2019 17:40:38.263 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8090"]
16-Apr-2019 17:40:38.288 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
16-Apr-2019 17:40:38.306 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1449 ms
16-Apr-2019 17:40:38.314 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Tomcat-Standalone
16-Apr-2019 17:40:38.315 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.51

China infrastructure April 17, 2019

Hi Kiran,

Can you give me any other Suggestions? thank you

Kiran Panduga {Appfire}
Community Champion
April 17, 2019

Hi @China infrastructure , 

I suspect issue is with your Linux server. Check for any unknown cronjobs runnings and disable and then try.

thanks,

Kiran.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events