HTTP Status 500 - String index out of range: -1

type Exception report

message String index out of range: -1

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	java.lang.String.substring(Unknown Source)
	it.semenda.mokaapp.filters.Application.doFilter(Application.java:51)

note The full stack trace of the root cause is available in the Apache Tomcat/8.0.42 logs.


Apache Tomcat/8.0.42