Jasper Report makes Vaadin app to crash -
i have web app developed using vaadin framework , use jasper reports generates reports. code follows:
// vaadin button listener jasperdesign desenho = jrxmlloader.load( layout ); jasperreport r= jaspercompilemanager.compilereport( desenho ); // create params , resultset jrresultsetdatasource jrrs = new jrresultsetdatasource( resultset ); //do stuff jasperprint impressao = jasperfillmanager.fillreport( r, params, jrrs ); jasperviewer viewer = new jasperviewer( impressao , true ); viewer.show();
after user press 'show report' button reports presented in jasper viewer window
the user can still use web app meanwhile jasper viewer window open after user close web app generate communication error. showing json text error , pausing protocolhandler ["http-nio-8080"]
any idea? in advance!
the complete explanation can found on this link:
the short answer change true
false
on below line:
jasperviewer viewer = new jasperviewer( impressao , true );
that isexitonclose parameter, desactivates call t system.exit(0) on jasper viewer causes tomcat close.
Comments
Post a Comment