MySQL JDBC driver not returning rows.
Posted by: Pratheesh TU
Date: July 30, 2010 12:29AM

Hi

I am running a Servlet deployed in JBoss 5.0 which uses Datasource to obtain the connection.I am querying the database for a value , but it returns empty resultset, eventhough data is available in the table. But when I restart the JBoss, it reads the data, but again if I insert the data through Mysql console, it servlet db connection doesn't picks the new data.

Server version: 5.1.47-community MySQL Community Server (GPL)
Driver: mysql-connector-java-5.1.8-bin.jar
------------------------------------------------------------------
Please let me know whats the issue and how to resolve the same.

Output from JBoss Log:
11:36:00,065 INFO [STDOUT] [SQL] SELECT recipient,text,scheduledate FROM msgstaging_out WHERE scheduledate <= 1280469960050;
11:36:00,065 ERROR [STDERR] Fri Jul 30 11:36:00 IST 2010 INFO: Profiler Event: [QUERY] at org.jboss.resource.adapter.jdbc.WrappedStatement.executeQuery(WrappedStatement.java:226) duration: 0 ms, connection-id: 1668, statement-id: 20, resultset-id: 19, message: SELECT recipient,text,scheduledate FROM msgstaging_out WHERE scheduledate <= 1280469960050;
11:36:00,065 ERROR [STDERR] Fri Jul 30 11:36:00 IST 2010 INFO: Profiler Event: [FETCH] at org.jboss.resource.adapter.jdbc.WrappedStatement.executeQuery(WrappedStatement.java:226) duration: 0 ms, connection-id: 1668, statement-id: 20, resultset-id: 19

Options: Reply• Quote


Subject
Written By
Posted
MySQL JDBC driver not returning rows.
July 30, 2010 12:29AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.