java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 1
written-by
Pooja Bhambani
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
Issue
- While upgrading to Liferay DXP 7.4, following errors were observed in the logs:
ERROR [http-nio-8080-exec-21][OpenIdConnectSessionValidationFilter:53] java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 1
java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 1
at java.lang.String.checkBoundsBeginEnd(String.java:3319) ~[?:?]
at java.lang.String.substring(String.java:1874) ~[?:?]
at com.liferay.frontend.theme.favicon.servlet.internal.FaviconServlet._getLayoutSet(FaviconServlet.java:147) ~[?:?]
at com.liferay.frontend.theme.favicon.servlet.internal.FaviconServlet.doGet(FaviconServlet.java:78) ~[?:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:655) ~[servlet-api.jar:4.0.FR]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[servlet-api.jar:4.0.FR]
at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153) ~[?:?]
at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:63) ~[?:?]
at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120) ~[?:?]
at org.eclipse.equinox.http.servlet.internal.HttpServiceRuntimeImpl.doDispatch(HttpServiceRuntimeImpl.java:372) ~[?:?]
at org.eclipse.equinox.http.servlet.internal.servlet.ProxyServlet.service(ProxyServlet.java:70) ~[?:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[servlet-api.jar:4.0.FR]
Resolution
- The observed behavior has been addressed via LPS-201402
did-this-article-resolve-your-issue