首页上一页 1 下一页尾页 1 条记录 1/1页
java开发典型模块大全第20章在线考试程序 出错
发表在Java图书答疑
2011-10-17
是否精华
是
否
版块置顶:
是
否
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh 4
select * from tb_questionType where qName = '单选题'
0
111111111111111111 false
java.lang.ArrayIndexOutOfBoundsException: 0
at com.Exam.student.ExamPage.initComponents(ExamPage.java:203)
at com.Exam.student.ExamPage.<init>(ExamPage.java:89)
at com.Exam.Index.StudentExam.openjMenuItemActionPerformed(StudentExam.java:137)
at com.Exam.Index.StudentExam.access$0(StudentExam.java:124)
at com.Exam.Index.StudentExam$1.actionPerformed(StudentExam.java:48)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
选择考生进入系统,点击开始考试,报以上错误。
跟踪代码发现FindQuestionDao中的radowId方法没有返回值,也就是
select * from tb_questionType where qName = '单选题'
没查询到数据,而手动运行这段代码是有值的,请问一下是为什么?
select * from tb_questionType where qName = '单选题'
0
111111111111111111 false
java.lang.ArrayIndexOutOfBoundsException: 0
at com.Exam.student.ExamPage.initComponents(ExamPage.java:203)
at com.Exam.student.ExamPage.<init>(ExamPage.java:89)
at com.Exam.Index.StudentExam.openjMenuItemActionPerformed(StudentExam.java:137)
at com.Exam.Index.StudentExam.access$0(StudentExam.java:124)
at com.Exam.Index.StudentExam$1.actionPerformed(StudentExam.java:48)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
选择考生进入系统,点击开始考试,报以上错误。
跟踪代码发现FindQuestionDao中的radowId方法没有返回值,也就是
select * from tb_questionType where qName = '单选题'
没查询到数据,而手动运行这段代码是有值的,请问一下是为什么?