UNC-Libraries/Carolina-Digital-Repository — Issue #59: Abstract truncation exception
Author: bbpennel
Created: 2012-02-20 18:15:54+00:00
State: open
Labels: bug

Method for truncating strings to the last word boundary before a character length limit failing when attempting to display abstracts in public UI after upgrading to tomcat 7:

2012-02-20 11:37:06,662 ERROR [ajp-bio-8009-exec-279] edu.unc.lib.dl.ui.controller.ErrorController - An uncaught exception occurred at /search
javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.servlet.ServletException: javax.servlet.jsp.Js
pException: javax.el.ELException: Problems calling function 'cdr:truncateText'
...
Caused by: java.lang.InternalError: java.io.IOException: Stream closed
at java.text.BreakIterator.createBreakInstance(BreakIterator.java:596)
at java.text.BreakIterator.getBreakInstance(BreakIterator.java:541)
at java.text.BreakIterator.getWordInstance(BreakIterator.java:441)
at java.text.BreakIterator.getWordInstance(BreakIterator.java:428)
at edu.unc.lib.dl.ui.util.StringFormatUtil.truncateText(StringFormatUtil.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.el.parser.AstFunction.getValue(AstFunction.java:112)
... 105 more