Hi there, I am successfully using PHP-Java-Bridge to connect to jasper reports on Windows 2003 server. Now I have a requirement move the site to Linux (Redhat) server. We have successfully installed PHP-Java-Bridge application in the Tomcat server. It seems the bridge is working fine as I can use the testing applications successfully. But I get issues when using jasper reports. We are using jasper reports 3.0.0 libraries. Please see my partial code below: ============================================================================================= private function getExportReport($paramMap) { global $cfg; ini_set('display_errors', 1); require_once("http://{$cfg['tomcatServer']}/JavaBridge/java/Java.inc"); try { java_require($this->javaLibraryPath); $Conn = new Java("com.pilot.jasperReports.JdbcConnection"); $Conn->setDriver("com.mysql.jdbc.Driver"); $Conn->setConnectString("jdbc:mysql://{$cfg['serverName']}/{$cfg['dbName']}"); $Conn->setUser($cfg['dbUserName']); $Conn->setPassword($cfg['dbPassword']); $sJfm = new Java('net.sf.jasperreports.engine.JasperFillManager'); print $sJfm; $print = $sJfm->fillReport($this->reportFilePath, $paramMap, $Conn->getConnection()); // Export $sJem = new Java('net.sf.jasperreports.engine.JasperExportManager'); $sJem->exportReportToPdfFile($print, $this->outputFilePath); if (file_exists($this->reportFilePath)){ header('Content-disposition: attachment; filename="' . $this->outputFileName); header('Content-Type: application/pdf'); header('Content-Transfer-Encoding: binary'); header('Content-Length: '. @filesize($this->outputFilePath)); header('Pragma: no-cache'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Expires: 0'); set_time_limit(0); @readfile($this->outputFilePath) or die('problem occurs.'); unlink($this->outputFilePath); } } catch (JavaException $ex) { $trace = new Java('java.io.ByteArrayOutputStream'); $ex->printStackTrace(new Java('java.io.PrintStream', $trace)); print "java stack trace: $trace\n"; } } ======================================================================= At the below line $print = $sJfm->fillReport($this->reportFilePath, $paramMap, $Conn->getConnection()); I get just the following error but no java error trace at all: "java stack trace: Object id #73 " I am not sure how can I debug when there is no error trace available. When I tried to print $sJfm variable as print $sJfm; I got the following: "Object id #65" but sometime I got the following but I am not sure why and could replicate that again "net.sf.jasperreports.engine.JasperFillManager@20eb607d" Please help as my client is screaming why the prints are not working. Also I am not a java expert so it's quite daunting for me to fix. Thanks a lot, Hameed