Anonymous_User Absent Member.
Absent Member.
833 views

String index out of range: -6


Hi,

I have setup a development SSPR3.0.0.1 system on SLES11SP3 x86_64, with
Tomcat 7.0.42. I am using tokens via email for forgotten passwords, when
entering the token I get an error message on the screen:

{5015 ERROR_UNKNOWN (String index out of range: -6) }

The log file, catalina.out has the following:

2013-11-15 10:23:21, WARN , servlet.TopServlet, {21~} unexpected pwm
error during page generation: String index out of range: -6 [<IP Address
of Client>/<DNS Entry of client PC>]
java.lang.StringIndexOutOfBoundsException: String index out of range:
-6
at java.lang.String.substring(String.java:1911)
at
password.pwm.wordlist.AbstractWordlist.containsWord(AbstractWordlist.java:271)
at
password.pwm.wordlist.WordlistManager.containsWord(WordlistManager.java:41)
at
password.pwm.util.PwmPasswordRuleValidator.internalPwmPolicyValidator(PwmPasswordRuleValidator.java:398)
at
password.pwm.util.RandomPasswordGenerator.createRandomPassword(RandomPasswordGenerator.java:177)
at
password.pwm.util.RandomPasswordGenerator.createRandomPassword(RandomPasswordGenerator.java:92)
at
password.pwm.util.RandomPasswordGenerator.createRandomPassword(RandomPasswordGenerator.java:79)
at
password.pwm.util.operations.UserAuthenticator.authUserWithUnknownPassword(UserAuthenticator.java:215)
at
password.pwm.servlet.ForgottenPasswordServlet.processResetPassword(ForgottenPasswordServlet.java:580)
at
password.pwm.servlet.ForgottenPasswordServlet.advancedToNextStage(ForgottenPasswordServlet.java:528)
at
password.pwm.servlet.ForgottenPasswordServlet.processEnterForgottenCode(ForgottenPasswordServlet.java:262)
at
password.pwm.servlet.ForgottenPasswordServlet.processRequest(ForgottenPasswordServlet.java:119)
at
password.pwm.servlet.TopServlet.handleRequest(TopServlet.java:83)

Any ideas?


--
NickyVermaak
------------------------------------------------------------------------
NickyVermaak's Profile: https://forums.netiq.com/member.php?userid=1011
View this thread: https://forums.netiq.com/showthread.php?t=49232

0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: String index out of range: -6


What does your macro you are using look like?


--
jrivard
------------------------------------------------------------------------
jrivard's Profile: https://forums.netiq.com/member.php?userid=541
View this thread: https://forums.netiq.com/showthread.php?t=49232

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: String index out of range: -6


jrivard;237006 Wrote:
> What does your macro you are using look like?


Thanks for the reply, I am however not clear on your question. I am
using the standard configuration for tokens, the only change I made was
to change the length of the token to 8 characters.

PS: I am using JDK 1.7_45


--
NickyVermaak
------------------------------------------------------------------------
NickyVermaak's Profile: https://forums.netiq.com/member.php?userid=1011
View this thread: https://forums.netiq.com/showthread.php?t=49232

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: String index out of range: -6


I did a duplicate install with:

SLES 11 SP3 x86_64
Tomcat 7.0.42
JRE 1.6_45, instead of the JRE1.7 used previously

Tokens are working just fine now.


--
NickyVermaak
------------------------------------------------------------------------
NickyVermaak's Profile: https://forums.netiq.com/member.php?userid=1011
View this thread: https://forums.netiq.com/showthread.php?t=49232

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.