Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

MySQL JDBC driver not returning rows. (1 reply)

$
0
0
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

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>