Skip to content

Instantly share code, notes, and snippets.

View etiennepeiniau's full-sized avatar

Etienne Peiniau etiennepeiniau

View GitHub Profile
Sep 15, 2011 8:34:01 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.acegisecurity.ui.session.HttpSessionEventPublisher
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'siteDescriptions' defined in class path resource [edito-context.xml]: Invocation of init method failed; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: -2
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(String.java:1937)
at com.fullsix.edito.impl.SiteDescriptionFactoryBean.buildDescriptions(SiteDescriptionFactoryBean.java:59)
at com.fullsix.edito.impl.SiteDescriptionFactoryBean.afterPropertiesSet(SiteDescriptionFactoryBean.java:41)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowi
public class SiteDescriptionFactoryBean implements InitializingBean, FactoryBean{
30
31 private SiteDescriptionMap siteDescriptionMap;
32 private Logger logger = Logger.getLogger(SiteDescriptionFactoryBean.class);
33 private Properties properties = new Properties();
34
35 @Override
36 public void afterPropertiesSet() throws Exception {
37 ClassPathResource siteDescriptionFile = new ClassPathResource("sites_description.xml");
38 DocumentBuilder dBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();