-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.StringIndexOutOfBoundsException Exception on ELTools.java when Update Bootsfaces from 1.1.2 to 1.2.0 #905
Comments
Your bug description reads like we need to publish BootsFaces 1.2.1 ASAP. |
I've uploaded a BootsFaces 1.2.1-SNAPSHOT on Maven Central. Please check if the bug is fixed now. |
Hi @stephanrauh ! I tried to get the new snapshot dependency from from Maven Central and I had this error:
From the Maven Central URL I got this list from the <metadata>
<groupId>net.bootsfaces</groupId>
<artifactId>bootsfaces</artifactId>
<versioning>
<latest>1.2.0</latest>
<release>1.2.0</release>
<versions>
<version>0.6.0</version>
<version>0.6.5</version>
<version>0.6.6</version>
<version>0.8.0</version>
<version>0.8.1</version>
<version>0.8.5</version>
<version>0.8.6</version>
<version>0.9.0</version>
<version>0.9.1</version>
<version>1.0.0</version>
<version>1.0.1</version>
<version>1.0.2</version>
<version>1.1.0-RC1</version>
<version>1.1.0</version>
<version>1.1.1</version>
<version>1.1.2</version>
<version>1.1.3</version>
<version>1.2.0</version>
</versions>
<lastUpdated>20171231094913</lastUpdated>
</versioning>
</metadata> |
add this to pom |
Thank you @chongma ! @stephanrauh The solution works well! The bug is fixed in the 1.2.1-SNAPSHOT version. |
I've assigned this bug fix to version 1.5.0, but I'm positive it'll be part of 1.2.1, which should be published a lot earlier. |
After update Bootsfaces version from 1.1.2 to 1.2.0 this problem comes up:
The method
evaluteBaseForMojarra
in ELTools class is trying to substring a invalid position from the Expression String:There is no negative value check for
endOfBaseName
variable. The currentexp
variable value is:#{customValue}
So, the
endOfBaseName
variable gets a less than zero value.Before the update to the version 1.2.0, using the 1.1.2 version, instead of the exception, I had this warning messages in my console:
The 1.1.2 version of ELTools class checks the
delimiterPos
variable preventing the java.lang.StringIndexOutOfBoundsException:This problem occurs when I'm using JSF 2.2 CustomTags passing values as parameters to the Tag. The example defined above describes a parameter called "customValue":
When a page that uses this sample Tag is rendered, the ELTools class method
evaluteBaseForMojarra
is called passingp_expression
with the value#{customValue}
that causing the java.lang.StringIndexOutOfBoundsException.Without the solution of this bug it's not possible to use JSF CustomTags with Bootsfaces components.
The text was updated successfully, but these errors were encountered: