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

enter image description here

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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -