roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "\(David\) Ming Xia" <>
Subject Re: StringIndexOutOfBoundsException on viewing weblog entries
Date Tue, 24 Feb 2009 04:01:06 GMT
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.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.

--- On Wed, 2/18/09, (David) Ming Xia <> wrote:

From: (David) Ming Xia <>
Subject: StringIndexOutOfBoundsException on viewing weblog entries
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

java.lang.StringIndexOutOfBoundsException: String index out of range: 1


Roller has encountered and logged an unexpected exception.
The error message in the lof file is as following: java.lang.StringIndexOutOfBoundsException:
String index out of range: 1
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(
at org.apache.roller.weblogger.ui.core.filters.CharEncodingFilter.doFilter(
at org.apache.roller.weblogger.ui.rendering.WeblogRequestMapper.handleRequest(
 at org.apache.roller.weblogger.ui.rendering.filters.RequestMappingFilter.doFilter(
The attached is the log file for your review.
Thank you very much.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message