Pessoal todos os relatórios estavam funcionando perfeitamente, foi so mudar de localhost para o ip do servidor que parou tudo !
private Connection getConexao() throws SQLException, ClassNotFoundException{
Connection con = null;
try{
Class.forName("org.postgresql.Driver");
String url = "jdbc:postgresql://192.168.1.11:5432/nutec";
String usuario = "root";
String senha = "debian23";
con = (Connection) DriverManager.getConnection(url,usuario,senha);
}catch(SQLException sql){
System.out.println("erro ao conectar");
// sql.printStackTrace();
}
return con;
}
segue o DAO
public InputStreamDownload relClienteFisicoAtivo()
throws JRException, SQLException, ClassNotFoundException, Exception {
InputStream file = getClass().getClassLoader().
getResourceAsStream("/br/com/catequese/relatorio/relClienteFisicoAtivo.jasper");
ByteArrayOutputStream os = new ByteArrayOutputStream();
JasperRunManager.runReportToPdfStream(file, os, null, getConexao());
InputStream document = new ByteArrayInputStream(os.toByteArray());
return new InputStreamDownload(document, "application/pdf", "relClienteFisicoAtivo.pdf", true, os.toByteArray().length);
}