Alguém poderia ajudar no erro ?
Estou rodando um xhtml simples(aluno.xhtml) associado a um managed bean. Sem erros na compilação.
20:28:38,543 ERROR [io.undertow.request] (default I/O-1) Blocking request failed HttpServerExchange{ GET /seapp2/alunos.xhtml}: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source) [rt.jar:1.8.0_121]
at io.undertow.servlet.handlers.ServletPathMatches.setupServletChains(ServletPathMatches.java:311)
at io.undertow.servlet.handlers.ServletPathMatches.getData(ServletPathMatches.java:124)
private Aluno aluno = new Aluno();
public Aluno getAluno() {
return this.aluno;
}
public void grava() {
AlunoDao dao = new AlunoDao();
dao.adiciona(aluno);
this.aluno = new Aluno();
}
private Aluno aluno = new Aluno();
public Aluno getAluno() {
return this.aluno;
}
public void grava() {
AlunoDao dao = new AlunoDao();
dao.adiciona(aluno);
this.aluno = new Aluno();
}