netBeans 6.1 e iReport

Ola, estou testando um codigo da minha apostila da EADCON sobre java, mysql e iReport, e quando eu compilo
esta aparecendo o seguinte erro:

Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: com.mysql.jdbc.ResultSetImpl at appcadastro.AppCadastro.gerarReport(AppCadastro.java:137) at appcadastro.AppCadastro.actionPerformed(AppCadastro.java:122) at java.awt.Button.processActionEvent(Button.java:388) at java.awt.Button.processEvent(Button.java:356) at java.awt.Component.dispatchEventImpl(Component.java:3984) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
O que pode estar gerando esse erro?
VLW :smiley:

bom, não sei ao certo o que pode ser, mas deve ser algo com o banco de dados, que banco está usando ??? tem como postar o código ae pra gente ver??? também favor utilizar as tags “code”…flw…