Skip to content

Instantly share code, notes, and snippets.

@datherra
datherra / GraphManagerPanoramaAtual_6268.java
Created April 5, 2012 21:15
NullPointerExcepetion no Batch
// revision 6268
public void exportPAImage(ChartParametersBean bean, String sistema_id, String sistema_value, String hostname, Vector<Item> listMInfra, String tipoMInfra,
String threshold, String dataIni, String dataFim, Projeto proj, Infra infra) {
// criar
JFreeChart chart = getOutputFactory().createPAChart(getDbManager().getListPADatasets(), sistema_value, hostname, listMInfra, tipoMInfra, threshold,
dataIni, dataFim, bean);
// exportar
String fileNameCP = "Panorama-" + proj.getNome() + "-" + infra.getServidor();
getOutputFactory().exportChart(chart, fileNameCP);