This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes ResultSetMetaData problem, not returning data Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "ResultSetMetaData problem, not returning data" Watch "ResultSetMetaData problem, not returning data" New topic
Author

ResultSetMetaData problem, not returning data

Jeff Foflygen
Greenhorn

Joined: Mar 12, 2009
Posts: 12
Hello all,

My problem is that my class is not returning data at all and I'm stuck. the culprit I think is my in the class. I need help getting past it. I am posting the whole code so everyone knows what I'm looking at. the prepared statement is being filled out based on a value entered from another class. it works, I have verified, this class allows for people to see a Spreadsheet like view of the query instead of specific data. please, any ideas or help would be awesome! thanks!
Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 268
Well, you are suppouse to return an String[] and you are returning null, you get the data from the DB, store it in a ResultSet but you don“t manipulate that ResultSet, so if you just return null... what do you expect the aplication to do?

You should manipulate the data of the rs and stored it somehow in a String[]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ResultSetMetaData problem, not returning data
 
Similar Threads
display instance of oracle database vs. schema
Add Row with AbstractTableModel
JTable help
java.sql.SQLException: ORA-00923: FROM keyword not found where expected
Problem with the JButton.