Question
Anthem
US
Last activity: 12 Jun 2020 3:32 EDT
Error Message : java.lang.StringIndexOutOfBoundsException: String index out of range: -1 | End User Screen Display Error.
Hi Team,
Below mentioned error message has been displayed on the end user screen.Refer to the first attachment regarding the error screenshot.
Object key:-Read/Write:true Error message:java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Couldnt find anything related to the issue facing end user in the logs but found a different stack trace (String index out of range: -2) during a different time period (refer to the second attachment for the log).
1) Why and when does the following exception "StringIndexOutOfBoundsException" occurs ?
2) What is the difference between "String index out of range: -1" vs "String index out of range: -2" ?
3) Any recommendations to avoid running into the same issue ?
Application EcoSystem : PRPC731,MSSQL,Tomcat 8.5.13
-
Likes (4)
Sai kishore Kandoori Toshi Sato Navya Peratla Sander Schouten -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
FR
Hello,
The attached stack is coming from PegaRULES-ALERTS log right. I'm surprise you not having any further details on PegaRULES logs.
Can you double check?
Anthem
US
Please find below :
Please find below :
2020-02-10 04:45:49,655 [{New I/O worker #96}] [ ] [ ] [ ] ( impl.server.RequestHandler) ERROR - Request could not be handled java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(Unknown Source) ~[?:1.8.0_151] at com.pega.dsm.dnode.impl.server.RequestHandler.extractPrimaryPath(RequestHandler.java:281) ~[dnode-7.3.1.jar:?] at com.pega.dsm.dnode.impl.server.BasicAuthenticationHandler.handleHttpRequest(BasicAuthenticationHandler.java:69) ~[dnode-7.3.1.jar:?] at com.pega.dsm.dnode.impl.server.BasicAuthenticationHandler.messageReceived(BasicAuthenticationHandler.java:38) ~[dnode-7.3.1.jar:?] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) ~[netty-3.10.6.Final.jar:?] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) ~[netty-3.10.6.Final.jar:?] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) ~[netty-3.10.6.Final.jar:?] at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) ~[netty-3.10.6.Final.jar:?] at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459) ~[netty-3.10.6.Final.jar:?] at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536) ~[netty-3.10.6.Final.jar:?] at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) ~[netty-3.10.6.Final.jar:?] at org.jboss.netty.channel.Simple
Anthem
US
Pegasystems Inc.
US
Can you please explain more about the use case. Are you trying to source a data set?
Anthem
US
This exception has been observed on intermittent basis and we couldnt pin point to any specific use case.
Moreover, We dont use DSM framework or its related components (not sure how the logs error stack is all about Dnode).Looking out for answers regarding the below mentioned :
1) Why and when does the following exception "StringIndexOutOfBoundsException" occurs ?
2) What is the difference between "String index out of range: -1" vs "String index out of range: -2" ?
3) Any recommendations to avoid running into the same issue ?
Anthem
US
@Rachit_Agarwal and @MarcLasserre_GCS, Any update? Thank you.
Pegasystems Inc.
IN
PradeepPydi did you get any update on this request?
Even our application doesn't use dsm framework as of now but this exception is observed in PDC.
Anthem
US
Rachit_Agarwal and MarcLasserre_GCS, Any update please ?
State of New Jersey
US
Hey Pydi,
Did you get resolved the above issue. Any solutions?
Thanks,
Ramesh
Anthem
US
Nope.
No response from Pega Engineers.