Pessoal estou tentando ler um XML com JDOM, estou utilizando o XPATH, poré esta gerando um erro como descrito abaixo...
O estranho tbm é que esse erro não cai no CATCH só consigo identifica-lo quando seleciono a linha de erro, já tentei várias Exceptions, até mesmo a da descrição do erro, mas mesmo assim o CATCH é ignorado...
public void lerKML() throws Exception {
String path = req.getRealPath("/Usuarios/" + pe.getEmail() + "/"+ pe.getTitulo() + "/" + pe.getNomeArquivoKMLZ());
SAXBuilder builder = new SAXBuilder();
Document document = builder.build(new File(path));
XPath xPath = XPath.newInstance("//Kml/Document/Placemark/LookAt");
Element node = (Element) xPath.selectSingleNode(document.getRootElement());
...
}
O erro é gerado nessa linha...
[color=red]XPath.newInstance("//Kml/Document/Placemark/LookAt");[/color]
XPath.newInstance("//Kml/Document/Placemark/LookAt"); = >Exception occurred in target VM: WEB9031: WebappClassLoader unable to load resource [java.lang.ExceptionInInitializerError], because it has not yet been started, or was already stopped<
Alguem tem ideia do que esta acontecendo ?
abcs