• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable and Resultset

 
manisha ankolekar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to populate Jtable with resultset.Is DefaultTableModel fine???

In my appln user on the form selects dateand based on that record displayed on the table on button event.But on button event I'm getting JVM error as:

An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c901010, pid=4080, tid=2660
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
# Problematic frame:
# C [ntdll.dll+0x1010]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

Any Help appreciated.......
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you calling a third party application? Because this error is not caused by Java code but by native code. So unless you're using a third party application with a bug, or you've found a bug in the JVM.

Can you try to find out what the last line of Java code is that executes successfully before this error?
 
manisha ankolekar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No,I am not using any third party application.Actually its gui applicationn wherein user selects date and retrieves data from db.Here I have used a button which calls method below:



Cant get what is the problem???
Please tell me any alternate method to fill the table on button event.
thank you
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if you close() your pstmt and rs? Which is a good thing to do anyway - always close() (Prepared)Statements, ResultSets, Connections and even Readers and InputStreams when you're done with them.

You could also try using a different ODBC connector. I've read the default Sun implementation can be buggy at times. If you check the JDBC forum in the Saloon you're sure to find a good replacement.
 
Abdul Jabbar WebBestow
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic