This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |