Hi, All. The problem I got is with viewing weblog entries. When I created a weblog entry and I clicked on the entry to view the entry, I got an error message. I debug it and found that the error is because 1. In PageServlet.class, in the following snippet, ... String mimeType = RollerContext.getServletContext().getMimeType( page.getLink()); ... page.getLinn() actually resulted in a zero length empty string "". and so the getMimeType function broke. 2. I further checked and found that in SharedThemeFromDir.class's function loadThemeFromDisk(), theme data was load from theme.xml as empty string "". 3. I further checked and found that in all the four themes/theme.xml files of default themes, all elements of LINK, except 'stylesheet/link' was set as empty. Can some one shed some light on this? I would truly appreciate. Thank you very much. David
--- On Wed, 2/18/09, (David) Ming Xia <[email protected]> wrote: From: (David) Ming Xia <[email protected]> Subject: StringIndexOutOfBoundsException on viewing weblog entries To: [email protected] Date: Wednesday, February 18, 2009, 11:32 PM Hi, All. I got an error on Roller. I would truly appreciate if any one of you could shed some light on me. I created weblog, and entry. And when I click on the entry URL to try to preview the weblog, I saw an error page with follwoing error message: Status Code 500 Message java.lang.StringIndexOutOfBoundsException: String index out of range: 1 Type Exception Roller has encountered and logged an unexpected exception. The error message in the lof file is as following: com.ibm.websphere.servlet.error.ServletErrorReport: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 ... at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) .. at org.apache.roller.weblogger.ui.core.filters.CharEncodingFilter.doFilter(CharEncodingFilter.java:77) ... at org.apache.roller.weblogger.ui.rendering.WeblogRequestMapper.handleRequest(WeblogRequestMapper.java:225) at org.apache.roller.weblogger.ui.rendering.filters.RequestMappingFilter.doFilter(RequestMappingFilter.java:128) The attached is the log file for your review. Thank you very much. David
