PHP/Java Bridge for Jasper Reports java.sql.SQLException-Collection of common programming errors
I try to use Jasper Reports via PHP/Java bridge
I use this sample: https://github.com/tsuyu/jasper-report-php-integration
I do all instructions and more mentioned that sample. However I always get this error:
Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:DriverManager]]->getConnection((o:String)[o:String], (o:String)[o:String], (o:String)[o:String]). Cause: java.sql.SQLException: Communication failure during handshake. Is there a MySQL server running on localhost:3354? VM: 1.7.0_21@http://java.oracle.com/" at: #-15 com.mysql.jdbc.MysqlIO.init(MysqlIO.java:628) #-14 com.mysql.jdbc.Connection.createNewIO(Connection.java:1621) #-13 com.mysql.jdbc.Connection.connectionInit(Connection.java:901) #-12 com.mysql.jdbc.Driver.connect(Driver.java:311) #-11 java.sql.DriverManager.getConnection(DriverManager.java:579) #-10 java.sql.DriverManager.getConnection(DriverManager.java:221) #-9 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) #-8 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) #-7 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) #-6 java.lang.reflect.Method.invoke(Method.java:601) #-5 php.java.bridge.JavaBridge.Invoke(Java in http://localhost:8080/JavaBridge/java/Java.inc on line 195
here is the code which establish mysql connection: